redirect() Error

This add-on will allow you to give "moderators" access to manage users, and theire permissions, admin accounts are protected

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Postby helluvaguy on Tue 13. May, 2003 15:52

I guess so.
But again, I'm not an expert in PHP. I would say give it a try, if it doesn't work say somethin' and we'll try to change your old code.

How's that?
helluvaguy
Poster
Poster
 
Posts: 17
Joined: Thu 24. Oct, 2002 12:16

Re: redirect() Error

Postby janine on Tue 13. May, 2003 17:59

helluvaguy wrote:But after installation I encounterd the following error:
Code: Select all
Fatal error: Call to undefined function: redirect() in /phpBB2/modcp/pagestart.php on line 56

This only happens if I want to access the ModCP - the AdminCP is accessable without any problem.


OK, I added the code that you did, and I'm getting the EXACT same error :cry:
janine
Poster
Poster
 
Posts: 11
Joined: Mon 12. May, 2003 15:28

Postby helluvaguy on Wed 14. May, 2003 02:04

Don't dispair. I'll take a closer look.. but i won't find time to do that until thursday or friday.
helluvaguy
Poster
Poster
 
Posts: 17
Joined: Thu 24. Oct, 2002 12:16

Postby interestcars on Wed 14. May, 2003 14:18

Code: Select all
Fatal error: Call to undefined function: redirect() in /phpBB2/modcp/pagestart.php on line 56


My version is 2.0.4 but still has this error~~ :cry:


http://www.interestcars.com/forum
interestcars
Poster
Poster
 
Posts: 1
Joined: Tue 03. Dec, 2002 22:13

Postby kooky on Thu 15. May, 2003 01:55

interestcars wrote:
Code: Select all
Fatal error: Call to undefined function: redirect() in /phpBB2/modcp/pagestart.php on line 56


My version is 2.0.4 but still has this error~~ :cry:


http://www.interestcars.com/forum

If your pagestart.php doesn't change, you can use the file included in the mod
otherwise add your pagestart.php from your admin dir in your modcp and replace this line:
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_Authorised']);
}
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby janine on Thu 15. May, 2003 02:14

Ah!! Thank you, thank you, thank you!! That solved my problem :D

Thanks to you too, helluvaguy!!!
janine
Poster
Poster
 
Posts: 11
Joined: Mon 12. May, 2003 15:28

Postby helluvaguy on Thu 15. May, 2003 22:07

Glad your prob is solved.
helluvaguy
Poster
Poster
 
Posts: 17
Joined: Thu 24. Oct, 2002 12:16

Previous

Return to Moderator CP [2.0.17/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron