Log in

View Full Version : Registration error...


Chris M
09-15-2002, 12:13 PM
Parse error: parse error, unexpected $ in /home/virtual/site26/fst/var/www/html/forums/global.php(315) : eval()'d code on line 1
act

I get that error when users try to activate their accounts:(

It has something to do with my phpinclude template, (when called from the global.php file (root directory)) which consists of :

// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
//Administrative/Moderator Login
if ($bbuserinfo[usergroupid]==6) { //Admins
$adminlogin = "<a href=\"http://www.darkblazes.com/forums/admin/index.php\"><b>Admin Login</b></a><br>";
} elseif ($bbuserinfo[usergroupid]==5) { //Co-Admins
$adminlogin = "<a href=\"http://www.darkblazes.com/forums/coad/index.php\"><b>Co-Admin Login</b></a><br>";
} elseif ($bbuserinfo[usergroupid]==7) { //Mods
$adminlogin = "<a href=\"http://www.darkblazes.com/forums/mod/index.php\"><b>Mod Login</b></a><br>";
} else { //Everyone else
$adminlogin = "";
}
//End Login Code
//Refer start
if ($bbuserinfo[userid]==1) { //hellsatan
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} elseif ($bbuserinfo[userid]==2) { //arunan
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} elseif ($bbuserinfo[userid]==3) { //azrael
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} elseif ($bbuserinfo[userid]==4) { //skeeve
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} elseif ($bbuserinfo[usergroupid]==7) { //mods
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} else { //Everyone else
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont>";
}
//Refer end

What is wrong?

Satan

blackice912
09-15-2002, 12:37 PM
What was the last thing you changed in that?

It all looks correct to me....

If I were you, I'd go and delete one line at a time until the error goes away

Chris M
09-15-2002, 12:47 PM
The last thing I did was add Logician's dfh_announcement thing, and that didnt change anything:(

Satan