PDA

View Full Version : unexpected $


aslambek
05-10-2005, 10:49 AM
Hello

After I have installed, and edited all files, i get this error on forum page:
Parse error: parse error, unexpected $ in /home/kavkazc/public_html/vbulletin/global.php on line 612

This is on line 612:
$passworddaysold = floor((TIMENOW - $bbuserinfo['passworddate']) / 86400);


Anyone? :classic:

Thanks

-Aslambek

Marco van Herwaarden
05-10-2005, 10:53 AM
Please also post the lines before and after line 612.

What editor did you use?

aslambek
05-10-2005, 10:56 AM
Please also post the lines before and after line 612.

What editor did you use?


Well here it is:

eval('standard_error("' . str_replace("\'", "'", addslashes($vboptions['bbclosedreason'])) . '");');
unset($shutdownqueries['lastvisit']);
}
else
{
// show the board disabled warning message so that admins don't leave the board turned off by accident
eval('$warning = "' . fetch_template('board_inactive_warning') . '";');
$header = $warning . $header;
$footer .= $warning;
}
}

// ################################################## ###########################
// password expiry system
if ($bbuserinfo['userid'] AND $permissions['passwordexpires'])
{
$passworddaysold = floor((TIMENOW - $bbuserinfo['passworddate']) / 86400);

if ($passworddaysold >= $permissions['passwordexpires'])
{
if ((THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'profile') OR (THIS_SCRIPT == 'profile' AND $_REQUEST['do'] != 'editpassword' AND $_POST['do'] != 'updatepassword'))
{
eval(print_standard_error('passwordexpired'));
}
else
{
$show['passwordexpired'] = true;
}
}
}
else
{
$passworddaysold = 0;
$show['passwordexpired'] = false;
}

// ################################################## ###########################
// check permission to view forum
if (!($permissions['forumpermissions'] & CANVIEW))


I am using Macromedia dreamweaver MX 2004

Thanks!

Marco van Herwaarden
05-10-2005, 10:59 AM
Try to edit again with another editor. Very likely it is caused by DW.

aslambek
05-10-2005, 11:02 AM
Are you sure about this?
Cuz i used it before to edit my vb a lot times
and everything went OK.
but, hmm anyway which one do you use?
Hint please... :) anyway thanks for your help.

Marco van Herwaarden
05-10-2005, 11:37 AM
Using only UltraEdit myself.

aslambek
05-10-2005, 12:18 PM
OK, this time I used PHP Expert Editor 3.2.1.
And everything went just PERFECT!

Remember Folks, do not use Macromedia dreamweaver MX 2004 to edit your vb files! :D

Thank You Very Much!

And Have a Nice Day!

(You can delete this topic now, if you want:))