Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

parse error

y2kbgy2kbg New
edited December 2006 in Vanilla 1.0 Help
i get the error: Parse error: syntax error, unexpected T_STRING, expecting ')' in /www/110mb.com/z/f/i/l/e/s/_/_/zfiles/htdocs/extensions/PageMng/CustomPages.php on line 15 CustomPages.php: <?php return array(0 => array('tab' => 'ZFiles', 'page' => 'zfiles', 'url' => '', 'html' => '<h2>Well this is my site. <br><br> I make programs that you can use and have fun with.<br> <br> If you get bored in CIP Class come here and hopefully have some fun. <br><br> There are links to games that are normally blocked in some places. <br><br> There are also fun things such as fake error programs and programs that make noises.</h2>', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4), 'hidden' => ''), 1 => array('tab' => 'Games', 'page' => 'games', 'url' => '', 'html' => '', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4), 'hidden' => ''), 2 => array('tab' => 'Videos', 'page' => 'videos', 'url' => '', 'html' => '', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4), 'hidden' => ''), 3 => array('tab' => 'Downloads', 'page' => 'downloads', 'url' => '', 'html' => '<form action="?Page=flashplayer" method="post" > <input type="hidden" name="vids" value="http://www.zfiles.110mb.com/files/WhiteNerdy.flv" /> <input type="submit" /> </form>', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4), 'hidden' => ''), 4 => array('tab' => 'Discussions', 'page' => 'discussions', 'url' => 'http://zfiles.110mb.com/', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4), 'hidden' => ''), 5 => array('tab' => 'Categories', 'page' => 'categories', 'url' => 'http://zfiles.110mb.com/categories.php', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 4), 'hidden' => ''), 6 => array('tab' => 'Account', 'page' => 'account', 'url' => 'http://zfiles.110mb.com/account.php', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 4), 'hidden' => ''), 7 => array('tab' => 'flashplayer', 'page' => 'flashplayer', 'url' => '', 'html' => '<script type="text/javascript" src="files/ufo.js"></script> <?php $vid = ($_POST[\'vids\']); <<<<<<<<<<<<<<<<<< LINE 15************ echo \'<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p> <script type="text/javascript"> var FO = { movie:"files/flvplayer.swf",width:"600",height:"480",majorversion:"7",build:"0",bgco lor:"#FFFFFF", flashvars:"file=files/WhiteNerdy.flv&showdigits=true&autostart=true" }; UFO.create(FO,"player1"); </script>\'; ?>', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 4), 'hidden' => ''), 8 => array('tab' => 'Requests', 'page' => 'requests', 'url' => '', 'html' => '<?php $vids = \'http://video.google.com/videoplay?docid=1384277706451157121&q=white\' echo \'<a href="#" onclick="\' . $vids . \'.href=unescape(document.getElementById(\\'VideoPlayback\\').src.match(/videoUrl=([^$)]*)/)[1]);this.firstChild=\\'Download Flash Video\\';return false;" style="color:#FFFFFF; font-weight:bold; font-size:18px;">Find Flash Video</a>\'; ?>', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 4), 'hidden' => ''), 9 => array('tab' => 'Search', 'page' => 'search', 'url' => 'http://zfiles.110mb.com/search.php', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4), 'hidden' => 1), 10 => array('tab' => 'Members', 'page' => 'Members', 'url' => 'http://zfiles.110mb.com/extension.php?PostBackAction=Members', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 4), 'hidden' => ''), 11 => array('tab' => 'Settings', 'page' => 'settings', 'url' => 'http://zfiles.110mb.com/settings.php', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4), 'hidden' => '')); ?>

Comments

  • A bit hard to follow mate, which one is line 15?

    Looks to me like a quote or two needing to be escaped.
  • i did mark line 15: $vid = ($_POST[\'vids\']); <<<<<<<<<<<<<<<<<< LINE 15************ i added those parenthesis to satify its request for a parenthes but it did not stop the error.
  • anyone got any ideas i have been looking thru it. at first it gave an error at line 32 i fixed it then it gave the line 15 error. this should not be giving errors tho it was made by page manager, are there any known problems with page manager that do this sort of thing?
  • "Looks to me like a quote or two needing to be escaped." would those be before the 15th line after or could it be either?
  • href=unescape(document.getElementById(\\'VideoPlayback\\').src.match(/videoUrl=([^$)]*)/)[1]);this.firstChild=\\'Download Flash Video\\';I believe those double slashes are causing the problem. Try changing that tohref=unescape(document.getElementById(\'VideoPlayback\').src.match(/videoUrl=([^$)]*)/)[1]);this.firstChild=\'Download Flash Video\';
  • nope thats not it... i think, i will try some more when i get home but i am pretty sure that is not the problem
  • ok it was the use of \' instead of of just " ok now mt site loads but i get a sytax error in the default.php for pagemanager, does this get changed by the extention or can i replace it with the ordiginal on withot worries?
  • ok i backed up the file and then replaced it with the oridginal and i still get this error. how could i get this error if i never changed this file? my host just switched to brand new severs, could that be making all of these new errors?
  • i am sorry giys, i figured it out, i gess ithe error reporter can be wrong, it was saying the wrong file because it was running code out of another php file. now i get an unexpected $end error there are only like 5 lines of code all it does is echo some javascript, later i will substitte a varible in, but not un til i get this fixed. <?php $vid=($_POST["vids"]); echo("<p id=\"player1\"><a href=\"http://www.macromedia.com/go/getflashplayer\">Get the Flash Player</a> to see this player.</p> <script type=\"text/javascript\"> var FO = { movie:\"files/flvplayer.swf\",width:\"600\",height:\"480\",majorversion:\"7\",build:\"0\",bgcolor:\"#FFFFFF\",flashvars:\"file=files/WhiteNerdy.flv&showdigits=true&autostart=true\"}; UFO.create(FO,\"player1\"); </script>\"); ?>
This discussion has been closed.