From: Lo?c C. <lo...@us...> - 2001-04-10 14:19:50
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv3092/chat Modified Files: whois_popup.php3 users_popup_low.php3 users_popup.php3 users_low.php3 users.php3 profile_reg.php3 profile_edit.php3 profile_del.php3 messages_low.php3 loader.php3 input.php3 handle_input.php3 exit.php3 Log Message: Rename the 'dbSessionInitIt()' method to 'dbSessionInit()' Index: whois_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** whois_popup.php3 2001/04/10 10:46:31 1.3 --- whois_popup.php3 2001/04/10 14:19:47 1.4 *************** *** 50,60 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); --- 50,60 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); Index: users_popup_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup_low.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** users_popup_low.php3 2001/04/10 10:46:31 1.3 --- users_popup_low.php3 2001/04/10 14:19:47 1.4 *************** *** 49,59 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); --- 49,59 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); *************** *** 96,100 **** ? '(m.type = 1 OR (m.type = 0 AND m.room =\'' . pmcSlashSingleQuotes($dbSessionVars['currentRoom']) . '\'))' : 'm.type = 1'; ! /** --- 96,100 ---- ? '(m.type = 1 OR (m.type = 0 AND m.room =\'' . pmcSlashSingleQuotes($dbSessionVars['currentRoom']) . '\'))' : 'm.type = 1'; ! /** Index: users_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** users_popup.php3 2001/04/10 10:46:31 1.3 --- users_popup.php3 2001/04/10 14:19:47 1.4 *************** *** 48,58 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); --- 48,58 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); *************** *** 95,100 **** ? '(m.type = 1 OR (m.type = 0 AND m.room =\'' . pmcSlashSingleQuotes($dbSessionVars['currentRoom']) . '\'))' : 'm.type = 1'; - /** * Check for user entrance to beep --- 95,100 ---- ? '(m.type = 1 OR (m.type = 0 AND m.room =\'' . pmcSlashSingleQuotes($dbSessionVars['currentRoom']) . '\'))' : 'm.type = 1'; + /** * Check for user entrance to beep *************** *** 246,250 **** $usersList[] = "\t" . '- ' . pmcFormatUsername($anUser, $latin1, $status) . '<br />'; } ! $usersList[] = '</div>'; $usersList[] = ''; --- 246,250 ---- $usersList[] = "\t" . '- ' . pmcFormatUsername($anUser, $latin1, $status) . '<br />'; } ! $usersList[] = '</div>'; $usersList[] = ''; Index: users_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_low.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** users_low.php3 2001/04/10 10:46:31 1.4 --- users_low.php3 2001/04/10 14:19:47 1.5 *************** *** 46,56 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); --- 46,56 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); Index: users.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users.php3,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** users.php3 2001/04/10 10:46:31 1.8 --- users.php3 2001/04/10 14:19:47 1.9 *************** *** 45,55 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); --- 45,55 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); Index: profile_reg.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** profile_reg.php3 2001/04/03 20:14:52 1.1 --- profile_reg.php3 2001/04/10 14:19:47 1.2 *************** *** 66,76 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); --- 66,76 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); *************** *** 152,156 **** list($isReserved) = $dbLink->nextRecord(); $dbLink->cleanResults(); ! // Nick is already reserved if ($isReserved != 0) --- 152,156 ---- list($isReserved) = $dbLink->nextRecord(); $dbLink->cleanResults(); ! // Nick is already reserved if ($isReserved != 0) Index: profile_edit.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_edit.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** profile_edit.php3 2001/04/03 20:14:52 1.1 --- profile_edit.php3 2001/04/10 14:19:47 1.2 *************** *** 61,76 **** $submitType = pmcHandleMagicQuotes($submitType, '1', '', 'del'); ! /** * Start the session handler */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); --- 61,76 ---- $submitType = pmcHandleMagicQuotes($submitType, '1', '', 'del'); ! /** * Start the session handler */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); *************** *** 88,92 **** if (!(dbSessionIsRegistered('authUsername') && dbSessionIsRegistered('authPassword'))) include('./lib/login.lib.' . C_EXTENSION); ! /** --- 88,92 ---- if (!(dbSessionIsRegistered('authUsername') && dbSessionIsRegistered('authPassword'))) include('./lib/login.lib.' . C_EXTENSION); ! /** *************** *** 156,160 **** { $slashedNick = pmcSlashSingleQuotes($nick); ! if ($nick != $dbSessionVars['authUsername']) { --- 156,160 ---- { $slashedNick = pmcSlashSingleQuotes($nick); ! if ($nick != $dbSessionVars['authUsername']) { *************** *** 162,166 **** list($isReserved) = $dbLink->nextRecord(); $dbLink->cleanResults(); ! // Nick is already reserved if ($isReserved != 0) --- 162,166 ---- list($isReserved) = $dbLink->nextRecord(); $dbLink->cleanResults(); ! // Nick is already reserved if ($isReserved != 0) *************** *** 168,172 **** } } // end of the validation work ! // Udpates the profile if (!isset($error)) --- 168,172 ---- } } // end of the validation work ! // Udpates the profile if (!isset($error)) *************** *** 201,205 **** list($firstName, $lastName, $spokenLang, $webSite, $email, $showEmail, $gender) = $dbLink->nextRecord(); $dbLink->cleanResults(); ! $firstName = pmcHandleMagicQuotes($firstName, '', 1, 'del'); $lastName = pmcHandleMagicQuotes($lastName, '', 1, 'del'); --- 201,205 ---- list($firstName, $lastName, $spokenLang, $webSite, $email, $showEmail, $gender) = $dbLink->nextRecord(); $dbLink->cleanResults(); ! $firstName = pmcHandleMagicQuotes($firstName, '', 1, 'del'); $lastName = pmcHandleMagicQuotes($lastName, '', 1, 'del'); *************** *** 211,215 **** * Kills the instance of the DB class */ ! $dbLink->close(); --- 211,217 ---- * Kills the instance of the DB class */ ! // The db link should be closed but this can't be done under Apache because ! // links id aren't updated :( ! //$dbLink->close(); *************** *** 393,395 **** --- 395,398 ---- dbSessionSave(); } + $dbSessionDbLink->close(); ?> Index: profile_del.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_del.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** profile_del.php3 2001/04/03 20:14:52 1.1 --- profile_del.php3 2001/04/10 14:19:47 1.2 *************** *** 56,66 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); --- 56,66 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! '' ! ); dbSessionstart(); Index: messages_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/messages_low.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** messages_low.php3 2001/04/10 10:46:31 1.3 --- messages_low.php3 2001/04/10 14:19:47 1.4 *************** *** 48,58 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); --- 48,58 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** loader.php3 2001/04/10 10:46:31 1.4 --- loader.php3 2001/04/10 14:19:47 1.5 *************** *** 52,62 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); --- 52,62 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** input.php3 2001/04/10 13:03:37 1.8 --- input.php3 2001/04/10 14:19:47 1.9 *************** *** 57,67 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); --- 57,67 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** handle_input.php3 2001/04/10 13:03:37 1.7 --- handle_input.php3 2001/04/10 14:19:47 1.8 *************** *** 57,67 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); --- 57,67 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); Index: exit.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/exit.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** exit.php3 2001/04/10 10:46:31 1.5 --- exit.php3 2001/04/10 14:19:47 1.6 *************** *** 48,58 **** */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInitIt( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); --- 48,58 ---- */ require('./lib/db_sessions.lib.' . C_EXTENSION); ! dbSessionInit( C_DB_TYPE, ! C_DB_HOST, C_DB_NAME, ! C_DB_USER, C_DB_PASS, ! C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ! ); dbSessionstart(); |