mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 20:08:55 +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
|
// Initiate environment ... since it won't be set at this stage
|
||||||
$this->setup();
|
$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
|
// Determine which message to output
|
||||||
$till_date = (!empty($ban_row['ban_end'])) ? $this->format_date($ban_row['ban_end']) : '';
|
$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';
|
$message = (!empty($ban_row['ban_end'])) ? 'BOARD_BAN_TIME' : 'BOARD_BAN_PERM';
|
||||||
|
|
Loading…
Add table
Reference in a new issue