From 738c95447626fe46f58981f4e36000325dddae8b Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 1 Jun 2004 17:02:20 +0000 Subject: - enable admin login if board disabled - new reply image for pm's (fits better into the style) git-svn-id: file:///svn/phpbb/trunk@4906 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/ucp.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'phpBB/ucp.php') 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"); -- cgit v1.2.1