From: Lo?c C. <lo...@us...> - 2001-06-30 14:04:56
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv19649/chat/lib/index_libs Modified Files: do_enter_db_work.lib.php3 Log Message: Update the away status when reloging 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.21 retrieving revision 1.22 diff -C2 -r1.21 -r1.22 *** do_enter_db_work.lib.php3 2001/06/16 10:20:14 1.21 --- do_enter_db_work.lib.php3 2001/06/30 14:04:53 1.22 *************** *** 127,131 **** if ($targetRoom == $wasInRoom) { ! $dbLink->query("UPDATE " . C_USR_TBL . " SET u_time = $currentTime, ip = '$ip' WHERE session_id = '$dbSessionId'"); } --- 127,131 ---- if ($targetRoom == $wasInRoom) { ! $dbLink->query("UPDATE " . C_USR_TBL . " SET u_time = $currentTime, ip = '$ip', away = 0 WHERE session_id = '$dbSessionId'"); } *************** *** 151,155 **** . ')'; $dbLink->query($aQuery); ! $dbLink->query("UPDATE " . C_USR_TBL . " SET session_id = '$dbSessionId', u_time = $currentTime, room = '$slashedTargetRoomName', status = $status, ip = '$ip' WHERE session_id = '$previousId'"); if (C_WELCOME) --- 151,155 ---- . ')'; $dbLink->query($aQuery); ! $dbLink->query("UPDATE " . C_USR_TBL . " SET session_id = '$dbSessionId', u_time = $currentTime, room = '$slashedTargetRoomName', status = $status, ip = '$ip', away = 0 WHERE session_id = '$previousId'"); if (C_WELCOME) |