Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv10744/chat Modified Files: admin.php3 exit.php3 handle_input.php3 help_popup.php3 ignore_popup.php3 index.php3 input.php3 link.php3 loader.php3 messages_low.php3 profile_del.php3 profile_remind.php3 save.php3 setup.php3 smilies_popup.php3 tutorial_popup.php3 users.php3 users_low.php3 users_popup.php3 users_popup_low.php3 whois_popup.php3 Log Message: * taken into account new php global arrays * PEAR codding standards (capitalized constants) Index: admin.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/admin.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** admin.php3 2001/06/10 14:56:06 1.4 --- admin.php3 2001/12/10 22:50:55 1.5 *************** *** 31,35 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 31,35 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 110,114 **** if (!(dbSessionIsRegistered('authUsername') && dbSessionIsRegistered('authPassword'))) { ! $mustBeAdmin = true; include('./lib/login.lib.' . C_EXTENSION); } --- 110,114 ---- if (!(dbSessionIsRegistered('authUsername') && dbSessionIsRegistered('authPassword'))) { ! $mustBeAdmin = TRUE; include('./lib/login.lib.' . C_EXTENSION); } *************** *** 121,125 **** * send no-cache and charset HTTP headers */ ! pmcHttpHeaders(A_CHARSET, true); --- 121,125 ---- * send no-cache and charset HTTP headers */ ! pmcHttpHeaders(A_CHARSET, TRUE); *************** *** 167,171 **** { $dbSessionVars['adminFrom'] = urlencode(basename($PHP_SELF)); ! $dbSessionVars['adminDoOptimize'] = true; $dbSessionVars['adminSheet'] = 1; $dbSessionVars['sortBy'] = 'username'; --- 167,171 ---- { $dbSessionVars['adminFrom'] = urlencode(basename($PHP_SELF)); ! $dbSessionVars['adminDoOptimize'] = TRUE; $dbSessionVars['adminSheet'] = 1; $dbSessionVars['sortBy'] = 'username'; Index: exit.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/exit.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** exit.php3 2001/05/30 08:07:12 1.17 --- exit.php3 2001/12/10 22:50:55 1.18 *************** *** 27,31 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 27,31 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 79,83 **** * library */ ! pmcHttpHeaders(L_CHARSET, false); --- 79,83 ---- * library */ ! pmcHttpHeaders(L_CHARSET, FALSE); Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -r1.33 -r1.34 *** handle_input.php3 2001/12/04 20:01:03 1.33 --- handle_input.php3 2001/12/10 22:50:55 1.34 *************** *** 31,35 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 31,35 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 93,97 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 93,97 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); *************** *** 102,106 **** $slashedCurrentRoomName = pmcSlashSingleQuotes($dbSessionVars['currentRoom']); require('./lib/check_and_kick_user.lib.' . C_EXTENSION); ! pmcCheckAndKickUser(true); dbSessionUnregister('noKickTest'); --- 102,106 ---- $slashedCurrentRoomName = pmcSlashSingleQuotes($dbSessionVars['currentRoom']); require('./lib/check_and_kick_user.lib.' . C_EXTENSION); ! pmcCheckAndKickUser(TRUE); dbSessionUnregister('noKickTest'); *************** *** 129,137 **** * Send the message */ ! $isCommand = false; ! $doRefreshMessages = false; ! $enforceFirstLoad = false; ! $isPopup = false; ! $displayMessage = false; $error = ''; $success = ''; --- 129,137 ---- * Send the message */ ! $isCommand = FALSE; ! $doRefreshMessages = FALSE; ! $enforceFirstLoad = FALSE; ! $isPopup = FALSE; ! $displayMessage = FALSE; $error = ''; $success = ''; *************** *** 176,180 **** // Set the variable that will force the message frame to be refreshed ! $doRefreshMessages = true; } // end of handle 'true' messages --- 176,180 ---- // Set the variable that will force the message frame to be refreshed ! $doRefreshMessages = TRUE; } // end of handle 'true' messages *************** *** 258,262 **** ?> frames['messages'].window.document.close(); ! jsIsInitLoad = true; jsLastLoadedMsgTime = 0; jsLastCheckedUserTime = 0; --- 258,262 ---- ?> frames['messages'].window.document.close(); ! jsIsInitLoad = TRUE; jsLastLoadedMsgTime = 0; jsLastCheckedUserTime = 0; Index: help_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/help_popup.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** help_popup.php3 2001/12/01 10:48:31 1.17 --- help_popup.php3 2001/12/10 22:50:55 1.18 *************** *** 27,31 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 27,31 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 69,73 **** * library */ ! pmcHttpHeaders(L_CHARSET, false); --- 69,73 ---- * library */ ! pmcHttpHeaders(L_CHARSET, FALSE); Index: ignore_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/ignore_popup.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** ignore_popup.php3 2001/04/19 21:05:04 1.6 --- ignore_popup.php3 2001/12/10 22:50:55 1.7 *************** *** 28,32 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 28,32 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 73,77 **** * library */ ! pmcHttpHeaders(L_CHARSET, false); --- 73,77 ---- * library */ ! pmcHttpHeaders(L_CHARSET, FALSE); Index: index.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/index.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** index.php3 2001/04/19 21:05:04 1.4 --- index.php3 2001/12/10 22:50:55 1.5 *************** *** 38,42 **** // Gets the extension for the php scripts if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 38,42 ---- // Gets the extension for the php scripts if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -r1.41 -r1.42 *** input.php3 2001/12/04 20:01:03 1.41 --- input.php3 2001/12/10 22:50:55 1.42 *************** *** 31,35 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 31,35 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 93,97 **** * library */ ! pmcHttpHeaders(L_CHARSET, false); /** --- 93,97 ---- * library */ ! pmcHttpHeaders(L_CHARSET, FALSE); /** *************** *** 104,108 **** { include('./lib/check_and_kick_user.lib.' . C_EXTENSION); ! pmcCheckAndKickUser(true); } else --- 104,108 ---- { include('./lib/check_and_kick_user.lib.' . C_EXTENSION); ! pmcCheckAndKickUser(TRUE); } else *************** *** 136,144 **** * Send the message */ ! $isCommand = false; ! $doRefreshMessages = false; ! $enforceFirstLoad = false; ! $isPopup = false; ! $displayMessage = false; $error = ''; $success = ''; --- 136,144 ---- * Send the message */ ! $isCommand = FALSE; ! $doRefreshMessages = FALSE; ! $enforceFirstLoad = FALSE; ! $isPopup = FALSE; ! $displayMessage = FALSE; $error = ''; $success = ''; *************** *** 184,188 **** // Set the variable that will force the message frame to be refreshed ! $doRefreshMessages = true; } // end of handle 'true' messages --- 184,188 ---- // Set the variable that will force the message frame to be refreshed ! $doRefreshMessages = TRUE; } // end of handle 'true' messages Index: link.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/link.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** link.php3 2001/04/19 21:05:04 1.4 --- link.php3 2001/12/10 22:50:55 1.5 *************** *** 26,30 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 26,30 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** loader.php3 2001/12/08 18:33:38 1.26 --- loader.php3 2001/12/10 22:50:55 1.27 *************** *** 31,35 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 31,35 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 85,89 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 85,89 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); *************** *** 98,102 **** { include('./lib/check_and_kick_user.lib.' . C_EXTENSION); ! pmcCheckAndKickUser(false); } $dbSessionDbLink->close(); --- 98,102 ---- { include('./lib/check_and_kick_user.lib.' . C_EXTENSION); ! pmcCheckAndKickUser(FALSE); } $dbSessionDbLink->close(); *************** *** 113,121 **** * Check for updates in users list */ ! $doRefreshUsers = false; // $isUsrCleaned is defined in 'chat/lib/clean.lib.php3' if ($isInitLoad || $isUsrCleaned) { ! $doRefreshUsers = true; } else --- 113,121 ---- * Check for updates in users list */ ! $doRefreshUsers = FALSE; // $isUsrCleaned is defined in 'chat/lib/clean.lib.php3' if ($isInitLoad || $isUsrCleaned) { ! $doRefreshUsers = TRUE; } else *************** *** 133,137 **** { $lastUsrCheck = $newLastUsrCheck; ! $doRefreshUsers = true; $dbLink->cleanResults(); } --- 133,137 ---- { $lastUsrCheck = $newLastUsrCheck; ! $doRefreshUsers = TRUE; $dbLink->cleanResults(); } *************** *** 223,227 **** { $today = date('j', time()); ! $isDaySeparator = false; reset($grabedMessages); for ($k = 0; $k < $grabedMessagesCnt; $k++) --- 223,227 ---- { $today = date('j', time()); ! $isDaySeparator = FALSE; reset($grabedMessages); for ($k = 0; $k < $grabedMessagesCnt; $k++) *************** *** 246,250 **** { $newMessages[] = '<p class="msg"><span class="notify">--------- ' . L_TODAY_DWN . ' ---------<\/span><\/p>'; ! $isDaySeparator = true; } --- 246,250 ---- { $newMessages[] = '<p class="msg"><span class="notify">--------- ' . L_TODAY_DWN . ' ---------<\/span><\/p>'; ! $isDaySeparator = TRUE; } Index: messages_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/messages_low.php3,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** messages_low.php3 2001/11/29 22:00:56 1.22 --- messages_low.php3 2001/12/10 22:50:55 1.23 *************** *** 27,31 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 27,31 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 82,86 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 82,86 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); *************** *** 96,100 **** { include('./lib/check_and_kick_user.lib.' . C_EXTENSION); ! pmcCheckAndKickUser(false); } if (dbSessionIsRegistered('newMsgCutoff') && $dbSessionVars['newMsgCutoff'] > time() --- 96,100 ---- { include('./lib/check_and_kick_user.lib.' . C_EXTENSION); ! pmcCheckAndKickUser(FALSE); } if (dbSessionIsRegistered('newMsgCutoff') && $dbSessionVars['newMsgCutoff'] > time() *************** *** 188,192 **** { $today = date('j', time()); ! $isDaySeparator = false; reset($grabedMessages); for ($k = 0; $k < $grabedMessagesCnt; $k++) --- 188,192 ---- { $today = date('j', time()); ! $isDaySeparator = FALSE; reset($grabedMessages); for ($k = 0; $k < $grabedMessagesCnt; $k++) *************** *** 212,216 **** $daySeparatorMsg = ($dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN; $newMessages[] = '<p class="msg"><span class="notify">--------- ' . $daySeparatorMsg . ' ---------</span></p>'; ! $isDaySeparator = true; unset($daySeparatorMsg); } --- 212,216 ---- $daySeparatorMsg = ($dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN; $newMessages[] = '<p class="msg"><span class="notify">--------- ' . $daySeparatorMsg . ' ---------</span></p>'; ! $isDaySeparator = TRUE; unset($daySeparatorMsg); } Index: profile_del.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_del.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** profile_del.php3 2001/06/10 14:56:06 1.10 --- profile_del.php3 2001/12/10 22:50:55 1.11 *************** *** 27,31 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 27,31 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 79,83 **** if (!dbSessionIsRegistered('delProfilePerms')) { ! $mustNotBeAdmin = true; include('./lib/login.lib.' . C_EXTENSION); $dbSessionVars['delProfilePerms'] = $perms; --- 79,83 ---- if (!dbSessionIsRegistered('delProfilePerms')) { ! $mustNotBeAdmin = TRUE; include('./lib/login.lib.' . C_EXTENSION); $dbSessionVars['delProfilePerms'] = $perms; *************** *** 98,102 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 98,102 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); Index: profile_remind.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_remind.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** profile_remind.php3 2001/11/26 22:16:08 1.5 --- profile_remind.php3 2001/12/10 22:50:55 1.6 *************** *** 28,32 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 28,32 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 83,87 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 83,87 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); *************** *** 107,111 **** $error = L_ERR_USR_16; } ! else if (C_NO_SWEAR && checkWords($pmcProfNick, true)) { $error = L_ERR_USR_18; --- 107,111 ---- $error = L_ERR_USR_16; } ! else if (C_NO_SWEAR && checkWords($pmcProfNick, TRUE)) { $error = L_ERR_USR_18; Index: save.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/save.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** save.php3 2001/11/30 00:19:59 1.11 --- save.php3 2001/12/10 22:50:55 1.12 *************** *** 29,33 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 29,33 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 148,152 **** else { ! $isDaySeparator = false; reset($grabedMessages); for ($k = 0; $k < $grabedMessagesCnt; $k++) --- 148,152 ---- else { ! $isDaySeparator = FALSE; reset($grabedMessages); for ($k = 0; $k < $grabedMessagesCnt; $k++) *************** *** 167,171 **** : L_TODAY_DWN; $newMessages[] = '<p class="msg"><span class="notify">--------- ' . $daySeparatorMsg . ' ---------</span></p>'; ! $isDaySeparator = true; unset($daySeparatorMsg); } --- 167,171 ---- : L_TODAY_DWN; $newMessages[] = '<p class="msg"><span class="notify">--------- ' . $daySeparatorMsg . ' ---------</span></p>'; ! $isDaySeparator = TRUE; unset($daySeparatorMsg); } Index: setup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/setup.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** setup.php3 2001/11/29 23:06:44 1.4 --- setup.php3 2001/12/10 22:50:55 1.5 *************** *** 46,52 **** { if (pmcIsInto($roomName, $pubList) >= 0) ! return true; } ! return false; } // end func checkRoomsNames --- 46,52 ---- { if (pmcIsInto($roomName, $pubList) >= 0) ! return TRUE; } ! return FALSE; } // end func checkRoomsNames *************** *** 57,61 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 57,61 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 216,220 **** $cWelcome = 0; ! $error = true; if (trim($cMsgDel) == '' || trim($cUsrDel) == '' || trim($cRegDel) == '') { --- 216,220 ---- $cWelcome = 0; ! $error = TRUE; if (trim($cMsgDel) == '' || trim($cUsrDel) == '' || trim($cRegDel) == '') { *************** *** 247,251 **** else { ! $error = false; $nextPage = 3; $errorMsg = S_MAIN_11; --- 247,251 ---- else { ! $error = FALSE; $nextPage = 3; $errorMsg = S_MAIN_11; *************** *** 269,273 **** if ($submitType != S_SETUP3_12) { ! $error = true; if (trim($admLog) == '') { --- 269,273 ---- if ($submitType != S_SETUP3_12) { ! $error = TRUE; if (trim($admLog) == '') { *************** *** 286,295 **** if (!isset($showEmail)) $showEmail = 0; ! $error = false; } } else { ! $error = false; } --- 286,295 ---- if (!isset($showEmail)) $showEmail = 0; ! $error = FALSE; } } else { ! $error = FALSE; } *************** *** 313,317 **** if ($oldPassword != $adminPwd) { ! $error = true; $errorMsg = sprintf(S_MAIN_15, $admLog); $nextPage = 3; --- 313,317 ---- if ($oldPassword != $adminPwd) { ! $error = TRUE; $errorMsg = sprintf(S_MAIN_15, $admLog); $nextPage = 3; *************** *** 322,326 **** $dbLink->query("DELETE FROM $cRegTbl WHERE perms = 'admin'"); $dbLink->query("UPDATE $cRegTbl SET perms = 'admin' WHERE username = '" . pmcSlashSingleQuotes($admLog) . "'"); ! $existAdm = true; } } --- 322,326 ---- $dbLink->query("DELETE FROM $cRegTbl WHERE perms = 'admin'"); $dbLink->query("UPDATE $cRegTbl SET perms = 'admin' WHERE username = '" . pmcSlashSingleQuotes($admLog) . "'"); ! $existAdm = TRUE; } } *************** *** 428,432 **** * library */ ! pmcHttpHeaders(S_CHARSET, false); --- 428,432 ---- * library */ ! pmcHttpHeaders(S_CHARSET, FALSE); Index: smilies_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/smilies_popup.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** smilies_popup.php3 2001/06/01 20:44:40 1.4 --- smilies_popup.php3 2001/12/10 22:50:55 1.5 *************** *** 27,31 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 27,31 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 69,73 **** * library */ ! pmcHttpHeaders(L_CHARSET, false); --- 69,73 ---- * library */ ! pmcHttpHeaders(L_CHARSET, FALSE); Index: tutorial_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/tutorial_popup.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** tutorial_popup.php3 2001/04/19 21:05:04 1.5 --- tutorial_popup.php3 2001/12/10 22:50:55 1.6 *************** *** 27,31 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 27,31 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); Index: users.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users.php3,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -r1.29 -r1.30 *** users.php3 2001/12/04 20:01:03 1.29 --- users.php3 2001/12/10 22:50:55 1.30 *************** *** 27,31 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 27,31 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 76,80 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 76,80 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); *************** *** 226,231 **** $handdledRoom = ''; $firstOtherRoom = ''; ! $isCurrentRoom = true; ! $isFirstOther = true; $childCnt = array(); $joinUrl = $dbSessionVars['from'] --- 226,231 ---- $handdledRoom = ''; $firstOtherRoom = ''; ! $isCurrentRoom = TRUE; ! $isFirstOther = TRUE; $childCnt = array(); $joinUrl = $dbSessionVars['from'] *************** *** 264,268 **** $retRow = 1; $pointerPos += 2; ! $isCurrentRoom = false; $usersCnt = 0; $id = md5($aRoomName); --- 264,268 ---- $retRow = 1; $pointerPos += 2; ! $isCurrentRoom = FALSE; $usersCnt = 0; $id = md5($aRoomName); *************** *** 277,281 **** $usersList[] = '<!-- The others rooms currently in use -->'; $pointerPos += 4; ! $isFirstOther = false; $firstOtherRoom = 'Parent' . md5($aRoomName); } --- 277,281 ---- $usersList[] = '<!-- The others rooms currently in use -->'; $pointerPos += 4; ! $isFirstOther = FALSE; $firstOtherRoom = 'Parent' . md5($aRoomName); } *************** *** 370,374 **** * library */ ! $firstDefault = true; $arrayCnt = count($defaultChatRooms); reset($defaultChatRooms); --- 370,374 ---- * library */ ! $firstDefault = TRUE; $arrayCnt = count($defaultChatRooms); reset($defaultChatRooms); *************** *** 389,393 **** { $usersList[] = '<!-- The others default and public rooms -->'; ! $firstDefault = false; } --- 389,393 ---- { $usersList[] = '<!-- The others default and public rooms -->'; ! $firstDefault = FALSE; } Index: users_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_low.php3,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -r1.24 -r1.25 *** users_low.php3 2001/12/04 20:01:03 1.24 --- users_low.php3 2001/12/10 22:50:55 1.25 *************** *** 28,32 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 28,32 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 77,81 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 77,81 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); *************** *** 226,231 **** $retRow = 0; // A row where to put the number of users $handdledRoom = ''; ! $isCurrentRoom = true; ! $isFirstOther = true; $childCnt = array(); $joinUrl = $dbSessionVars['from'] --- 226,231 ---- $retRow = 0; // A row where to put the number of users $handdledRoom = ''; ! $isCurrentRoom = TRUE; ! $isFirstOther = TRUE; $childCnt = array(); $joinUrl = $dbSessionVars['from'] *************** *** 264,268 **** $retRow = 2; $pointerPos += 2; ! $isCurrentRoom = false; $usersCnt = 0; $id = md5($aRoomName); --- 264,268 ---- $retRow = 2; $pointerPos += 2; ! $isCurrentRoom = FALSE; $usersCnt = 0; $id = md5($aRoomName); *************** *** 277,281 **** $usersList[] = '<!-- The others rooms currently in use -->'; $pointerPos += 4; ! $isFirstOther = false; } else --- 277,281 ---- $usersList[] = '<!-- The others rooms currently in use -->'; $pointerPos += 4; ! $isFirstOther = FALSE; } else *************** *** 368,372 **** * library */ ! $firstDefault = true; $arrayCnt = count($defaultChatRooms); reset($defaultChatRooms); --- 368,372 ---- * library */ ! $firstDefault = TRUE; $arrayCnt = count($defaultChatRooms); reset($defaultChatRooms); *************** *** 383,387 **** { $usersList[] = '<!-- The others default and public rooms -->'; ! $firstDefault = false; } --- 383,387 ---- { $usersList[] = '<!-- The others default and public rooms -->'; ! $firstDefault = FALSE; } Index: users_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup.php3,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -r1.24 -r1.25 *** users_popup.php3 2001/12/04 20:01:03 1.24 --- users_popup.php3 2001/12/10 22:50:55 1.25 *************** *** 27,31 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 27,31 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 79,83 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 79,83 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); *************** *** 201,205 **** $retRow = 0; // A row where to put the number of users $handdledRoom = ''; ! $isFirstOther = true; $usersInCnt = count($usersIn); $roomsCnt = 0; --- 201,205 ---- $retRow = 0; // A row where to put the number of users $handdledRoom = ''; ! $isFirstOther = TRUE; $usersInCnt = count($usersIn); $roomsCnt = 0; *************** *** 222,226 **** if ($isFirstOther) { ! $isFirstOther = false; $firstOtherRoom = 'Parent' . md5($aRoomName); } --- 222,226 ---- if ($isFirstOther) { ! $isFirstOther = FALSE; $firstOtherRoom = 'Parent' . md5($aRoomName); } Index: users_popup_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup_low.php3,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** users_popup_low.php3 2001/12/04 20:01:03 1.19 --- users_popup_low.php3 2001/12/10 22:50:55 1.20 *************** *** 28,32 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 28,32 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 80,84 **** * library */ ! pmcHttpHeaders(L_CHARSET, true); --- 80,84 ---- * library */ ! pmcHttpHeaders(L_CHARSET, TRUE); *************** *** 201,205 **** $retRow = 0; // A row where to put the number of users $handdledRoom = ''; ! $isFirstOther = true; $usersInCnt = count($usersIn); $roomsCnt = 0; --- 201,205 ---- $retRow = 0; // A row where to put the number of users $handdledRoom = ''; ! $isFirstOther = TRUE; $usersInCnt = count($usersIn); $roomsCnt = 0; *************** *** 222,226 **** if ($isFirstOther) { ! $isFirstOther = false; } else --- 222,226 ---- if ($isFirstOther) { ! $isFirstOther = FALSE; } else Index: whois_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** whois_popup.php3 2001/12/04 20:01:04 1.19 --- whois_popup.php3 2001/12/10 22:50:55 1.20 *************** *** 28,32 **** */ if (!isset($PHP_SELF)) ! $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); --- 28,32 ---- */ if (!isset($PHP_SELF)) ! $PHP_SELF = (isset($_SERVER) ? $_SERVER['PHP_SELF'] : $HTTP_SERVER_VARS['PHP_SELF']); define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); *************** *** 82,86 **** * library */ ! pmcHttpHeaders(L_CHARSET, false); --- 82,86 ---- * library */ ! pmcHttpHeaders(L_CHARSET, FALSE); |