|
From: Lo?c C. <lo...@us...> - 2001-04-21 19:37:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv32717/chat/lib
Modified Files:
check_and_kick_user.lib.php3
Log Message:
Some SQL queries has been rewriten in order to avois errors with customized tables
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.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** check_and_kick_user.lib.php3 2001/04/19 20:26:53 1.11
--- check_and_kick_user.lib.php3 2001/04/21 19:37:40 1.12
***************
*** 108,112 ****
// Gets the IP address
include('./lib/get_ip.lib.' . C_EXTENSION);
! $checkLink->query("INSERT INTO " . C_USR_TBL . " VALUES ('$dbSessionId', " . time() . ", '$slashedCurrentRoomName', '$slashedNick', '$latin1', '$status', '$ip')");
} // end of the case where user should be in users table
--- 108,117 ----
// Gets the IP address
include('./lib/get_ip.lib.' . C_EXTENSION);
! $usrQuery = 'INSERT INTO ' . C_USR_TBL . ' '
! . '(session_id, u_time, room, username, latin1, status, ip) '
! . 'VALUES ('
! . "'$dbSessionId', " . time() . ", '$slashedCurrentRoomName', '$slashedNick', '$latin1', '$status', '$ip'"
! . ')';
! $checkLink->query($usrQuery);
} // end of the case where user should be in users table
|