mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
git-svn-id: file:///svn/phpbb/trunk@7089 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1894,6 +1894,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
|||||||
$autologin = (!empty($_POST['autologin'])) ? true : false;
|
$autologin = (!empty($_POST['autologin'])) ? true : false;
|
||||||
$viewonline = (!empty($_POST['viewonline'])) ? 0 : 1;
|
$viewonline = (!empty($_POST['viewonline'])) ? 0 : 1;
|
||||||
$admin = ($admin) ? 1 : 0;
|
$admin = ($admin) ? 1 : 0;
|
||||||
|
$viewonline = ($admin) ? $user->data['session_viewonline'] : $viewonline;
|
||||||
|
|
||||||
// Check if the supplied username is equal to the one stored within the database if re-authenticating
|
// Check if the supplied username is equal to the one stored within the database if re-authenticating
|
||||||
if ($admin && utf8_clean_string($username) != utf8_clean_string($user->data['username']))
|
if ($admin && utf8_clean_string($username) != utf8_clean_string($user->data['username']))
|
||||||
|
Reference in New Issue
Block a user