OKGimble wrote: Changed.
Code: Select all
Fatal error: Call to undefined function: redirect() in /usr/home/web/users/a0018328/html/forum/modcp/pagestart.php on line 42
copy your file pagestart.php from your admin directory to your new modcp directory = replace original file from the modCP
Then replace this line:
Code: Select all
if (!$userdata['session_logged_in'])
{
redirect(append_sid("login.$phpEx?redirect=admin/", true));
}
else if ($userdata['user_level'] != ADMIN)
{
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
Code: Select all
if (!$userdata['session_logged_in'])
{
redirect(append_sid("login.$phpEx?redirect=modcp/", true));
}
else if ( $userdata['user_level'] != MOD && $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
@ [mez] -> they should work
otherwise you don't apply corretly changes i quoted above !!!
Be sure you are using PHP files from the ModCP, not your own