|
From: Bart v. B. <ba...@us...> - 2002-01-18 15:51:03
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv13907
Modified Files:
admin_users.php
Log Message:
Delete sessions of users that are made inactive
Index: admin_users.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_users.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** admin_users.php 2001/12/24 14:43:53 1.36
--- admin_users.php 2002/01/18 15:50:58 1.37
***************
*** 281,284 ****
--- 281,294 ----
}
+ if( $user_status == 0 )
+ {
+ // User is (made) inactive. Delete all their sessions.
+ $sql = "DELETE FROM ". SESSIONS_TABLE ." WHERE session_user_id = $user_id";
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't delete this user's sessions", "", __LINE__, __FILE__, $sql);
+ }
+ }
+
if( $signature != "" )
{
***************
*** 1132,1134 ****
include('page_footer_admin.'.$phpEx);
! ?>
\ No newline at end of file
--- 1142,1144 ----
include('page_footer_admin.'.$phpEx);
! ?>
|