aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 1a2d927c99..807aeb6578 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1215,6 +1215,12 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
$err = '';
+ // Make sure user->setup() has been called
+ if (empty($user->lang))
+ {
+ $user->setup();
+ }
+
if (isset($_POST['login']))
{
$username = request_var('username', '');
@@ -1229,9 +1235,16 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
// If admin authentication
if ($admin)
{
- add_log('admin', 'LOG_ADMIN_AUTH_SUCCESS');
+ if ($auth->acl_get('a_'))
+ {
+ add_log('admin', 'LOG_ADMIN_AUTH_SUCCESS');
+ }
+ else
+ {
+ add_log('admin', 'LOG_ADMIN_AUTH_FAIL');
+ }
}
-
+
$redirect = request_var('redirect', "index.$phpEx$SID");
meta_refresh(3, $redirect);