From: Lo?c C. <lo...@us...> - 2001-04-10 09:38:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv12897/chat Modified Files: input.php3 handle_input.php3 Log Message: Changed a bit format_messages.lib.php3 and removed trailing whitespaces Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** input.php3 2001/04/08 21:18:54 1.5 --- input.php3 2001/04/10 09:38:14 1.6 *************** *** 130,151 **** && !($isCommand || isset($error))) { - // Ensure color is valid - checkColor($color); - - // Store the strict original message - $strictMessage = $message; - - // Remove swearings - if (C_BAD_WORDS) - { - include('./lib/swearing.lib.' . C_EXTENSION); - $message = checkWords($message, false); - } - // Format original message and set enhanced one (with graphical smilies) $originalMessage = formatMessage($message); $enhancedMessage = $originalMessage; - $message = $strictMessage; - unset($strictMessage); if (C_USE_SMILIES) { --- 130,136 ---- *************** *** 154,158 **** unset($smilies); } ! // Put the message in the 'messages' table if (empty($msgTo)) --- 139,143 ---- unset($smilies); } ! // Put the message in the 'messages' table if (empty($msgTo)) *************** *** 175,182 **** $dbLink->query($msgQuery); ! ! // Restore the strict original message and set some variables ! $message = $strictMessage; ! unset($strictMessage); $doRefreshMessages = true; } // end of handle 'true' messages --- 160,165 ---- $dbLink->query($msgQuery); ! ! // Set the variable that will force the message frame to be refreshed $doRefreshMessages = true; } // end of handle 'true' messages Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** handle_input.php3 2001/04/08 21:18:54 1.4 --- handle_input.php3 2001/04/10 09:38:14 1.5 *************** *** 131,147 **** && !($isCommand || isset($error))) { - // Ensure color is valid - checkColor($color); - - // Store the strict original message - $strictMessage = $message; - - // Remove swearings - if (C_BAD_WORDS) - { - include('./lib/swearing.lib.' . C_EXTENSION); - $message = checkWords($message, false); - } - // Format original message and set enhanced one (with graphical smilies) $originalMessage = formatMessage($message); --- 131,134 ---- *************** *** 153,157 **** unset($smilies); } ! // Put the message in the 'messages' table if (empty($msgTo)) --- 140,144 ---- unset($smilies); } ! // Put the message in the 'messages' table if (empty($msgTo)) *************** *** 159,163 **** else $slashedMsgTo = '\'' . pmcSlashSingleQuotes($msgTo) . '\''; ! $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . 'VALUES (' --- 146,150 ---- else $slashedMsgTo = '\'' . pmcSlashSingleQuotes($msgTo) . '\''; ! $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . 'VALUES (' *************** *** 173,181 **** . ')'; $dbLink->query($msgQuery); - ! // Restore the strict original message and set some variables ! $message = $strictMessage; ! unset($strictMessage); $doRefreshMessages = true; } // end of handle 'true' messages --- 160,165 ---- . ')'; $dbLink->query($msgQuery); ! // Set the variable that will force the message frame to be refreshed $doRefreshMessages = true; } // end of handle 'true' messages |