PDA

View Full Version : Error with my Admin Cp Index


Battle_Ring
07-06-2004, 01:15 AM
someone please help with this

i get this
Parse error: parse error, unexpected $ in /home/chrisr/public_html/forums/admincp/index.php on line 908


heres my index file

Dont post whole vBulletin files - assassingod

Oblivion Knight
07-06-2004, 10:20 AM
Please don't post the contents of an entire file..

You just need to copy and paste the block of code surrounding line 908..
Might I suggest you post lines 898 - 918.?

Battle_Ring
07-06-2004, 06:47 PM
here is 894 to 908 -the end of file

// ################################ SHOW PHP INFO #############################

if ($_REQUEST['do'] == 'phpinfo')
{
phpinfo();
exit;
}

/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 12:59, Fri Jul 2nd 2004
|| # CVS: $RCSfile: index.php,v $ - $Revision: 1.210 $
|| ################################################## ##################
\*================================================ ======================*/
?>

Andreas
07-06-2004, 07:09 PM
Jeez! What a monster post ^.^

Around line 448 remove

// ***
if (can_administer('canadminshouts'))
{


Then it should compile.

Modin
07-06-2004, 07:14 PM
errors on the last line of code in many cases are cause by { }'s missing. Did you install a hack recently that caused this? I would be around the code you modified.

Battle_Ring
07-06-2004, 07:21 PM
yeah i took out this

// ***
if (can_administer('canadminshouts'))
{

and now it works but idotn see why that messed it up it told me to put that there while i was installign the shoutbox

Andreas
07-06-2004, 07:25 PM
Check the instructions again. I bet you did smth. wrong.

Battle_Ring
07-06-2004, 07:32 PM
ok will i just see a bug release for Vb has been released so i wanan update my forum with that and redo all my hacks

How do i go about clearing out my database

and de;lete all the tabels hacks has put there?

Zachery
07-06-2004, 07:37 PM
ok will i just see a bug release for Vb has been released so i wanan update my forum with that and redo all my hacks


How do i go about clearing out my database

and de;lete all the tabels hacks has put there?
Battle, i highly suggest, you use uninstall links if you have them in the installers, otherwise, dont go messing with your database, you seem to have alot of trouble with files.

IF you remove somthing important from your database, short of restoreing it to another backup, you wont get that databack

Battle_Ring
07-06-2004, 07:47 PM
some of the hacks dont have uninstall links

what should i do in that case?

Zachery
07-06-2004, 07:48 PM
Do you plan to reinstall it?
If so, then dont bother uninstalling it.

IF you dont just leave it be, its not going to hurt your system

Battle_Ring
07-06-2004, 07:54 PM
ok should i revert all my styles or should i delete them and reinstall them