The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
hi,
i made a php widget. i keep getting this error Parse error: syntax error, unexpected '{' in /var/www/clients/client4/web6/web/picbasic/packages/vbcms/widget/execphp.php(171) : eval()'d code on line 18 because of this line of code <input type=\"hidden\" name=\"securitytoken\" value=".{vb:raw bbuserinfo.securitytoken}." /> Code:
$output = "
<form enctype=multipart/form-data action=".$_SERVER['PHP_SELF']."?".$session[sessionhash]." method=POST>
Please choose a file: <input name=ftpfile type=file id=ftpfile /><br><br>
<input name=ftpfileName type=hidden id=ftpfileName />
<select name=dir>
<option value=0>Select a Catagory</option>
<option value=1>Misc</option>
<option value=2>archive</option>
<option value=3>code</option>
<option value=4>executable</option>
<option value=5>image</option>
<option value=6>pdf</option>
</select>
<br /><br />
<input type=\"hidden\" name=\"s\" value=".$session[sessionhash]." />
<input type=\"hidden\" name=\"securitytoken\" value="{vb:raw bbuserinfo.securitytoken}" />
<input type=submit name=submit value=Upload File />
";
Rob |
|
#2
|
||||
|
||||
|
This line is not valid for a plugin:
PHP Code:
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|