mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 09:46:46 +02:00
- added updated coding guidelines
- introduced is_registered and is_bot flags for correct determinition of guest/registered/bot users - changed bot code to act on useragent || ip git-svn-id: file:///svn/phpbb/trunk@5117 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -314,14 +314,14 @@ if ($mode == 'approve' || $mode == 'disapprove')
|
||||
}
|
||||
|
||||
// Only Moderators can go beyond this point
|
||||
if ($user->data['user_id'] == ANONYMOUS)
|
||||
if (!$user->data['is_registered'])
|
||||
{
|
||||
login_box('', $user->lang['LOGIN_EXPLAIN_MCP']);
|
||||
|
||||
if ($user->data['user_id'] == ANONYMOUS)
|
||||
if ($user->data['is_bot'])
|
||||
{
|
||||
redirect("index.$phpEx$SID");
|
||||
}
|
||||
|
||||
login_box('', $user->lang['LOGIN_EXPLAIN_MCP']);
|
||||
}
|
||||
|
||||
$quickmod = (isset($_REQUEST['quickmod'])) ? true : false;
|
||||
|
Reference in New Issue
Block a user