mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
Logout banned users, they are unable to use the normal logout link
git-svn-id: file:///svn/phpbb/trunk@5219 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
95a323733f
commit
de432e88d1
1 changed files with 5 additions and 0 deletions
|
@ -594,6 +594,11 @@ class session
|
|||
// Initiate environment ... since it won't be set at this stage
|
||||
$this->setup();
|
||||
|
||||
// Logout the user, banned users are unable to use the normal 'logout' link
|
||||
if ($this->data['user_id'] != ANONYMOUS)
|
||||
{
|
||||
$this->session_kill();
|
||||
}
|
||||
// Determine which message to output
|
||||
$till_date = (!empty($ban_row['ban_end'])) ? $this->format_date($ban_row['ban_end']) : '';
|
||||
$message = (!empty($ban_row['ban_end'])) ? 'BOARD_BAN_TIME' : 'BOARD_BAN_PERM';
|
||||
|
|
Loading…
Add table
Reference in a new issue