From: Lo?c C. <lo...@us...> - 2001-04-12 23:38:29
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv12704/chat/lib/index_libs Modified Files: main_index.lib.php3 do_enter_db_work.lib.php3 Log Message: Some more commands and fixes for them Index: main_index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** main_index.lib.php3 2001/04/11 23:06:14 1.9 --- main_index.lib.php3 2001/04/12 23:38:25 1.10 *************** *** 114,118 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 114,118 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 123,127 **** * Defines some variables * ! * The 'pmcSlashSingleQuotes()' fonction is defined in the * 'chat/lib/common.lib.php3' library */ --- 123,127 ---- * Defines some variables * ! * The 'pmcSlashSingleQuotes()' function is defined in the * 'chat/lib/common.lib.php3' library */ *************** *** 818,823 **** * Save the session data and kill the pmcDB handler */ ! $dbSessionVars['msgNumber'] = C_MSG_NB; ! $dbSessionVars['refreshDelay'] = C_MSG_REFRESH; dbSessionSave(); $dbLink->close(); --- 818,827 ---- * Save the session data and kill the pmcDB handler */ ! $dbSessionVars['msgNumber'] = C_MSG_NB; ! $dbSessionVars['refreshDelay'] = C_MSG_REFRESH; ! // Both of the variables to delete below are defined by commands ('profile' for ! // the first one, 'save' for the second) ! $toUnregister = array('conservative', 'savedMessagesLimit'); ! dbSessionUnregister($toUnregister); dbSessionSave(); $dbLink->close(); 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.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** do_enter_db_work.lib.php3 2001/04/11 23:06:14 1.6 --- do_enter_db_work.lib.php3 2001/04/12 23:38:26 1.7 *************** *** 173,177 **** { $slashedRoomName = pmcSlashSingleQuotes($targetRoom); ! $dbLink->query("INSERT INTO " . C_USR_TBL . " VALUES ('$dbSessionId', '$currentTime', '$slashedRoomName', '$slashedNick', '$latin1', '$status', '$ip')"); $dbLink->query("INSERT INTO " . C_MSG_TBL . " VALUES ($roomType, '$slashedRoomName', 'SYS enter', '', '$currentTime', NULL, '#666699', 'sprintf(L_ENTER_ROM, \'" . $nickForNotifications . "\')', 'sprintf(L_ENTER_ROM, \'" . $nickForNotifications . "\')')"); --- 173,180 ---- { $slashedRoomName = pmcSlashSingleQuotes($targetRoom); ! if (isset($reloading) && $reloading == 'joinCmd') ! $dbLink->query("UPDATE " . C_USR_TBL . " SET u_time = '$currentTime', room = '$slashedRoomName', status = '$status', ip = '$ip' WHERE session_id = '$dbSessionId'"); ! else ! $dbLink->query("INSERT INTO " . C_USR_TBL . " VALUES ('$dbSessionId', '$currentTime', '$slashedRoomName', '$slashedNick', '$latin1', '$status', '$ip')"); $dbLink->query("INSERT INTO " . C_MSG_TBL . " VALUES ($roomType, '$slashedRoomName', 'SYS enter', '', '$currentTime', NULL, '#666699', 'sprintf(L_ENTER_ROM, \'" . $nickForNotifications . "\')', 'sprintf(L_ENTER_ROM, \'" . $nickForNotifications . "\')')"); |