carpartsaustralia Posted July 27, 2011 Posted July 27, 2011 Hi all. I'm Very new to PHP and such. Have tried to add a new "text" page to my site. I uploaded code into /includes/boxes/tools.php which has an error on line 36. I believe I've worked out the incorrection, however, I cant get back into /includes/boxes/tools.php to correct this. I cant actually get into anything in my admin. My Admin shows; Parse error: syntax error, unexpected ')' in /clientdata/n5200-2-dynamic/c/a/xxxxx.com.au/www/admin/includes/boxes/tools.php on line 36 How can i correct this and gain access to all my functions in my admin? thanks
MrPhil Posted July 27, 2011 Posted July 27, 2011 Show us lines, oh, 25 through 40, and indicate which is 36.
carpartsaustralia Posted July 27, 2011 Author Posted July 27, 2011 <?php /* $Id: tools.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ ?> <!-- tools //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_TOOLS, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')); if ($selected_box == 'tools') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' . '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_BANNER_MANAGER . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CACHE) . '" class="menuBoxContentLink">' . BOX_TOOLS_CACHE . '</a><br>' . '<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' . '<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MAIL) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' . '<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SERVER_INFO) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' . '<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a><br>' . '<a href="' . tep_href_link('texteditor.php','page=about_us.php') . '" class="menuBoxContentLink">Text: About Us</a><br>'. '<a href="' . tep_href_link('texteditor.php','page=conditions.php') . '" class="menuBoxContentLink">Text: Conditions</a><br>'. '<a href="' . tep_href_link('texteditor.php','page=privacy.php') . '" class="menuBoxContentLink">Text: Privacy</a>'); '<a href="' . tep_href_link('texteditor.php','page=parts_search.php') . '" class="menuBoxContentLink">Text: Parts Search</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- tools_eof //--> i believe the incorrection is ; '<a href="' . tep_href_link('texteditor.php','page=privacy.php') . '" class="menuBoxContentLink">Text: Privacy</a>'); '<a href="' . tep_href_link('texteditor.php','page=parts_search.php') . '" class="menuBoxContentLink">Text: Parts Search</a>'); This was edited through "File Manager" in the Admin. i need to know how to get back into this and all my other admin functions. I can log into My Admin but i cant access any of these "tools" "file manager" etc... thanks
MrPhil Posted July 27, 2011 Posted July 27, 2011 Change '<a href="' . tep_href_link('texteditor.php','page=privacy.php') . '" class="menuBoxContentLink">Text: Privacy</a>'); '<a href="' . tep_href_link('texteditor.php','page=parts_search.php') . '" class="menuBoxContentLink">Text: Parts Search</a>'); to '<a href="' . tep_href_link('texteditor.php','page=privacy.php') . '" class="menuBoxContentLink">Text: Privacy</a>'. '<a href="' . tep_href_link('texteditor.php','page=parts_search.php') . '" class="menuBoxContentLink">Text: Parts Search</a>');
carpartsaustralia Posted July 27, 2011 Author Posted July 27, 2011 thanks, i had a feeling thats where i went wrong. the problem i have now, is how do i get back into the "file manager" in my admin to change this? I can log into my admin but cannot access anything.
Guest Posted July 27, 2011 Posted July 27, 2011 Simon, You should not be using File Manager located in the admin area. You should read these: Admin Security and Website Security Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.