aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/ucp.php')
-rwxr-xr-xphpBB/ucp.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 35063d6184..bbc77b3ad9 100755
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -33,6 +33,12 @@
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
+
+// This small snippet is required to let admins login if the board is disabled...
+if ($_REQUEST['mode'] == 'login')
+{
+ define('IN_LOGIN', true);
+}
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . '/includes/functions_user.'.$phpEx);
@@ -273,7 +279,6 @@ switch ($mode)
redirect("index.$phpEx$SID");
}
- define('IN_LOGIN', true);
login_box("ucp.$phpEx$SID&mode=login", '', '', true);
$redirect = request_var('redirect', "index.$phpEx$SID");