From de432e88d1f484f9cc2837e0ccf311e9110075e9 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Wed, 21 Sep 2005 12:12:58 +0000 Subject: [PATCH] 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 --- phpBB/includes/session.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 2978d0f921..0acfa36eb0 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -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';