Disable board Admin override
Verfasst: 09.12.2002 17:04
Ich möchte gerne (ja ich weis das möchten schon lange viele) das man als Admin auf das Board kann, auch wenn es deaktiviert ist.
Nach längerer Zeit habe ich mal wieder auf die Suche gemacht und ich hatte sogar einen Teilerfolg.
Unter http://www.phpbb.com/phpBB/viewtopic.php?t=58013 habe ich folgendes Posting gefunden:
Hat jemand ne Idee wie man das zum laufen bringen kann?
Nach längerer Zeit habe ich mal wieder auf die Suche gemacht und ich hatte sogar einen Teilerfolg.
Unter http://www.phpbb.com/phpBB/viewtopic.php?t=58013 habe ich folgendes Posting gefunden:
Cool dachte ich, endlich kann man sein Board deaktivieren und als Admin trotzdem zugleich drauf rumsurfen, aber geht nicht...mitsubishi hat geschrieben:There is no mod that I know of. It would be quite easy, um....
Open up common.php, find (at the bottom) and add in the red bit:
Now highlight and cut the piece of code out, open sessions.php and paste it in after this bit://
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") && $userdata['user_level'] != ADMIN)
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
I think that will work, I'll just test it.Code: Alles auswählen
if ( !($userdata = session_begin($user_id, $user_ip, $thispage_id, TRUE)) ) { message_die(CRITICAL_ERROR, 'Error creating user session', '', __LINE__, __FILE__, $sql); }
Hat jemand ne Idee wie man das zum laufen bringen kann?