From: Lo?c C. <lo...@us...> - 2001-05-25 22:49:25
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv1653/chat/lib/index_libs Modified Files: do_enter_db_work.lib.php3 Log Message: Invited success message is locally displayed rather than stored in the db Index: do_enter_db_work.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/do_enter_db_work.lib.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** do_enter_db_work.lib.php3 2001/05/22 20:40:34 1.17 --- do_enter_db_work.lib.php3 2001/05/25 22:49:22 1.18 *************** *** 88,95 **** * Udpates the IP address and the last log. time of the user in the * registered users table if necessary */ if ($isRegUser) { ! $dbLink->query("UPDATE " . C_REG_TBL . " SET reg_time = $currentTime, ip = '$ip' WHERE username = '$slashedNick'"); } --- 88,99 ---- * Udpates the IP address and the last log. time of the user in the * registered users table if necessary + * + * Updating password allows to upgrade to the new phpMyChat system + * (password are no long crypted) */ if ($isRegUser) { ! $slashedPswd = pmcSlashSingleQuotes(str_replace('\\', '\\\\', $password)); ! $dbLink->query("UPDATE " . C_REG_TBL . " SET password = '$slashedPswd', reg_time = $currentTime, ip = '$ip' WHERE username = '$slashedNick'"); } *************** *** 241,249 **** * Deletes invite messages sent to the user for the room he will enter in */ ! $dbLink->query("SELECT m_time FROM " . C_MSG_TBL . " WHERE username = 'SYS inviteTo' AND address = '$slashedNick' AND room = '$slashedTargetRoomName'"); ! while (list($sentTime) = $dbLink->nextRecord()) ! { ! $dbLink->query("DELETE FROM " . C_MSG_TBL . " WHERE m_time = $sentTime AND (username = 'SYS inviteFrom' OR (username = 'SYS inviteTo' AND address = '$slashedNick'))"); ! } ?> --- 245,249 ---- * Deletes invite messages sent to the user for the room he will enter in */ ! $dbLink->query("DELETE FROM " . C_MSG_TBL . " WHERE username = 'SYS inviteTo' AND address = '$slashedNick' AND room = '$slashedTargetRoomName'"); ?> |