From: Lo?c C. <lo...@us...> - 2001-12-10 22:53:45
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv11557/chat/lib/index_libs Modified Files: index_validation.lib.php3 Log Message: PEAR codding standards (capitalized constants) Index: index_validation.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/index_validation.lib.php3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** index_validation.lib.php3 2001/12/04 20:01:04 1.16 --- index_validation.lib.php3 2001/12/10 22:53:40 1.17 *************** *** 61,65 **** $error1 = ''; ! $isLoggedIn = false; $requireReg = C_REQUIRE_REGISTER; --- 61,65 ---- $error1 = ''; ! $isLoggedIn = FALSE; $requireReg = C_REQUIRE_REGISTER; *************** *** 98,102 **** else if (C_NO_SWEAR) { ! if (checkWords($pmcNick, true)) { $error1 = L_ERR_USR_18; --- 98,102 ---- else if (C_NO_SWEAR) { ! if (checkWords($pmcNick, TRUE)) { $error1 = L_ERR_USR_18; *************** *** 114,118 **** { $loggedInRoom = pmcHandleMagicQuotes($loggedInRoom, '', 1, 'del'); ! $requireReg = true; } } --- 114,118 ---- { $loggedInRoom = pmcHandleMagicQuotes($loggedInRoom, '', 1, 'del'); ! $requireReg = TRUE; } } *************** *** 164,168 **** else if ($regUserPassword != $pmcPassword && $regUserPassword != md5($pmcPassword)) { ! $isRegNick = false; $pmcPassword = ''; $error1 = L_ERR_USR_4; --- 164,168 ---- else if ($regUserPassword != $pmcPassword && $regUserPassword != md5($pmcPassword)) { ! $isRegNick = FALSE; $pmcPassword = ''; $error1 = L_ERR_USR_4; *************** *** 229,233 **** } // Checks for swear words in the room name ! else if (C_NO_SWEAR && checkWords($targetRoom, true)) { $error2 = L_ERR_ROM_2; --- 229,233 ---- } // Checks for swear words in the room name ! else if (C_NO_SWEAR && checkWords($targetRoom, TRUE)) { $error2 = L_ERR_ROM_2; *************** *** 249,253 **** if ($roomExist >= 0) { ! $isCreateRoom = false; $targetRoom = $searchIn[$roomExist]; } --- 249,253 ---- if ($roomExist >= 0) { ! $isCreateRoom = FALSE; $targetRoom = $searchIn[$roomExist]; } |