From: Lo?c C. <lo...@us...> - 2001-04-10 13:03:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv18934/chat/lib Modified Files: check_and_kick_user.lib.php3 Log Message: Fixed the db link bug with Apache server Index: check_and_kick_user.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/check_and_kick_user.lib.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** check_and_kick_user.lib.php3 2001/04/08 18:24:05 1.4 --- check_and_kick_user.lib.php3 2001/04/10 13:03:38 1.5 *************** *** 51,55 **** global $currentRoomType; global $slashedCurrentRoomName; ! $checkLink = new pmcDB; $checkLink->query("SELECT room, status FROM " . C_USR_TBL . " WHERE username = '$slashedNick' LIMIT 1"); --- 51,55 ---- global $currentRoomType; global $slashedCurrentRoomName; ! $checkLink = new pmcDB; $checkLink->query("SELECT room, status FROM " . C_USR_TBL . " WHERE username = '$slashedNick' LIMIT 1"); *************** *** 122,126 **** // ... the status if it has been modified if ($dbSessionVars['status'] != $status) ! $dbSessionVars['status'] = $status; // ... the time to ensure the user won't be cleaned from the // connected users table --- 122,126 ---- // ... the status if it has been modified if ($dbSessionVars['status'] != $status) ! $dbSessionVars['status'] = $status; // ... the time to ensure the user won't be cleaned from the // connected users table *************** *** 137,141 **** } // end of the case where user should be in users table ! $checkLink->close(); } // end of the 'pmcCheckAndKickUser()' function --- 137,143 ---- } // end of the case where user should be in users table ! // The db link should be closed but this can't be done under Apache because ! // links id aren't updated :( ! // $checkLink->close(); } // end of the 'pmcCheckAndKickUser()' function |