You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
(51) |
Apr
(688) |
May
(260) |
Jun
(108) |
Jul
(42) |
Aug
|
Sep
(2) |
Oct
|
Nov
(74) |
Dec
(217) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(3) |
Jun
(6) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2004 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
(8) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: Lo?c C. <lo...@us...> - 2001-04-13 10:29:21
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv25488/chat Modified Files: messages_low.php3 loader.php3 input.php3 handle_input.php3 Log Message: Fix two big problems: session last log time wasn't updated if no message is sent and starting chat page reloads in hidden frames when session was out Index: messages_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/messages_low.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** messages_low.php3 2001/04/12 23:45:34 1.6 --- messages_low.php3 2001/04/13 10:29:19 1.7 *************** *** 45,49 **** /** ! * Start the session handler */ require('./lib/db_sessions.lib.' . C_EXTENSION); --- 45,50 ---- /** ! * Start the session handler and update the last log time related to the ! * session. */ require('./lib/db_sessions.lib.' . C_EXTENSION); *************** *** 56,59 **** --- 57,61 ---- ); dbSessionStart(); + dbSessionUpdateLogTime(); /** Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** loader.php3 2001/04/12 23:38:25 1.7 --- loader.php3 2001/04/13 10:29:19 1.8 *************** *** 49,53 **** /** ! * Start the session handler */ require('./lib/db_sessions.lib.' . C_EXTENSION); --- 49,55 ---- /** ! * Start the session handler and: ! * - move to the start page if it's a newly created session; ! * - update the last log time related to the session else. */ require('./lib/db_sessions.lib.' . C_EXTENSION); *************** *** 56,63 **** C_DB_USER, C_DB_PASS, C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ); dbSessionStart(); /** --- 58,73 ---- C_DB_USER, C_DB_PASS, C_SESS_TBL, ! C_SESS_DEL * 60 ); dbSessionStart(); + if ($dbSessionIsNew) + { + include('./lib/move_to_start.lib.' . C_EXTENSION); + exit(); + } + else + { + dbSessionUpdateLogTime(); + } /** Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** input.php3 2001/04/13 08:59:00 1.15 --- input.php3 2001/04/13 10:29:19 1.16 *************** *** 56,60 **** /** ! * Start the session handler */ require('./lib/db_sessions.lib.' . C_EXTENSION); --- 56,61 ---- /** ! * Start the session handler and update the last log time related to the ! * session. */ require('./lib/db_sessions.lib.' . C_EXTENSION); *************** *** 67,70 **** --- 68,72 ---- ); dbSessionStart(); + dbSessionUpdateLogTime(); /** Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** handle_input.php3 2001/04/13 08:59:00 1.13 --- handle_input.php3 2001/04/13 10:29:19 1.14 *************** *** 56,60 **** /** ! * Start the session handler */ require('./lib/db_sessions.lib.' . C_EXTENSION); --- 56,62 ---- /** ! * Start the session handler and: ! * - move to the start page if it's a newly created session; ! * - update the last log time related to the session else. */ require('./lib/db_sessions.lib.' . C_EXTENSION); *************** *** 63,70 **** C_DB_USER, C_DB_PASS, C_SESS_TBL, ! C_SESS_DEL * 60, ! C_CHAT_URL ); dbSessionStart(); /** --- 65,80 ---- C_DB_USER, C_DB_PASS, C_SESS_TBL, ! C_SESS_DEL * 60 ); dbSessionStart(); + if ($dbSessionIsNew) + { + include('./lib/move_to_start.lib.' . C_EXTENSION); + exit(); + } + else + { + dbSessionUpdateLogTime(); + } /** |
From: Lo?c C. <lo...@us...> - 2001-04-13 10:26:27
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv23849/chat/lib Modified Files: check_and_kick_user.lib.php3 Added Files: move_to_start.lib.php3 Log Message: Improve the way users are logged out --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library is used to automatically log out an user and move him/her | // | to the starting page of phpMyChat. | // | | // | It is called by all the scripts from the phpMyChat frameset. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: move_to_start.lib.php3,v 1.1 2001/04/13 10:26:25 loic1 Exp $ // // Log out an user and move him/her to the starting page. // /** * Do exit (javascript and html stuffs) * * The url to move to ($exitUrl) should be defined in the calling script, else * this script points to the url defined inside the configuration file of * phpMyChat. */ if (empty($exitUrl)) $exitUrl = C_CHAT_URL; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>Enforce exit of an user</title> <script type="text/javascript" language="javascript"> <!-- // Close the loader if (typeof(window.parent.jsLeaveChat) != 'undefined') window.parent.jsLeaveChat = true; if (window.parent.frames['loader'] && !window.parent.frames['loader'].closed) window.parent.frames['loader'].close(); window.parent.window.location = '<?php echo($exitUrl); ?>'; // --> </script> </head> <body> <!-- For browsers that do not support JavaScript --> <p> <a href="<?php echo($exitUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> </p> </body> </html> Index: check_and_kick_user.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/check_and_kick_user.lib.php3,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** check_and_kick_user.lib.php3 2001/04/12 23:38:26 1.8 --- check_and_kick_user.lib.php3 2001/04/13 10:26:25 1.9 *************** *** 81,119 **** { dbSessionSave(); ! $exitQueryUrl = '?' . dbSessionSID('GET') . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; ! $jsExitUrl = $dbSessionVars['from'] . $exitQueryUrl; ! $htmlExitUrl = C_CHAT_URL . $exitQueryUrl; $checkLink->close(); ! ! // Do exit ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title>Exit from input or messages frame</title> ! <script type="text/javascript" language="javascript"> ! <!-- ! // Close the loader ! if (typeof(window.parent.jsLeaveChat) != 'undefined') ! window.parent.jsLeaveChat = true; ! if (window.document.title != 'Loader hidden frame' ! && (window.parent.frames['loader'] && !window.parent.frames['loader'].closed)) ! window.parent.frames['loader'].close(); ! ! window.parent.window.location = '<?php echo($jsExitUrl); ?>'; ! // --> ! </script> ! </head> ! <body> ! <!-- For browsers that do not support JavaScript --> ! <p> ! <a href="<?php echo($htmlExitUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> ! </p> ! </body> ! </html> ! <?php exit(); ! } // end of the case where the user has to be left from the current room ! // Do some updates... else { --- 81,93 ---- { dbSessionSave(); ! $exitUrl = $dbSessionVars['from'] ! . '?' . dbSessionSID('GET') ! . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; $checkLink->close(); ! include('./lib/move_to_start.lib.' . C_EXTENSION); exit(); ! } // end of the case where the user has to leave from the current room ! ! // Else do some updates... else { |
From: Lo?c C. <lo...@us...> - 2001-04-13 10:26:27
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands In directory usw-pr-cvs1:/tmp/cvs-serv23849/chat/lib/commands Modified Files: quit.cmd.php3 join.cmd.php3 Log Message: Improve the way users are logged out Index: quit.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/quit.cmd.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** quit.cmd.php3 2001/04/12 23:38:25 1.1 --- quit.cmd.php3 2001/04/13 10:26:25 1.2 *************** *** 62,98 **** */ dbSessionSave(); ! $exitQueryUrl = '?' . dbSessionSID('GET') . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; ! $jsExitUrl = $dbSessionVars['from'] . $exitQueryUrl; ! $htmlExitUrl = C_CHAT_URL . $exitQueryUrl; $dbLink->close(); ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title>Exit whith the quit command</title> ! <script type="text/javascript" language="javascript"> ! <!-- ! // Close the loader ! if (window.parent.frames['loader'] && !window.parent.frames['loader'].closed) ! { ! if (typeof(window.parent.jsLeaveChat) != 'undefined') ! window.parent.jsLeaveChat = true; ! window.parent.frames['loader'].close(); ! } ! ! // Move to the start page ! window.parent.window.location = '<?php echo($jsExitUrl); ?>'; ! // --> ! </script> ! </head> ! <body> ! <!-- For browsers that do not support JavaScript --> ! <p> ! <a href="<?php echo($htmlExitUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> ! </p> ! </body> ! </html> ! ! <?php exit(); ?> --- 62,70 ---- */ dbSessionSave(); ! $exitUrl = $dbSessionVars['from'] ! . '?' . dbSessionSID('GET') ! . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; $dbLink->close(); ! require('./lib/move_to_start.lib.' . C_EXTENSION); exit(); ?> Index: join.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/join.cmd.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** join.cmd.php3 2001/04/12 23:38:25 1.1 --- join.cmd.php3 2001/04/13 10:26:25 1.2 *************** *** 159,198 **** else { ! $joinQueryUrl = '?' . dbSessionSID('GET') ! . $pmcQueryArgSeparator . 'exitMessage=1' ! . $pmcQueryArgSeparator . 'reloading=joinCmd' ! . $pmcQueryArgSeparator . 'newTargetRoom=' . $targetRoomType . urlencode($targetRoom); ! ! $jsJoinUrl = $dbSessionVars['from'] . $joinQueryUrl; ! $htmlJoinUrl = C_CHAT_URL . $joinQueryUrl; $dbLink->close(); ! ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title>Exit from join command</title> ! <script type="text/javascript" language="javascript"> ! <!-- ! // Close the loader ! if (window.parent.frames['loader'] && !window.parent.frames['loader'].closed) ! { ! if (typeof(window.parent.jsLeaveChat) != 'undefined') ! window.parent.jsLeaveChat = true; ! window.parent.frames['loader'].close(); ! } ! ! window.parent.window.location = '<?php echo($jsJoinUrl); ?>'; ! // --> ! </script> ! </head> ! <body> ! <!-- For browsers that do not support JavaScript --> ! <p> ! <a href="<?php echo($htmlJoinUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> ! </p> ! </body> ! </html> ! <?php exit(); } --- 159,169 ---- else { ! $exitUrl = $dbSessionVars['from'] ! . '?' . dbSessionSID('GET') ! . $pmcQueryArgSeparator . 'exitMessage=1' ! . $pmcQueryArgSeparator . 'reloading=joinCmd' ! . $pmcQueryArgSeparator . 'newTargetRoom=' . $targetRoomType . urlencode($targetRoom); $dbLink->close(); ! include('./lib/move_to_start.lib.' . C_EXTENSION); exit(); } |
From: Lo?c C. <lo...@us...> - 2001-04-13 08:59:29
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv12273/lib/index_libs Modified Files: main_index.lib.php3 do_enter_db_work.lib.php3 Log Message: Too many details have been changed.... See by yourself Index: main_index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** main_index.lib.php3 2001/04/12 23:45:34 1.11 --- main_index.lib.php3 2001/04/13 08:59:26 1.12 *************** *** 135,139 **** // specific font face have to be used (iso-code is 'x-user-defined') $isFontMsg = (empty($nick) && defined('L_FONT_NAME')); ! $latin1 = (L_CHARSET == 'iso-8859-1'); // Try to get the nickname from session data, then slashes it --- 135,139 ---- // specific font face have to be used (iso-code is 'x-user-defined') $isFontMsg = (empty($nick) && defined('L_FONT_NAME')); ! $latin1 = (L_CHARSET == 'iso-8859-1') ? 1 : 0; // Try to get the nickname from session data, then slashes it *************** *** 212,216 **** if (isset($messageKind)) { ! $nickForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedNick, $latin1))); $exitedRoomName = pmcSlashSingleQuotes($dbSessionVars['currentRoom']); $exitedRoomType = $dbSessionVars['roomType']; --- 212,216 ---- if (isset($messageKind)) { ! $nickForNotifications = pmcSlashSingleQuotes(pmcSpecialChars($slashedNick, $latin1), 2); $exitedRoomName = pmcSlashSingleQuotes($dbSessionVars['currentRoom']); $exitedRoomType = $dbSessionVars['roomType']; *************** *** 635,639 **** <td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top" class="chatCell"> ! <input type="text" name="nick" size="11" maxlength="10" value="<?php echo(htmlspecialchars(urldecode($layoutNick))); ?>" class="chatBox" /> </td> </tr> --- 635,639 ---- <td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top" class="chatCell"> ! <input type="text" name="nick" size="11" maxlength="10" value="<?php echo(htmlspecialchars($layoutNick)); ?>" class="chatBox" /> </td> </tr> *************** *** 709,713 **** $defaultRoomFound = false; $defaultRoomsString = ''; ! $prevRoom = ($layoutRoom != '') ? urldecode($layoutRoom) : ''; echo("\n"); --- 709,713 ---- $defaultRoomFound = false; $defaultRoomsString = ''; ! $prevRoom = $layoutRoom; echo("\n"); *************** *** 782,786 **** </td> <td valign="top" class="chatCell"> ! <input type="text" name="createRoomName" size="11" maxlength="10"<?php if (!$defaultRoomFound && $layoutRoom != '') echo(' value="' . htmlspecialchars(urldecode($layoutRoom)) . '"'); ?> class="chatBox" onchange="pmcResetRoomBox('create');" /> </td> </tr> --- 782,786 ---- </td> <td valign="top" class="chatCell"> ! <input type="text" name="createRoomName" size="11" maxlength="10"<?php if (!$defaultRoomFound && $layoutRoom != '') echo(' value="' . htmlspecialchars($layoutRoom) . '"'); ?> class="chatBox" onchange="pmcResetRoomBox('create');" /> </td> </tr> *************** *** 820,826 **** $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(); --- 820,827 ---- $dbSessionVars['msgNumber'] = C_MSG_NB; $dbSessionVars['refreshDelay'] = C_MSG_REFRESH; ! // Among the variables to delete, the 'conservative' and the ! // 'savedMessagesLimit' ones may have been set repectively by the 'profile' and ! // the 'save' commands ! $toUnregister = array('pwdHash', 'conservative', 'savedMessagesLimit'); dbSessionUnregister($toUnregister); dbSessionSave(); 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.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** do_enter_db_work.lib.php3 2001/04/12 23:38:26 1.7 --- do_enter_db_work.lib.php3 2001/04/13 08:59:26 1.8 *************** *** 110,114 **** // Defines some variables $currentTime = time(); ! $nickForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedNick, $latin1))); if (C_WELCOME) { --- 110,114 ---- // Defines some variables $currentTime = time(); ! $nickForNotifications = pmcSlashSingleQuotes(pmcSpecialChars($slashedNick, $latin1), 2); if (C_WELCOME) { *************** *** 176,180 **** $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 . "\')')"); --- 176,180 ---- $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 . "\')')"); |
From: Lo?c C. <lo...@us...> - 2001-04-13 08:59:29
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv12273/lib Modified Files: common.lib.php3 banish.lib.php3 Log Message: Too many details have been changed.... See by yourself Index: common.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/common.lib.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** common.lib.php3 2001/04/10 15:00:05 1.3 --- common.lib.php3 2001/04/13 08:59:26 1.4 *************** *** 366,378 **** * * @param string string to slash * ! * @return string slashed/unslashed string * * @access public */ ! function pmcSlashSingleQuotes($str = '') { ! return str_replace('\'', '\\\'', $str); } // end of the 'pmcSlashSingleQuotes()' function ?> --- 366,401 ---- * * @param string string to slash + * @param integer number of slashes to add before a single quote * ! * @return string slashed string * * @access public */ ! function pmcSlashSingleQuotes($str = '', $runTimes = 1) { ! $replaceBy = '\\\''; ! for ($i = 1; $i < $runTimes; $i++) ! $replaceBy = '\\' . $replaceBy; ! return str_replace('\'', $replaceBy, $str); } // end of the 'pmcSlashSingleQuotes()' function + + /** + * Add backslashes before double quotes in a string (used for html forms + * fields) + * + * @param string string to slash + * @param integer number of slashes to add before a double quote + * + * @return string slashed string + * + * @access public + */ + function pmcSlashDoubleQuotes($str = '', $runTimes = 1) + { + $replaceBy = '\\"'; + for ($i = 1; $i < $runTimes; $i++) + $replaceBy = '\\' . $replaceBy; + return str_replace('"', $replaceBy, $str); + } // end of the 'pmcSlashDoubleQuotes()' function ?> Index: banish.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/banish.lib.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** banish.lib.php3 2001/04/03 20:10:14 1.1 --- banish.lib.php3 2001/04/13 08:59:26 1.2 *************** *** 117,121 **** // Add the nick to the banished users table if necessary if ($isBanished) ! $dbLink->query("INSERT INTO " . C_BAN_TBL . " VALUES ('$slashedNick', '$latin1', '$ip', '$banishedFromRooms', '$banUntil')"); } // end of the case where IP is banished from some rooms else --- 117,121 ---- // Add the nick to the banished users table if necessary if ($isBanished) ! $dbLink->query("INSERT INTO " . C_BAN_TBL . " VALUES ('$slashedNick', $latin1, '$ip', '$banishedFromRooms', '$banUntil')"); } // end of the case where IP is banished from some rooms else |
From: Lo?c C. <lo...@us...> - 2001-04-13 08:59:28
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands In directory usw-pr-cvs1:/tmp/cvs-serv12273/lib/commands Modified Files: promote.cmd.php3 invite.cmd.php3 Log Message: Too many details have been changed.... See by yourself Index: promote.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/promote.cmd.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** promote.cmd.php3 2001/04/12 23:38:25 1.1 --- promote.cmd.php3 2001/04/13 08:59:26 1.2 *************** *** 71,75 **** ? $slashedCurrentRoomName : ',' . $slashedCurrentRoomName; ! $targetForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedTarget, $targetLatin1))); $dbLink->query("UPDATE " . C_REG_TBL . " SET perms = 'moderator', rooms = '$slashedModeratedRooms' WHERE username = '$slashedTarget'"); --- 71,75 ---- ? $slashedCurrentRoomName : ',' . $slashedCurrentRoomName; ! $targetForNotifications = pmcSlashSingleQuotes(pmcSpecialChars($slashedTarget, $targetLatin1), 2); $dbLink->query("UPDATE " . C_REG_TBL . " SET perms = 'moderator', rooms = '$slashedModeratedRooms' WHERE username = '$slashedTarget'"); Index: invite.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/invite.cmd.php3,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** invite.cmd.php3 2001/04/12 23:38:25 1.2 --- invite.cmd.php3 2001/04/13 08:59:26 1.3 *************** *** 40,47 **** { $currentTime = time(); ! $nickForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedNick, $latin1))); ! $roomForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedCurrentRoomName, 0))); ! $roomForJs = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSlashSingleQuotes($roomForNotifications)))); ! $invitedsForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($cmd[2], 0)))); // Prepares the messages --- 40,47 ---- { $currentTime = time(); ! $nickForNotifications = pmcSlashSingleQuotes(pmcSpecialChars($slashedNick, $latin1), 2); ! $roomForNotifications = pmcSlashSingleQuotes(pmcSpecialChars($slashedCurrentRoomName, 0), 2); ! $roomForJs = pmcSlashSingleQuotes($roomForNotifications, 4); ! $invitedsForNotifications = pmcSlashSingleQuotes(pmcSpecialChars($cmd[2], 0), 3); // Prepares the messages |
From: Lo?c C. <lo...@us...> - 2001-04-13 08:59:05
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv12175 Modified Files: input.php3 handle_input.php3 Log Message: Too many details have been changed.... See by yourself Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** input.php3 2001/04/12 23:45:34 1.14 --- input.php3 2001/04/13 08:59:00 1.15 *************** *** 49,55 **** pmcGrabGlobals($toGrab); if (!empty($msgTo)) ! $msgTo = pmcHandleMagicQuotes($msgTo, '1', '', 'del'); if (!empty($message)) ! $message = pmcHandleMagicQuotes($message, '1', '', 'del'); /** --- 49,57 ---- pmcGrabGlobals($toGrab); if (!empty($msgTo)) ! $msgTo = pmcHandleMagicQuotes($msgTo, 1, '', 'del'); ! if (!empty($prevMessage)) ! $prevMessage = pmcHandleMagicQuotes($prevMessage, 1, '', 'del'); if (!empty($message)) ! $message = pmcHandleMagicQuotes($message, 1, '', 'del'); /** *************** *** 70,74 **** */ require('./localization/' . $dbSessionVars['lang'] . '/chat.loc'); ! $latin1 = (L_CHARSET == 'iso-8859-1'); /** --- 72,76 ---- */ require('./localization/' . $dbSessionVars['lang'] . '/chat.loc'); ! $latin1 = (L_CHARSET == 'iso-8859-1') ? 1 : 0; /** *************** *** 140,149 **** } - // Put the message in the 'messages' table - if (empty($msgTo)) - $slashedMsgTo = 'NULL'; - else - $slashedMsgTo = '\'' . pmcSlashSingleQuotes($msgTo) . '\''; - $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . 'VALUES (' --- 142,145 ---- *************** *** 153,161 **** . $latin1 . ', ' . time() . ', ' ! . $slashedMsgTo . ', ' . '\'' . $color . '\', ' . '\'' . pmcSlashSingleQuotes($originalMessage) . '\', ' . '\'' . pmcSlashSingleQuotes($enhancedMessage) . '\'' ! . ')'; $dbLink->query($msgQuery); --- 149,157 ---- . $latin1 . ', ' . time() . ', ' ! . 'NULL, ' . '\'' . $color . '\', ' . '\'' . pmcSlashSingleQuotes($originalMessage) . '\', ' . '\'' . pmcSlashSingleQuotes($enhancedMessage) . '\'' ! .')'; $dbLink->query($msgQuery); *************** *** 181,186 **** * Displays the frame * ! * Uses the 'pmcUrlForStyleSheet()' function from the ! * 'chat/lib/common.lib.php3' library */ // The url for the style sheet --- 177,183 ---- * Displays the frame * ! * Uses the 'pmcUrlForStyleSheet()', the 'pmcSlashSingleQuotes()' and the ! * 'pmcSlashDoubleQuotes()' functions from the ! * 'chat/lib/common.lib.php3' library */ // The url for the style sheet *************** *** 226,230 **** <!-- Last sent message or command (used for the '/!' command) --> ! <input type="hidden" name="prevMessage" value="<?php echo(isset($message) ? htmlspecialchars(stripslashes($message)) : ''); ?>" /> <!-- Addressee that will be filled when the user click on a nick at the users frame --> --- 223,227 ---- <!-- Last sent message or command (used for the '/!' command) --> ! <input type="hidden" name="prevMessage" value="<?php echo(isset($message) ? pmcSlashDoubleQuotes($message) : ''); ?>" /> <!-- Addressee that will be filled when the user click on a nick at the users frame --> *************** *** 245,251 **** // - last submission if it was an erroneous command; // - else nothing. ! $msgValue = ($displayMessage) ? htmlspecialchars($prevMessage) : ''; if (isset($error) && !($isCommand)) ! $msgValue = htmlspecialchars($message); ?> <!-- Message box --> --- 242,248 ---- // - last submission if it was an erroneous command; // - else nothing. ! $msgValue = ($displayMessage) ? pmcSlashDoubleQuotes($prevMessage) : ''; if (isset($error) && !($isCommand)) ! $msgValue = pmcSlashDoubleQuotes($message); ?> <!-- Message box --> Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** handle_input.php3 2001/04/12 23:45:34 1.12 --- handle_input.php3 2001/04/13 08:59:00 1.13 *************** *** 49,55 **** pmcGrabGlobals($toGrab); if (!empty($msgTo)) ! $msgTo = pmcHandleMagicQuotes($msgTo, '1', '', 'del'); if (!empty($message)) ! $message = pmcHandleMagicQuotes($message, '1', '', 'del'); /** --- 49,57 ---- pmcGrabGlobals($toGrab); if (!empty($msgTo)) ! $msgTo = pmcHandleMagicQuotes($msgTo, 1, '', 'del'); ! if (!empty($prevMessage)) ! $prevMessage = pmcHandleMagicQuotes($prevMessage, 1, '', 'del'); if (!empty($message)) ! $message = pmcHandleMagicQuotes($message, 1, '', 'del'); /** *************** *** 70,74 **** */ require('./localization/' . $dbSessionVars['lang'] . '/chat.loc'); ! $latin1 = (L_CHARSET == 'iso-8859-1'); /** --- 72,76 ---- */ require('./localization/' . $dbSessionVars['lang'] . '/chat.loc'); ! $latin1 = (L_CHARSET == 'iso-8859-1') ? 1 : 0; /** *************** *** 141,150 **** } - // Put the message in the 'messages' table - if (empty($msgTo)) - $slashedMsgTo = 'NULL'; - else - $slashedMsgTo = '\'' . pmcSlashSingleQuotes($msgTo) . '\''; - $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . 'VALUES (' --- 143,146 ---- *************** *** 154,158 **** . $latin1 . ', ' . time() . ', ' ! . $slashedMsgTo . ', ' . '\'' . $color . '\', ' . '\'' . pmcSlashSingleQuotes($originalMessage) . '\', ' --- 150,154 ---- . $latin1 . ', ' . time() . ', ' ! . 'NULL, ' . '\'' . $color . '\', ' . '\'' . pmcSlashSingleQuotes($originalMessage) . '\', ' *************** *** 181,184 **** --- 177,183 ---- /** * "Displays" the frame + * + * The 'pmcSlashSingleQuotes()' and the 'pmcSlashDoubleQuotes()' functions are + * defined in the 'chat/lib/common.lib.php3' script */ ?> *************** *** 196,200 **** with (window.parent.frames['input'].window.document.forms['inputForm']) { ! elements['prevMessage'].value = '<?php echo(isset($message) ? pmcSlashSingleQuotes(htmlspecialchars($message)) : ''); ?>'; <?php --- 195,199 ---- with (window.parent.frames['input'].window.document.forms['inputForm']) { ! elements['prevMessage'].value = '<?php echo(isset($message) ? pmcSlashSingleQuotes(pmcSlashDoubleQuotes($message)) : ''); ?>'; <?php *************** *** 203,209 **** // - last submission if it was an erroneous command; // - else nothing. ! $msgValue = ($displayMessage) ? htmlspecialchars($prevMessage) : ''; if (isset($error) && !($isCommand)) ! $msgValue = pmcSlashSingleQuotes(htmlspecialchars($message)); ?> elements['message'].value = '<?php echo($msgValue); ?>'; --- 202,208 ---- // - last submission if it was an erroneous command; // - else nothing. ! $msgValue = ($displayMessage) ? pmcSlashDoubleQuotes($prevMessage) : ''; if (isset($error) && !($isCommand)) ! $msgValue = pmcSlashSingleQuotes(pmcSlashDoubleQuotes($message)); ?> elements['message'].value = '<?php echo($msgValue); ?>'; |
From: Lo?c C. <lo...@us...> - 2001-04-12 23:45:37
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv14224/chat/lib/index_libs Modified Files: main_index.lib.php3 Log Message: Fix some typos Index: main_index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** main_index.lib.php3 2001/04/12 23:38:25 1.10 --- main_index.lib.php3 2001/04/12 23:45:34 1.11 *************** *** 95,99 **** '' ); ! dbSessionstart(); --- 95,99 ---- '' ); ! dbSessionStart(); |
From: Lo?c C. <lo...@us...> - 2001-04-12 23:45:37
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv14224/chat Modified Files: users_popup_low.php3 users_popup.php3 users_low.php3 users.php3 profile_reg.php3 profile_edit.php3 profile_del.php3 messages_low.php3 input.php3 ignore_popup.php3 help_popup.php3 handle_input.php3 exit.php3 Log Message: Fix some typos Index: users_popup_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup_low.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** users_popup_low.php3 2001/04/10 16:58:34 1.5 --- users_popup_low.php3 2001/04/12 23:45:34 1.6 *************** *** 56,60 **** '' ); ! dbSessionstart(); /** --- 56,60 ---- '' ); ! dbSessionStart(); /** *************** *** 80,84 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 80,84 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 144,148 **** * Format an username according to the status of the user * ! * The 'pmcSpecialChars()' fonction is defined in the * 'chat/lib/common.lib.php3' library * --- 144,148 ---- * Format an username according to the status of the user * ! * The 'pmcSpecialChars()' function is defined in the * 'chat/lib/common.lib.php3' library * *************** *** 171,175 **** * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' fonctions are defined in the 'chat/lib/common.lib.php3' * library */ --- 171,175 ---- * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' functions are defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 254,258 **** * Define the title of the window * ! * The 'pmcSlashSingleQuotes()' and the 'pmcSpecialChars()' fonctions are * defined in the 'chat/lib/common.lib.php3' * library --- 254,258 ---- * Define the title of the window * ! * The 'pmcSlashSingleQuotes()' and the 'pmcSpecialChars()' functions are * defined in the 'chat/lib/common.lib.php3' * library Index: users_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** users_popup.php3 2001/04/10 16:58:34 1.5 --- users_popup.php3 2001/04/12 23:45:34 1.6 *************** *** 55,59 **** '' ); ! dbSessionstart(); /** --- 55,59 ---- '' ); ! dbSessionStart(); /** *************** *** 79,83 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 79,83 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 143,147 **** * Format an username according to the status of the user * ! * The 'pmcSpecialChars()' fonction is defined in the * 'chat/lib/common.lib.php3' library * --- 143,147 ---- * Format an username according to the status of the user * ! * The 'pmcSpecialChars()' function is defined in the * 'chat/lib/common.lib.php3' library * *************** *** 170,174 **** * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' fonctions are defined in the 'chat/lib/common.lib.php3' * library */ --- 170,174 ---- * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' functions are defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 262,266 **** * Define the title of the window * ! * The 'pmcSlashSingleQuotes()' and the 'pmcSpecialChars()' fonctions are * defined in the 'chat/lib/common.lib.php3' * library --- 262,266 ---- * Define the title of the window * ! * The 'pmcSlashSingleQuotes()' and the 'pmcSpecialChars()' functions are * defined in the 'chat/lib/common.lib.php3' * library Index: users_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_low.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** users_low.php3 2001/04/10 16:58:34 1.6 --- users_low.php3 2001/04/12 23:45:34 1.7 *************** *** 53,57 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 53,57 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 64,68 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 64,68 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 73,77 **** * Format an username according to the status of the user * ! * The 'pmcSpecialChars()' fonction is defined in the * 'chat/lib/common.lib.php3' library * --- 73,77 ---- * Format an username according to the status of the user * ! * The 'pmcSpecialChars()' function is defined in the * 'chat/lib/common.lib.php3' library * *************** *** 109,113 **** * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' fonctions are defined in the 'chat/lib/common.lib.php3' * library */ --- 109,113 ---- * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' functions are defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 205,209 **** * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' fonctions are defined in the 'chat/lib/common.lib.php3' * library */ --- 205,209 ---- * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' functions are defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 334,338 **** * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' fonctions are defined in the 'chat/lib/common.lib.php3' * library */ --- 334,338 ---- * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' functions are defined in the 'chat/lib/common.lib.php3' * library */ Index: users.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** users.php3 2001/04/10 16:58:34 1.10 --- users.php3 2001/04/12 23:45:34 1.11 *************** *** 52,56 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 52,56 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 63,67 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 63,67 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 72,76 **** * Format an username according to the status of the user * ! * The 'pmcSpecialChars()' fonction is defined in the * 'chat/lib/common.lib.php3' library * --- 72,76 ---- * Format an username according to the status of the user * ! * The 'pmcSpecialChars()' function is defined in the * 'chat/lib/common.lib.php3' library * *************** *** 108,112 **** * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' fonctions are defined in the 'chat/lib/common.lib.php3' * library */ --- 108,112 ---- * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' functions are defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 204,208 **** * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' fonctions are defined in the 'chat/lib/common.lib.php3' * library */ --- 204,208 ---- * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' functions are defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 342,346 **** * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' fonctions are defined in the 'chat/lib/common.lib.php3' * library */ --- 342,346 ---- * * The 'pmcSlashSingleQuotes()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSpecialChars()' functions are defined in the 'chat/lib/common.lib.php3' * library */ Index: profile_reg.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** profile_reg.php3 2001/04/11 23:06:12 1.4 --- profile_reg.php3 2001/04/12 23:45:34 1.5 *************** *** 73,77 **** '' ); ! dbSessionstart(); --- 73,77 ---- '' ); ! dbSessionStart(); *************** *** 86,90 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 86,90 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ Index: profile_edit.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_edit.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** profile_edit.php3 2001/04/11 23:06:12 1.4 --- profile_edit.php3 2001/04/12 23:45:34 1.5 *************** *** 73,77 **** '' ); ! dbSessionstart(); --- 73,77 ---- '' ); ! dbSessionStart(); *************** *** 93,97 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 93,97 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ Index: profile_del.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_del.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** profile_del.php3 2001/04/10 16:58:34 1.3 --- profile_del.php3 2001/04/12 23:45:34 1.4 *************** *** 63,67 **** '' ); ! dbSessionstart(); --- 63,67 ---- '' ); ! dbSessionStart(); *************** *** 90,94 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 90,94 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ Index: messages_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/messages_low.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** messages_low.php3 2001/04/10 16:58:34 1.5 --- messages_low.php3 2001/04/12 23:45:34 1.6 *************** *** 55,59 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 55,59 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 66,70 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 66,70 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 88,92 **** * defined inside the 'chat/lib/common.lib.php3' script. */ ! // Define the SQL query (depends on the ignored users list and on whether to // display notification messages or not) $ignoredSendersList = ''; --- 88,92 ---- * defined inside the 'chat/lib/common.lib.php3' script. */ ! // Define the SQL query (it depends on the ignored users list and on whether to // display notification messages or not) $ignoredSendersList = ''; *************** *** 113,117 **** . 'LIMIT ' . $dbSessionVars['msgNumber']; ! // Get new messages and store them in an array $grabedMessages = array(); $dbLink = new pmcDB; --- 113,117 ---- . 'LIMIT ' . $dbSessionVars['msgNumber']; ! // Get messages and store them in an array $grabedMessages = array(); $dbLink = new pmcDB; *************** *** 132,136 **** /** ! * Format new messages * * The 'pmcSpecialChars()' and the 'pmcSlashSingleQuotes()' functions are --- 132,136 ---- /** ! * Format messages * * The 'pmcSpecialChars()' and the 'pmcSlashSingleQuotes()' functions are Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** input.php3 2001/04/11 23:06:12 1.13 --- input.php3 2001/04/12 23:45:34 1.14 *************** *** 64,68 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 64,68 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 75,79 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 75,79 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ Index: ignore_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/ignore_popup.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** ignore_popup.php3 2001/04/11 23:06:12 1.1 --- ignore_popup.php3 2001/04/12 23:45:34 1.2 *************** *** 55,59 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 55,59 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 65,69 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 65,69 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ Index: help_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/help_popup.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** help_popup.php3 2001/04/11 23:06:12 1.4 --- help_popup.php3 2001/04/12 23:45:34 1.5 *************** *** 63,67 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 63,67 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** handle_input.php3 2001/04/11 23:06:12 1.11 --- handle_input.php3 2001/04/12 23:45:34 1.12 *************** *** 64,68 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 64,68 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 75,79 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 75,79 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ Index: exit.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/exit.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** exit.php3 2001/04/10 16:58:34 1.7 --- exit.php3 2001/04/12 23:45:34 1.8 *************** *** 55,59 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 55,59 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 66,70 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 66,70 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ |
From: Lo?c C. <lo...@us...> - 2001-04-12 23:38:29
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv12704/chat Modified Files: whois_popup.php3 loader.php3 Added Files: save.php3 Log Message: Some more commands and fixes for them --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This script is used to save some messages in a local file. | // | | // | It is called by the 'save' command. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: save.php3,v 1.1 2001/04/12 23:38:25 loic1 Exp $ // // Save messages in a local file. // /** * 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'); /** * Gets some core libraries */ require('./config/config.lib.' . C_EXTENSION); require('./lib/common.lib.' . C_EXTENSION); require('./lib/database/' . C_DB_TYPE . '.lib.' . C_EXTENSION); require('./lib/clean.lib.' . C_EXTENSION); /** * Gets the session Id variable sent to this script * * Uses the 'pmcGrabGlobals()' function defined in the * 'chat/lib/common.lib.php3' library. */ pmcGrabGlobals('dbSessionId'); /** * 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, C_CHAT_URL ); dbSessionStart(); /** * Defines the language to be used */ require('./localization/' . $dbSessionVars['lang'] . '/chat.loc'); $textDirection = (L_CHARSET == 'windows-1256') ? 'rtl' : 'ltr'; /** * Get messages * * The 'pmcHandleMagicQuotes()' and the 'pmcSlashSingleQuotes()' functions are * defined inside the 'chat/lib/common.lib.php3' script. */ $slashedNick = pmcSlashSingleQuotes($dbSessionVars['nick']); $currentRoomType = $dbSessionVars['roomType']; $slashedCurrentRoomName = pmcSlashSingleQuotes($dbSessionVars['currentRoom']); // Define the SQL query (it depends on the ignored users list and on whether to // display notification messages or not) $ignoredSendersList = '('; if (dbSessionIsRegistered('ignoredSenders') && !empty($dbSessionVars['ignoredSenders'])) $ignoredSendersList .= '\'' . str_replace(',', '\', \'', pmcSlashSingleQuotes($dbSessionVars['ignoredSenders'])) . '\''; if ($ignoredSendersList != '(') $ignoredSendersList = 'username NOT IN (' . $ignoredSendersList . ') AND '; $ignoredSendersList .= 'username NOT LIKE \'SYS %\') AND '; $savedMessagesLimit = ($dbSessionVars['savedMessagesLimit'] != '*') ? 'LIMIT ' . $dbSessionVars['savedMessagesLimit'] : ''; $getMessagesQuery = 'SELECT username, latin1, m_time, address, color, msg_' . $dbSessionVars['msgKind'] . ' ' . 'FROM ' . C_MSG_TBL . ' ' . 'WHERE ' . $ignoredSendersList . '(' . 'address = \' *\' OR ' . '(address = \'' . $slashedNick .'\' AND (room = \'' . $slashedCurrentRoomName . '\' OR username = \'SYS inviteTo\')) OR ' . '(room = \'' . $slashedCurrentRoomName . '\' AND (address IS NULL OR username = \''. $slashedNick . '\'))' . ') ' . 'ORDER BY m_time DESC ' . $savedMessagesLimit; // Get messages and store them in an array $grabedMessages = array(); $dbLink = new pmcDB; $dbLink->query($getMessagesQuery); while (list($sender, $senderLatin1, $sentTime, $addressee, $msgColor, $message) = $dbLink->nextRecord()) { $grabedMessages[] = array( 'sender' => pmcHandleMagicQuotes($sender, '', 1, 'del'), 'senderLatin1' => $senderLatin1, 'sentTime' => $sentTime, 'addressee' => pmcHandleMagicQuotes($addressee, '', 1, 'del'), 'msgColor' => $msgColor, 'message' => pmcHandleMagicQuotes($message, '', 1, 'del') ); } $dbLink->cleanResults(); $dbLink->close(); /** * Format messages * * The 'pmcSpecialChars()' and the 'pmcSlashSingleQuotes()' functions are * defined inside the 'chat/lib/common.lib.php3' script. */ $newMessages = array(); $grabedMessagesCnt = count($grabedMessages); if ($grabedMessagesCnt == 0) { $newMessages[] = '<span class="notify">' . L_NO_MSG . '</span>'; } else { reset($grabedMessages); for ($k = 0; $k < $grabedMessagesCnt; $k++) { // Get the values of messages variables while (list($name, $value) = each($grabedMessages[$k])) $$name = $value; // Separator between messages sent before today and other ones if (!isset($daySeparator) && date('j', $sentTime) != date('j', time())) { $daySeparatorMsg = ($dbSessionVars['jsVersion'] != 'high' && $dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN; $newMessages[] = '<p class="msg"><span class="notify">--------- ' . $daySeparatorMsg . ' ---------</span></p>'; $daySeparator = 1; unset($daySeparatorMsg); } // Messages $aMessage = '<p class="msg">'; // The timestamp of the message if ($dbSessionVars['showTimestamp'] == 1) $aMessage .= '<span class="time">' . date('H:i:s', $sentTime + C_TMZ_OFFSET * 60 * 60) . '</span> '; // The message itself $sender = pmcSpecialChars($sender, $senderLatin1); if ($addressee != '') $addressee = ']<bdo dir="' . $textDirection . '"></bdo>>[' . htmlspecialchars($addressee); $aMessage .= '<b>[' . $sender . $addressee . ']<bdo dir="' . $textDirection .'"></bdo></b> ' . '<font color="' . $msgColor . '">' . $message . '</font>'; $aMessage .= '</p>'; $newMessages[] = $aMessage; } } // end of formatting new messages unset($grabedMessages); /** * "Displays" the frame */ $messagesCnt = count($newMessages); if ($messagesCnt > 0) { // Save messages to a file header('Content-Type: application/octetstream'); header('Content-Disposition: attachement; filename="chat_save_' . date('mdY') . '.htm"'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html dir="<?php echo($textDirection); ?>"> <head> <title><?php echo(APP_NAME . ' - ' . htmlspecialchars($dbSessionVars['currentRoom']) . ' - ' . date('F j, Y')); ?></title> <style> <?php if (defined(L_FONT_NAME) && L_FONT_NAME != '') { // For the 'x-user-defined' charset echo("\n"); ?> * {font-family: <?php echo(L_FONT_NAME); ?>, sans-serif;} <?php } else if (L_CHARSET == 'iso-8859-1') { // For the 'latin1' charset echo("\n"); ?> * {font-family: helvetica, arial, geneva, sans-serif;} <?php } echo("\n"); ?> BODY.mainframe { background-color: #CCCCFF; color: #000000; font-size: <?php echo(L_FONT_SIZE); ?>pt; font-weight: 400; margin: 5px; } A { text-decoration: underline; color: #FFFFFF; font-weight: 600; } A:hover, A:active { color: #FF9900; text-decoration: none; } .msg { margin-top: 0px; margin-bottom: 2px; margin-left: <?php echo(L_CHARSET == 'windows-1256') ? 5 : 55; ?>px; margin-right: <?php echo(L_CHARSET == 'windows-1256') ? 55 : 5; ?>px; text-indent: -50px; } .time { direction: ltr; unicode-bidi: embed; color: #000000; font-size: 8pt; } .notify { color: #666699; font-size: <?php echo(L_FONT_SIZE); ?>pt; font-weight: 600; } </style> <head> <body class="mainframe"> <?php echo("\n"); reset($newMessages); for ($k = 0; $k < $messagesCnt; $k++) { $aMessage = ($dbSessionVars['jsVersion'] != 'high' && $dbSessionVars['msgOrder'] == 0) ? $newMessages[$k] : $newMessages[$messagesCnt - $k - 1]; echo($aMessage . "\n"); } unset($newMessages); ?> </body> </html> <?php } ?> Index: whois_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** whois_popup.php3 2001/04/11 23:06:12 1.6 --- whois_popup.php3 2001/04/12 23:38:25 1.7 *************** *** 40,48 **** * Gets the values of variables sent or posted to this script * ! * Uses the 'pmcGrabGlobals()' and the 'pmcHandleMagicQuotes()' functions ! * defined in the 'chat/lib/common.lib.php3' library. */ pmcGrabGlobals('%GET'); ! $slashedWhoisTarget = pmcHandleMagicQuotes($whoisTarget, '0', '', 'add'); /** --- 40,50 ---- * Gets the values of variables sent or posted to this script * ! * Uses the 'pmcGrabGlobals()', the 'pmcHandleMagicQuotes()' and the ! * 'pmcSlashSingleQuotes()' functions are defined in the ! * 'chat/lib/common.lib.php3' library. */ pmcGrabGlobals('%GET'); ! $whoisTarget = pmcHandleMagicQuotes($whoisTarget, '1', '', 'del'); ! $slashedWhoisTarget = pmcSlashSingleQuotes($whoisTarget); /** *************** *** 57,61 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 59,63 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 67,71 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 69,73 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 98,102 **** */ $whoisDbLnk = new pmcDB; ! $whoisDbLnk->query("SELECT latin1, firstname, lastname, country, website, email, showemail, perms, rooms, ip, gender FROM " . C_REG_TBL . " WHERE username='$slashedWhoisTarget' LIMIT 1"); list($latin1, $firstname, $lastname, $country, $website, $email, $showemail, $perms, $rooms, $ip, $gender) = $whoisDbLnk->nextRecord(); $whoisDbLnk->cleanResults(); --- 100,104 ---- */ $whoisDbLnk = new pmcDB; ! $whoisDbLnk->query("SELECT latin1, firstname, lastname, country, website, email, showemail, perms, rooms, ip, gender FROM " . C_REG_TBL . " WHERE username = '$slashedWhoisTarget' LIMIT 1"); list($latin1, $firstname, $lastname, $country, $website, $email, $showemail, $perms, $rooms, $ip, $gender) = $whoisDbLnk->nextRecord(); $whoisDbLnk->cleanResults(); *************** *** 150,154 **** <head> ! <title><?php echo(pmcSpecialChars($slashedWhoisTarget, $latin1)); ?></title> <link rel="stylesheet" href="<?php echo($cssUrl); ?>" type="text/css" /> <script type="text/javascript" language="javascript1.1"> --- 152,156 ---- <head> ! <title><?php echo(pmcSpecialChars($whoisTarget, $latin1)); ?></title> <link rel="stylesheet" href="<?php echo($cssUrl); ?>" type="text/css" /> <script type="text/javascript" language="javascript1.1"> *************** *** 157,161 **** function pmcPutFocus() { ! if (typeof(window.opener) == 'undefined') return false; if (window.opener.window.document.title == 'Handle input hidden frame') --- 159,164 ---- function pmcPutFocus() { ! if (typeof(window.opener) == 'undefined' ! || typeof(window.opener.window.parent.jsIsNS4) == 'undefined') return false; if (window.opener.window.document.title == 'Handle input hidden frame') *************** *** 179,183 **** <p class="title"> ! <?php echo($tagOpen . pmcSpecialChars($slashedWhoisTarget, $latin1) . $tagClose . "\n"); ?> </p> <p></p> --- 182,186 ---- <p class="title"> ! <?php echo($tagOpen . pmcSpecialChars($whoisTarget, $latin1) . $tagClose . "\n"); ?> </p> <p></p> *************** *** 258,261 **** --- 261,271 ---- </center> + + <script type="text/javascript" language="javascript1.1"> + <!-- + // Get the focus + self.focus(); + // --> + </script> </body> Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** loader.php3 2001/04/10 16:58:34 1.6 --- loader.php3 2001/04/12 23:38:25 1.7 *************** *** 59,63 **** C_CHAT_URL ); ! dbSessionstart(); /** --- 59,63 ---- C_CHAT_URL ); ! dbSessionStart(); /** *************** *** 70,74 **** * Sends HTTP headers * ! * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ --- 70,74 ---- * Sends HTTP headers * ! * The 'pmcHttpHeaders()' function is defined in the 'chat/lib/common.lib.php3' * library */ *************** *** 111,115 **** . '(type = 1' . (($dbSessionVars['roomType'] == 0) ! ? ' OR (type = 0 AND room = \'' . $dbSessionVars['currentRoom'] .'\')) ' : ') ') . 'ORDER BY m_time DESC ' --- 111,115 ---- . '(type = 1' . (($dbSessionVars['roomType'] == 0) ! ? ' OR (type = 0 AND room = \'' . $slashedCurrentRoomName .'\')) ' : ') ') . 'ORDER BY m_time DESC ' *************** *** 133,137 **** * defined inside the 'chat/lib/common.lib.php3' script. */ ! // Define the SQL query (depends on the ignored users list and on whether to // display notification messages or not) $ignoredSendersList = ''; --- 133,137 ---- * defined inside the 'chat/lib/common.lib.php3' script. */ ! // Define the SQL query (it depends on the ignored users list and on whether to // display notification messages or not) $ignoredSendersList = ''; |
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands In directory usw-pr-cvs1:/tmp/cvs-serv12704/chat/lib/commands Modified Files: invite.cmd.php3 banish.cmd.php3 Added Files: save.cmd.php3 quit.cmd.php3 promote.cmd.php3 priv_msg.cmd.php3 kick.cmd.php3 join.cmd.php3 Log Message: Some more commands and fixes for them --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'save' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: save.cmd.php3,v 1.1 2001/04/12 23:38:25 loic1 Exp $ // // The work for the 'save' command. // /** * Ensure there are some messages to save * * The 'pmcSlashSingleQuotes()' function is defined inside the * 'chat/lib/common.lib.php3' script. */ // Define the SQL query (it depends on the ignored users list and on whether to // display notification messages or not) $ignoredSendersList = '('; if (dbSessionIsRegistered('ignoredSenders') && !empty($dbSessionVars['ignoredSenders'])) $ignoredSendersList .= '\'' . str_replace(',', '\', \'', pmcSlashSingleQuotes($dbSessionVars['ignoredSenders'])) . '\''; if ($ignoredSendersList != '(') $ignoredSendersList = 'username NOT IN (' . $ignoredSendersList . ') AND '; $ignoredSendersList .= 'username NOT LIKE \'SYS %\') AND '; $getMessagesQuery = 'SELECT COUNT(*) FROM ' . C_MSG_TBL . ' ' . 'WHERE ' . $ignoredSendersList . '(' . 'address = \' *\' OR ' . '(address = \'' . $slashedNick .'\' AND (room = \'' . $slashedCurrentRoomName . '\' OR username = \'SYS inviteTo\')) OR ' . '(room = \'' . $slashedCurrentRoomName . '\' AND (address IS NULL OR username = \''. $slashedNick . '\'))' . ') ' . 'LIMIT 1'; // Check if there is message $dbLink->query($getMessagesQuery); list($isMessages) = $dbLink->nextRecord(); $dbLink->cleanResults(); /** * Just modidify some variables and define an array of JavaScript instructions * to be ran at the end of the calling script */ if ($isMessages) { $isCommand = true; $isPopup = true; if (C_SAVE != "*" && ($cmd[2] = '*' || $cmd[2] > C_SAVE || $cmd[2] == '')) $cmd[2] = C_SAVE; else if ($cmd[2] == '') $cmd[2] = C_SAVE; $dbSessionVars['savedMessagesLimit'] = $cmd[2]; $exportUrl = 'save.' . C_EXTENSION . '?' . dbSessionSID('GET'); // Define a table that contains JavaScript instructions to be ran $jsToRun = array( '<script type="text/javascript" language="javascript">', '<!--', '// Save messages to a file', 'window.open(\'' . $exportUrl . '\', \'save_popup\', \'width=0,height=0,resizable=yes,scrollbars=yes\');', '// -->', '</script>' ); } else { $error = L_NO_SAVE; } ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'banish' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: quit.cmd.php3,v 1.1 2001/04/12 23:38:25 loic1 Exp $ // // The work for the 'banish' command. // /** * Put the message in the messages table if required * * The 'pmcSlashSingleQuotes()' function is defined inside the * 'chat/lib/common.lib.php3' library */ $cmd[3] = trim($cmd[3]); if ($cmd[3] != '') { // Format original message and set enhanced one (with graphical smilies) $originalMessage = formatMessage($cmd[3]); $enhancedMessage = $originalMessage; if (C_USE_SMILIES) { include('./lib/smilies.lib.' . C_EXTENSION); pmcCheckForSmilies($enhancedMessage); unset($smilies); } $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . 'VALUES (' . $currentRoomType . ', ' . '\'' . $slashedCurrentRoomName . '\', ' . '\'' . $slashedNick . '\', ' . $latin1 . ', ' . time() . ', ' . 'NULL, ' . '\'' . $color . '\', ' . '\'' . pmcSlashSingleQuotes($originalMessage) . '\', ' . '\'' . pmcSlashSingleQuotes($enhancedMessage) . '\'' . ')'; $dbLink->query($msgQuery); } /** * Do quit */ dbSessionSave(); $exitQueryUrl = '?' . dbSessionSID('GET') . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; $jsExitUrl = $dbSessionVars['from'] . $exitQueryUrl; $htmlExitUrl = C_CHAT_URL . $exitQueryUrl; $dbLink->close(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>Exit whith the quit command</title> <script type="text/javascript" language="javascript"> <!-- // Close the loader if (window.parent.frames['loader'] && !window.parent.frames['loader'].closed) { if (typeof(window.parent.jsLeaveChat) != 'undefined') window.parent.jsLeaveChat = true; window.parent.frames['loader'].close(); } // Move to the start page window.parent.window.location = '<?php echo($jsExitUrl); ?>'; // --> </script> </head> <body> <!-- For browsers that do not support JavaScript --> <p> <a href="<?php echo($htmlExitUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> </p> </body> </html> <?php exit(); ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'promote' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: promote.cmd.php3,v 1.1 2001/04/12 23:38:25 loic1 Exp $ // // The work for the 'promote' command. // /** * Check for invalid characters in the target user name */ if (ereg('[\, ]', $cmd[1])) { $error = L_ERR_USR_16; } /** * Ensure the current user is allowed to use the 'promote' command */ else if ($dbSessionVars['status'] != 'a' && $dbSessionVars['status'] != 'm') { $error = L_NO_MODERATOR; } /** * Ensure the target user can be promoted before doing the work * * The 'pmcSlashSingleQuotes()', 'pmcHandleMagicQuotes()' and 'pmcIsInto()' * functions are defined inside the 'chat/lib/common.lib.php3' library */ else { $slashedTarget = pmcSlashSingleQuotes($cmd[1]); // Ensure the user to be promoted is a registered one $dbLink->query("SELECT latin1, perms, rooms FROM " . C_REG_TBL . " WHERE username = '$slashedTarget' LIMIT 1"); $isReg = (list($targetLatin1, $targetPerms, $targetModeratedRooms) = $dbLink->nextRecord()); if ($isReg) { $targetModeratedRooms = pmcHandleMagicQuotes($targetModeratedRooms, '', 1, 'del'); $slashedModeratedRooms = pmcSlashSingleQuotes($targetModeratedRooms); $isCommand = true; // Promote the user if he/she is not administrator or already moderator // for the current room if ($targetPerms == 'admin') { $error = sprintf(L_ADMIN, $cmd[1]); } else if (pmcIsInto($dbSessionVars['currentRoom'], $targetModeratedRooms) < 0) { $doRefreshMessages = true; $slashedModeratedRooms .= ($slashedModeratedRooms == '') ? $slashedCurrentRoomName : ',' . $slashedCurrentRoomName; $targetForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedTarget, $targetLatin1))); $dbLink->query("UPDATE " . C_REG_TBL . " SET perms = 'moderator', rooms = '$slashedModeratedRooms' WHERE username = '$slashedTarget'"); $dbLink->query("UPDATE " . C_USR_TBL . " SET status = 'm' WHERE username = '$slashedTarget'"); $dbLink->query("INSERT INTO " . C_MSG_TBL . " VALUES ($currentRoomType, '$slashedCurrentRoomName', 'SYS promote', $latin1, " . time() . ", NULL, '#666699', 'sprintf(L_MODERATOR, \'$targetForNotifications\')', 'sprintf(L_MODERATOR, \'$targetForNotifications\')')"); } else { $error = sprintf(L_IS_MODERATOR, $cmd[1]); } } else { $error = sprintf(L_NONREG_USER, $cmd[1]); } } ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to private messages. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: priv_msg.cmd.php3,v 1.1 2001/04/12 23:38:25 loic1 Exp $ // // The work for private messages. // $cmd[2] = trim($cmd[2]); $cmd[3] = trim($cmd[3]); /** * Check for invalid characters in the addressee name */ if (ereg('[\, ]', $cmd[2])) { $error = L_ERR_USR_16; } /** * Put the private message in the 'messages' table * * The 'pmcSlashSingleQuotes()' function is defined in the * 'chat/lib/common.lib.php3' library */ else if ($cmd[2] != '' && $cmd[3] != '') { // Format original message and set enhanced one (with graphical smilies) $originalMessage = formatMessage($cmd[3]); $enhancedMessage = $originalMessage; if (C_USE_SMILIES) { include('./lib/smilies.lib.' . C_EXTENSION); pmcCheckForSmilies($enhancedMessage); unset($smilies); } // Put the message in the 'messages' table $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . 'VALUES (' . $currentRoomType . ', ' . '\'' . $slashedCurrentRoomName . '\', ' . '\'' . $slashedNick . '\', ' . $latin1 . ', ' . time() . ', ' . '\'' . pmcSlashSingleQuotes($cmd[2]) . '\', ' . '\'' . $color . '\', ' . '\'' . pmcSlashSingleQuotes($originalMessage) . '\', ' . '\'' . pmcSlashSingleQuotes($enhancedMessage) . '\'' . ')'; $dbLink->query($msgQuery); $isCommand = true; $doRefreshMessages = true; } ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'kick' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: kick.cmd.php3,v 1.1 2001/04/12 23:38:25 loic1 Exp $ // // The work for the 'kick' command. // /** * Check for invalid characters in the target user name */ if (ereg('[\, ]', $cmd[1])) { $error = L_ERR_USR_16; } /** * Ensure the current user is allowed to use the 'kick' command */ else if ($dbSessionVars['status'] != 'a' && $dbSessionVars['status'] != 'm') { $error = L_NO_MODERATOR; } /** * Ensure the current user is allowed to 'kick' the target user before doing * the work * * The 'pmcSlashSingleQuotes()' and 'pmcHandleMagicQuotes()' functions are * defined inside the 'chat/lib/common.lib.php3' library */ else { $slashedTarget = pmcSlashSingleQuotes($cmd[1]); // Define an additional condition for moderators so they can only kick an // user from their current room $queryRoomPart = ($dbSessionVars['status'] == 'm') ? 'room = \'' . $slashedCurrentRoomName . '\' AND ' : ''; // Ensure the user to be kicked is logged in (into the current room for // moderators) $dbLink->query("SELECT room, status FROM " . C_USR_TBL . " WHERE " . $queryRoomPart . "username = '$slashedTarget' LIMIT 1"); $isChatting = (list($targetCurrentRoom, $targetStatus) = $dbLink->nextRecord()); $dbLink->cleanResults(); // He/she is not chatting -> send an error message if (!$isChatting) { $error = sprintf(L_NONEXIST_USER, $cmd[1]); } // He/she is chatting else { // Ensure the user to be banished is not a more powerfull user // (admin > moderator) if ($targetStatus == 'a' || ($targetStatus == 'm' && $dbSessionVars['status'] != 'a')) { $error = sprintf(L_NO_KICKED, $cmd[1]); } else { $dbLink->query("UPDATE " . C_USR_TBL . " SET u_time = " . time() . ", status = 'k' WHERE " . $queryRoomPart . "username = '$slashedTarget'"); // kicked confirmation message when an user has been kicked // from an other room than the current one $targetCurrentRoom = pmcHandleMagicQuotes($targetCurrentRoom, '', 1, 'del'); if ($targetCurrentRoom != $dbSessionVars['currentRoom']) $error = sprintf(L_KICKED, $cmd[1]); $isCommand = true; $doRefreshMessages = true; } } } ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'join' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: join.cmd.php3,v 1.1 2001/04/12 23:38:25 loic1 Exp $ // // The work for the 'join' command. // /** * Get the swearing library and defines some variables * * The 'pmcSlashSingleQuotes()' function is defined in the * 'chat/lib/common.lib.php3' library */ if (C_NO_SWEAR == 1) include('./lib/swearing.lib.' . C_EXTENSION); $targetRoomType = ($cmd[2] != '') ? $cmd[2] : 1; $targetRoom = $cmd[3]; $slashedTarget = pmcSlashSingleQuotes($cmd[3]); /** * Creation of room is not allowed -> ensure that the target room is among * default ones * * The 'pmcIsInto()' function is defined in the 'chat/lib/common.lib.php3' * library */ if (C_VERSION == 1) { if (pmcIsInto($targetRoom, $defaultChatRooms) >= 0) $isCommand = true; else $error = L_ERR_USR_17; } /** * Creation of room is allowed -> ensure that the target room has valid * name and type * * The 'pmcIsInto()' function is defined in the 'chat/lib/common.lib.php3' * library */ // Check for invalid characters else if (ereg('[\,]', $targetRoom)) { $error = L_ERR_ROM_1; } // Check for swear words if necessary else if (C_NO_SWEAR == 1 && checkWords($targetRoom, true)) { $error = L_ERR_ROM_2; } // Ensure there is no existing room with the same name but a different type // among reserved name for private/public (default) rooms else { $toCheck = ($targetRoomType == 1) ? $defaultPrivateRooms : $defaultChatRooms; if (pmcIsInto($targetRoom, $toCheck) >= 0) $error = ($targetRoomType == 0) ? L_ERR_ROM_3 : L_ERR_ROM_4; else $isCommand = true; unset($toCheck); } /** * If the target room has valid name and type, do the work * * The 'pmcIsInto()' function is defined in the 'chat/lib/common.lib.php3' * library */ if ($isCommand) { $found = false; // Get the case sensitive name of the target room // 1. Among default rooms $toCheck = ($targetRoomType == 1) ? $defaultChatRooms : $defaultPrivateRooms; $pos = pmcIsInto($targetRoom, $toCheck); if ($pos >= 0) { $targetRoom = $toCheck[$pos]; $found = true; } unset($toCheck); // 2. Among other existing rooms with the same type if (!$found) { $dbLink->query("SELECT type, room FROM " . C_MSG_TBL . " WHERE room = '$slashedTarget' LIMIT 1"); $roomExist = (list($trueTargetType, $trueTargetName) = $dbLink->nextRecord()); if ($roomExist && $targetRoomType == $trueTargetType) { $targetRoom = pmcHandleMagicQuotes($trueTargetName, '', 1, 'del'); $found = true; } $dbLink->cleanResults(); } // Room should be created // 1. ensure the user is registered if (!$found || $targetRoomType == 0) { // Ensure the user is a registered one if ($dbSessionVars['status'] != 'a' && $dbSessionVars['status'] != 'm' && $dbSessionVars['status'] != 'r') { $error = L_ERR_USR_13; $found = false; } } // 2. ensure there is no existing room with the same name but a different // type among rooms created by users if (!$found && $roomExist && empty($error)) { $error = ($targetRoomType == 0) ? L_ERR_ROM_3 : L_ERR_ROM_4; } else if (empty($error)) { $found = true; } // Ensure the user is not banished from the room he wants to enter in if ($found && C_BANISH && $dbSessionVars['status'] != 'a') { $enterOtherRoomName = $targetRoom; include('./lib/banish.lib.' . C_EXTENSION); if ($isBanished) { $found = false; $error = L_ERR_USR_20; } unset($enterOtherRoomName); } // If the room can't be created if (!$found) { $isCommand = false; } // Log into the new room else { $joinQueryUrl = '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'exitMessage=1' . $pmcQueryArgSeparator . 'reloading=joinCmd' . $pmcQueryArgSeparator . 'newTargetRoom=' . $targetRoomType . urlencode($targetRoom); $jsJoinUrl = $dbSessionVars['from'] . $joinQueryUrl; $htmlJoinUrl = C_CHAT_URL . $joinQueryUrl; $dbLink->close(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>Exit from join command</title> <script type="text/javascript" language="javascript"> <!-- // Close the loader if (window.parent.frames['loader'] && !window.parent.frames['loader'].closed) { if (typeof(window.parent.jsLeaveChat) != 'undefined') window.parent.jsLeaveChat = true; window.parent.frames['loader'].close(); } window.parent.window.location = '<?php echo($jsJoinUrl); ?>'; // --> </script> </head> <body> <!-- For browsers that do not support JavaScript --> <p> <a href="<?php echo($htmlJoinUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> </p> </body> </html> <?php exit(); } } ?> Index: invite.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/invite.cmd.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** invite.cmd.php3 2001/04/11 23:06:14 1.1 --- invite.cmd.php3 2001/04/12 23:38:25 1.2 *************** *** 39,52 **** else { - $isCommand = true; $currentTime = time(); $nickForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedNick, $latin1))); $roomForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedCurrentRoomName, 0))); ! $roomForJs = pmcSlashSingleQuotes(pmcSlashSingleQuotes($roomForNotifications)); ! $invitedsForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($cmd[2], 0))); // Prepares the messages $reqRegist = ($dbSessionVars['roomType'] == 0 && !C_REQUIRE_REGISTER) ! ? ' . \' \' . L_INVITE_REG' : ''; $theMessage = 'sprintf(L_INVITE, \\\'' . $nickForNotifications . '\\\', \\\'JOIN\\\', \\\'' . $currentRoomType . ' #' . $roomForJs . '\\\', \\\'' . $roomForNotifications . '\\\')' --- 39,51 ---- else { $currentTime = time(); $nickForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedNick, $latin1))); $roomForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($slashedCurrentRoomName, 0))); ! $roomForJs = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSlashSingleQuotes($roomForNotifications)))); ! $invitedsForNotifications = pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSlashSingleQuotes(pmcSpecialChars($cmd[2], 0)))); // Prepares the messages $reqRegist = ($dbSessionVars['roomType'] == 0 && !C_REQUIRE_REGISTER) ! ? ' . \\\' \\\' . L_INVITE_REG' : ''; $theMessage = 'sprintf(L_INVITE, \\\'' . $nickForNotifications . '\\\', \\\'JOIN\\\', \\\'' . $currentRoomType . ' #' . $roomForJs . '\\\', \\\'' . $roomForNotifications . '\\\')' *************** *** 96,99 **** --- 95,101 ---- // Insert a message for the sender $dbLink->query($inviterQuery); + + $isCommand = true; + $doRefreshMessages = true; } Index: banish.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/banish.cmd.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** banish.cmd.php3 2001/04/10 21:25:55 1.4 --- banish.cmd.php3 2001/04/12 23:38:25 1.5 *************** *** 42,45 **** --- 42,48 ---- * Ensure the current user is allowed to 'banish' the target user before doing * the work + * + * The 'pmcSlashSingleQuotes()', 'pmcHandleMagicQuotes()' and 'pmcIsInto()' + * functions are defined inside the 'chat/lib/common.lib.php3' library */ else *************** *** 50,56 **** // user from their current room $queryRoomPart = ($dbSessionVars['status'] == 'm') ! ? 'room = \'' . pmcSlashSingleQuotes($dbSessionVars['currentRoom']) . '\' AND ' : ''; ! // Ensure the user to be banished is logged in (into the current room for moderators) $dbLink->query("SELECT latin1, room, status, ip FROM " . C_USR_TBL . " WHERE " . $queryRoomPart . "username = '$slashedTarget' LIMIT 1"); $isChatting = (list($targetLatin1, $targetCurrentRoom, $targetStatus, $targetIp) = $dbLink->nextRecord()); --- 53,60 ---- // user from their current room $queryRoomPart = ($dbSessionVars['status'] == 'm') ! ? 'room = \'' . $slashedCurrentRoomName . '\' AND ' : ''; ! // Ensure the user to be banished is logged in (into the current room for ! // moderators) $dbLink->query("SELECT latin1, room, status, ip FROM " . C_USR_TBL . " WHERE " . $queryRoomPart . "username = '$slashedTarget' LIMIT 1"); $isChatting = (list($targetLatin1, $targetCurrentRoom, $targetStatus, $targetIp) = $dbLink->nextRecord()); *************** *** 98,108 **** else { $tmpArray = explode(',', $targetOldBanRooms); if (pmcIsInto($targetCurrentRoom, $tmpArray) < 0) $targetNewBanRooms = (count($tmpArray) > 2) ? '*' ! : pmcSlashSingleQuotes($targetOldBanRooms . ',' . $targetCurrentRoom); else ! $targetNewBanRooms = pmcSlashSingleQuotes($targetOldBanRooms); unset($tmpArray); } --- 102,115 ---- else { + $targetCurrentRoom = pmcHandleMagicQuotes($targetCurrentRoom, '', 1, 'del'); + $targetOldBanRooms = pmcHandleMagicQuotes($targetOldBanRooms, '', 1, 'del'); + $slashedOldBanRooms = pmcSlashSingleQuotes($targetOldBanRooms); $tmpArray = explode(',', $targetOldBanRooms); if (pmcIsInto($targetCurrentRoom, $tmpArray) < 0) $targetNewBanRooms = (count($tmpArray) > 2) ? '*' ! : $slashedOldBanRooms . ',' . pmcSlashSingleQuotes($targetCurrentRoom); else ! $targetNewBanRooms = $slashedOldBanRooms; unset($tmpArray); } *************** *** 119,124 **** $targetNewBanRooms = ($cmd[1] == '* ') ? '*' ! : pmcSlashSingleQuotes($targetCurrentRoom); ! $dbLink->query("INSERT INTO " . C_BAN_TBL . " VALUES ('$slashedTarget', '$targetLatin1', '$targetIp', '$targetNewBanRooms', '$banUntil')"); } // end of 'first banishment for the target user' --- 126,131 ---- $targetNewBanRooms = ($cmd[1] == '* ') ? '*' ! : $slashedCurrentRoomName; ! $dbLink->query("INSERT INTO " . C_BAN_TBL . " VALUES ('$slashedTarget', $targetLatin1, '$targetIp', '$targetNewBanRooms', '$banUntil')"); } // end of 'first banishment for the target user' *************** *** 128,132 **** // banishment confirmation message when an user has been banished // from an other room than the current one ! if ($targetCurrentRoom != pmcSlashSingleQuotes($dbSessionVars['currentRoom'])) $error = sprintf(L_BANISHED, $cmd[2]); --- 135,140 ---- // banishment confirmation message when an user has been banished // from an other room than the current one ! $targetCurrentRoom = pmcHandleMagicQuotes($targetCurrentRoom, '', 1, 'del'); ! if ($targetCurrentRoom != $dbSessionVars['currentRoom']) $error = sprintf(L_BANISHED, $cmd[2]); |
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 . "\')')"); |
From: Lo?c C. <lo...@us...> - 2001-04-12 23:38:28
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv12704/chat/lib Modified Files: commands.lib.php3 check_and_kick_user.lib.php3 Log Message: Some more commands and fixes for them Index: commands.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands.lib.php3,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** commands.lib.php3 2001/04/05 00:43:10 1.2 --- commands.lib.php3 2001/04/12 23:38:26 1.3 *************** *** 89,93 **** include('./lib/commands/clear.cmd.' . C_EXTENSION); } ! else if (C_SAVE != 0 && eregi('^\/save([[:space:]]([[:digit:]]*))?$', $message, $cmd) && ($cmd[2] == '' OR $cmd[2] > 0)) --- 89,93 ---- include('./lib/commands/clear.cmd.' . C_EXTENSION); } ! else if (C_SAVE && eregi('^\/save([[:space:]]([[:digit:]]*))?$', $message, $cmd) && ($cmd[2] == '' OR $cmd[2] > 0)) Index: check_and_kick_user.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/check_and_kick_user.lib.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** check_and_kick_user.lib.php3 2001/04/11 23:06:14 1.7 --- check_and_kick_user.lib.php3 2001/04/12 23:38:26 1.8 *************** *** 81,85 **** { dbSessionSave(); ! $exitQueryUrl = '?' . dbSessionSID() . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; $jsExitUrl = $dbSessionVars['from'] . $exitQueryUrl; $htmlExitUrl = C_CHAT_URL . $exitQueryUrl; --- 81,85 ---- { dbSessionSave(); ! $exitQueryUrl = '?' . dbSessionSID('GET') . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; $jsExitUrl = $dbSessionVars['from'] . $exitQueryUrl; $htmlExitUrl = C_CHAT_URL . $exitQueryUrl; *************** *** 91,97 **** <html> <head> ! <title>Exit from input</title> <script type="text/javascript" language="javascript"> <!-- window.parent.window.location = '<?php echo($jsExitUrl); ?>'; // --> --- 91,104 ---- <html> <head> ! <title>Exit from input or messages frame</title> <script type="text/javascript" language="javascript"> <!-- + // Close the loader + if (typeof(window.parent.jsLeaveChat) != 'undefined') + window.parent.jsLeaveChat = true; + if (window.document.title != 'Loader hidden frame' + && (window.parent.frames['loader'] && !window.parent.frames['loader'].closed)) + window.parent.frames['loader'].close(); + window.parent.window.location = '<?php echo($jsExitUrl); ?>'; // --> *************** *** 99,103 **** </head> <body> ! <!-- For browser that do not support JavaScript --> <p> <a href="<?php echo($htmlExitUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> --- 106,110 ---- </head> <body> ! <!-- For browsers that do not support JavaScript --> <p> <a href="<?php echo($htmlExitUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> |
From: Lo?c C. <lo...@us...> - 2001-04-12 09:37:47
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands In directory usw-pr-cvs1:/tmp/cvs-serv29569/chat/lib/commands Modified Files: ignore.cmd.php3 Log Message: Fix a bug with '/ignore - users1,users2....' Index: ignore.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/ignore.cmd.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** ignore.cmd.php3 2001/04/11 23:06:14 1.1 --- ignore.cmd.php3 2001/04/12 09:37:44 1.2 *************** *** 110,114 **** $toRemove = explode(',', $cmd[3]); $ignoredUsers = explode(',', $dbSessionVars['ignoredSenders']); - $updateList = false; reset($toRemove); for ($i = 0; $i < count($toRemove); $i++) --- 110,113 ---- *************** *** 120,124 **** if ($pos >= 0) { ! $ignoredUsers[$i] = ''; $updateList = true; } --- 119,123 ---- if ($pos >= 0) { ! $ignoredUsers[$pos] = ''; $updateList = true; } *************** *** 128,141 **** if ($updateList) { ! $ignList = ''; ! for (reset($ignoredUsers); $ignName = current($ignoredUsers); next($ignoredUsers)) ! { ! if ($ignName != '') ! $ignList .= ($ignList != '') ! ? ',' . $ignName ! : $ignName; ! } ! $dbSessionVars['ignoredSenders'] = $ignList; ! $doRefreshMessages = true; } unset($ignoredUsers); --- 127,134 ---- if ($updateList) { ! $ignList = join(',', $ignoredUsers); ! $ignList = ereg_replace('^,|,$', '', str_replace(',,', ',', $ignList)); ! $dbSessionVars['ignoredSenders'] = $ignList; ! $doRefreshMessages = true; } unset($ignoredUsers); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/italian In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/italian Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/italian/tutorial.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tutorial.loc 2001/04/10 16:58:55 1.1 --- tutorial.loc 2001/04/11 23:06:13 1.2 *************** *** 244,248 **** <ul> <li>Primo, create un username<?php if (!C_EMAIL_PASWD) echo(' e una password'); ?> per voi stessi digitandola negli appositi campi. Lo username che scgliete sarà il nome che verrà automaticamente visualizzato nella stanza di chat. Non può contenere spazi, virgole o backslash (\). ! <?php if (C_BAD_WORDS == 1) echo(' Non può contenere "parole vietate".'); ?></li> <li>Secondo, inserite il vostro nome, cognome e il vostro indirizzo email. Per far in modo che ci si registri alla chat, tutte queste informazioni devono essere fornite. Potete non specificare il vostro sesso.</li> <li>Se avete una homepage, potete inserire l'URL in questo campo.</li> --- 244,248 ---- <ul> <li>Primo, create un username<?php if (!C_EMAIL_PASWD) echo(' e una password'); ?> per voi stessi digitandola negli appositi campi. Lo username che scgliete sarà il nome che verrà automaticamente visualizzato nella stanza di chat. Non può contenere spazi, virgole o backslash (\). ! <?php if (C_NO_SWEAR == 1) echo(' Non può contenere "parole vietate".'); ?></li> <li>Secondo, inserite il vostro nome, cognome e il vostro indirizzo email. Per far in modo che ci si registri alla chat, tutte queste informazioni devono essere fornite. Potete non specificare il vostro sesso.</li> <li>Se avete una homepage, potete inserire l'URL in questo campo.</li> *************** *** 269,273 **** </p> <p> ! I nomi di stanze non possono contenere virgole o backslash (\).<?php if (C_BAD_WORDS == 1) echo(' Non possono poi contenere "parole vietate".' . "\n"); ?> </p> <p align="right"><a href="#top">Torna all'inizio</a></p> --- 269,273 ---- </p> <p> ! I nomi di stanze non possono contenere virgole o backslash (\).<?php if (C_NO_SWEAR == 1) echo(' Non possono poi contenere "parole vietate".' . "\n"); ?> </p> <p align="right"><a href="#top">Torna all'inizio</a></p> *************** *** 306,310 **** <p> Per inviare un messaggio nella stanza di chat, digitate il vostro testo nel campo nell'angolo inferiore a sinistra e poi premete il tasto Invio per inviarlo. I messaggi di tutti gli utenti scrolleranno nella zona dell chat.<br /> ! <?php if (C_BAD_WORDS == 1) echo('Fate attenzione che le "parole vietate" non saranno visualizzate.' . "\n"); ?> </p> <p> --- 306,310 ---- <p> Per inviare un messaggio nella stanza di chat, digitate il vostro testo nel campo nell'angolo inferiore a sinistra e poi premete il tasto Invio per inviarlo. I messaggi di tutti gli utenti scrolleranno nella zona dell chat.<br /> ! <?php if (C_NO_SWEAR == 1) echo('Fate attenzione che le "parole vietate" non saranno visualizzate.' . "\n"); ?> </p> <p> *************** *** 321,325 **** --- 321,328 ---- </p> <ol> + <!-- To update <li>una piccola icona (<img src="images/whois_off.gif" width="5" height="9" border="0" alt="icona whois" />) e' visualizzata prima del nickname di un utente registrato e cliccando su esso si fara' partire la finestra popup <a href="#whois">whois</a> per questo utente, mentre gli utenti non registrati avranno solamente un segno '-' prima del loro nickname;</li> + --> + <li>a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the <a href="#whois">whois popup</a> for this user), while unregistered users have nothing but blank spaces displayed before their nick;</li> <li>il nome utente di un amministratore o di un moderatore e' in corsivo.</li> </ol> *************** *** 330,340 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="lista utenti" /> </td> <td> <ul> ! <li>Nicolas e' l'amministratore o uno dei moderatori dell'area phpMyChat;</li> <li>lolo e Jezek2 sono utenti registrati con nessun privilegio extra per la stanza phpMyChat;</li> <li>Mary e' un semplice utente non registrato.</li> </ul> </td> --- 333,347 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="lista utenti" /> </td> <td> <ul> ! <li>Nicolas e' l'amministratore o uno dei moderatori dell'area phpMyChat;<br /><br /></li> ! <!-- To update <li>lolo e Jezek2 sono utenti registrati con nessun privilegio extra per la stanza phpMyChat;</li> <li>Mary e' un semplice utente non registrato.</li> + --> + <li>alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;<br /><br /></li> + <li>lolo is a simple unregistered user.</li> </ul> </td> *************** *** 475,481 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 482,486 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 581,585 **** </p> <p> ! I nomi di stanze non possono contenere spazi o backslash (\).<?php if (C_BAD_WORDS == 1) echo(' Non può contenere parole vietate' . "\n"); ?> </p> <?php --- 586,590 ---- </p> <p> ! I nomi di stanze non possono contenere spazi o backslash (\).<?php if (C_NO_SWEAR == 1) echo(' Non può contenere parole vietate' . "\n"); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/italian/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:55 1.1 --- chat.loc 2001/04/11 23:06:13 1.2 *************** *** 171,175 **** define('L_NO_SAVE', 'Nesun messaggio da salvare!'); define('L_ANNOUNCE', 'ANNUNCIO'); ! define('L_INVITE', '%s ti invita ad unirti a lei/lui nella chat <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\')">%s</a>.'); define('L_INVITE_REG', ' Devi essere registrato per accedere in quest\'area.'); define('L_INVITE_DONE', 'Il tuo invito è stato inviato a %s.'); --- 171,175 ---- define('L_NO_SAVE', 'Nesun messaggio da salvare!'); define('L_ANNOUNCE', 'ANNUNCIO'); ! define('L_INVITE', '%s ti invita ad unirti a lei/lui nella chat <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\')">%s</a>.'); define('L_INVITE_REG', ' Devi essere registrato per accedere in quest\'area.'); define('L_INVITE_DONE', 'Il tuo invito è stato inviato a %s.'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/korean In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/korean Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/korean/tutorial.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** tutorial.loc 2001/04/10 17:51:00 1.2 --- tutorial.loc 2001/04/11 23:06:13 1.3 *************** *** 243,247 **** <ul> <li>¸ÕÀú, »ç¿ëÀÚ À̸§<?php if (!C_EMAIL_PASWD) echo('°ú ºñ¹Ð¹øÈ£¸¦'); else echo('À»');?> ÀÔ·ÂÇϽʽÿÀ. »ç¿ëÀÚ À̸§Àº ´ëȹ濡¼ ÀÚµ¿ÀûÀ¸·Î Ç¥½ÃµÇ´Â À̸§ÀÔ´Ï´Ù. °ø¹éÀ̳ª Äĸ¶(,) ±×¸®°í ¿ª½½·¡½¬(\)´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ! <?php if (C_BAD_WORDS == 1) echo(' ±×¸®°í "³ª»Û ´Ü¾î(swear word)"µéÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù..'); ?></li> <li>µÎ¹øÂ°·Î, À̸§°ú email ÁÖ¼Ò¸¦ ÀÔ·ÂÇϽʽÿÀ. ´ëȸ¦ À§ÇÑ µî·ÏÀ» À§Çؼ´Â ¾Õ¼ ¸»ÇÑ °ÍÀº ¸ðµÎ ÀÔ·ÂÇϼžßÇϸç, ¼ºº°À̳ª ȨÆäÀÌÁö´Â ÀÔ·ÂÇÏÁö ¾ÊÀ¸¼Åµµ µË´Ï´Ù.</li> <li>ȨÆäÀÌÁö¸¦ °®°í ÀÖ´Ù¸é URLÀ» ³ÖÀ¸¼Åµµ µË´Ï´Ù.</li> --- 243,247 ---- <ul> <li>¸ÕÀú, »ç¿ëÀÚ À̸§<?php if (!C_EMAIL_PASWD) echo('°ú ºñ¹Ð¹øÈ£¸¦'); else echo('À»');?> ÀÔ·ÂÇϽʽÿÀ. »ç¿ëÀÚ À̸§Àº ´ëȹ濡¼ ÀÚµ¿ÀûÀ¸·Î Ç¥½ÃµÇ´Â À̸§ÀÔ´Ï´Ù. °ø¹éÀ̳ª Äĸ¶(,) ±×¸®°í ¿ª½½·¡½¬(\)´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ! <?php if (C_NO_SWEAR == 1) echo(' ±×¸®°í "³ª»Û ´Ü¾î(swear word)"µéÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù..'); ?></li> <li>µÎ¹øÂ°·Î, À̸§°ú email ÁÖ¼Ò¸¦ ÀÔ·ÂÇϽʽÿÀ. ´ëȸ¦ À§ÇÑ µî·ÏÀ» À§Çؼ´Â ¾Õ¼ ¸»ÇÑ °ÍÀº ¸ðµÎ ÀÔ·ÂÇϼžßÇϸç, ¼ºº°À̳ª ȨÆäÀÌÁö´Â ÀÔ·ÂÇÏÁö ¾ÊÀ¸¼Åµµ µË´Ï´Ù.</li> <li>ȨÆäÀÌÁö¸¦ °®°í ÀÖ´Ù¸é URLÀ» ³ÖÀ¸¼Åµµ µË´Ï´Ù.</li> *************** *** 276,280 **** </p> <p> ! ´ëȹæ À̸§¿¡µµ Äĸ¶(,)³ª ¿ª½½·¡½¬(\)¸¦ Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. <?php if (C_BAD_WORDS == 1) echo(' "³ª»Û ´Ü¾î(swear words)"µµ ¹°·Ð Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.' . "\n"); ?> </p> <p align="right"><a href="#top">¸ÇÀ§·Î</a></p> --- 276,280 ---- </p> <p> ! ´ëȹæ À̸§¿¡µµ Äĸ¶(,)³ª ¿ª½½·¡½¬(\)¸¦ Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. <?php if (C_NO_SWEAR == 1) echo(' "³ª»Û ´Ü¾î(swear words)"µµ ¹°·Ð Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.' . "\n"); ?> </p> <p align="right"><a href="#top">¸ÇÀ§·Î</a></p> *************** *** 313,317 **** <p> ´ëȹ濡¼ ¸Þ¼¼Áö¸¦ ¾²·Á¸é, È¸é ¾Æ·¡¿¡ ÀÖ´Â ´ëÈÀÔ·Ââ¿¡¼ ÀÔ·ÂÀ» ÇÏ°í ¿£ÅÍ۸¦ ´©¸£¸éµË´Ï´Ù. ´Ù¸¥ »ç¿ëÀÚµéÀÇ ¸Þ¼¼Áö´Â ¸Þ¼¼Áö â¿¡¼ ÇÑ ÁÙ¾¿ ½ºÅ©·ÑµË´Ï´Ù. ! <?php if (C_BAD_WORDS == 1) echo('\³ª»Û ´Ü¾î(swear words)\°¡ Æ÷Ç﵃ °æ¿ì ¸Þ¼¼Áö·ÎºÎÅÍ Á¦°ÅµË´Ï´Ù.' . "\n"); ?> </p> <p> --- 313,317 ---- <p> ´ëȹ濡¼ ¸Þ¼¼Áö¸¦ ¾²·Á¸é, È¸é ¾Æ·¡¿¡ ÀÖ´Â ´ëÈÀÔ·Ââ¿¡¼ ÀÔ·ÂÀ» ÇÏ°í ¿£ÅÍ۸¦ ´©¸£¸éµË´Ï´Ù. ´Ù¸¥ »ç¿ëÀÚµéÀÇ ¸Þ¼¼Áö´Â ¸Þ¼¼Áö â¿¡¼ ÇÑ ÁÙ¾¿ ½ºÅ©·ÑµË´Ï´Ù. ! <?php if (C_NO_SWEAR == 1) echo('\³ª»Û ´Ü¾î(swear words)\°¡ Æ÷Ç﵃ °æ¿ì ¸Þ¼¼Áö·ÎºÎÅÍ Á¦°ÅµË´Ï´Ù.' . "\n"); ?> </p> <p> *************** *** 328,332 **** --- 328,335 ---- </p> <ol> + <!-- To update <li>(<img src="images/whois_off.gif" width="5" height="9" border="0" alt="whois¾ÆÀÌÄÜ" />)ÀÌ ´ëÈ¸í ¾Õ¿¡ Ç¥½ÃµÇ¸é, Ŭ¸¯ÇßÀ»¶§ whois âÀÌ ¶ß°Ô µË´Ï´Ù. ºñµî·Ï »ç¿ëÀÚ´Â ¾Õ¿¡ -°¡ Ç¥½ÃµË´Ï´Ù.</li> + --> + <li>a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the <a href="#whois">whois popup</a> for this user), while unregistered users have nothing but blank spaces displayed before their nick;</li> <li>¹æÀåÀ̳ª °ü¸®ÀÚÀÇ °æ¿ì´Â ´ëȸíÀÌ ±â¿ïÀÓü·Î Ç¥½ÃµË´Ï´Ù.</li> </ol> *************** *** 337,347 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="»ç¿ëÀÚ ¸ñ·Ï" /> </td> <td> <ul> ! <li>Nicolas´Â °ü¸®ÀÚÀ̰ųª ¹æÀåÀÔ´Ï´Ù.</li> <li>lolo¿Í Jezek2´Â º°´Ù¸¥ ±ÇÇÑÀÌ ¾ø´Â µî·ÏµÈ »ç¿ëÀÚÀÔ´Ï´Ù.</li> <li>Mary´Â ºñµî·Ï »ç¿ëÀÚÀÔ´Ï´Ù.</li> </ul> </td> --- 340,354 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="»ç¿ëÀÚ ¸ñ·Ï" /> </td> <td> <ul> ! <li>Nicolas´Â °ü¸®ÀÚÀ̰ųª ¹æÀåÀÔ´Ï´Ù.<br /><br /></li> ! <!-- To update <li>lolo¿Í Jezek2´Â º°´Ù¸¥ ±ÇÇÑÀÌ ¾ø´Â µî·ÏµÈ »ç¿ëÀÚÀÔ´Ï´Ù.</li> <li>Mary´Â ºñµî·Ï »ç¿ëÀÚÀÔ´Ï´Ù.</li> + --> + <li>alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;<br /><br /></li> + <li>lolo is a simple unregistered user.</li> </ul> </td> *************** *** 482,488 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 489,493 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 588,592 **** </p> <p> ! ´ëȹæÀÇ À̸§Àº Äĸ¶(,)³ª ¿ª½½·¡½¬(\)¸¦ Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. <?php if (C_BAD_WORDS == 1) echo(' "³ª»Û ´Ü¾î" ¶ÇÇÑ Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.' . "\n"); ?> </p> <?php --- 593,597 ---- </p> <p> ! ´ëȹæÀÇ À̸§Àº Äĸ¶(,)³ª ¿ª½½·¡½¬(\)¸¦ Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. <?php if (C_NO_SWEAR == 1) echo(' "³ª»Û ´Ü¾î" ¶ÇÇÑ Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.' . "\n"); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/korean/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:55 1.1 --- chat.loc 2001/04/11 23:06:13 1.2 *************** *** 167,171 **** define('L_NO_ADMIN', '°ü¸®ÀÚ¿¡°Ô¸¸ ÁÖ¾îÁø ¸í·ÉÀÔ´Ï´Ù.'); define('L_ANNOUNCE', '¾Ë¸²'); ! define('L_INVITE', '%s´ÔÀÌ <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\')">%s</a> ¹æ¿¡¼ ´ç½ÅÀ» ÃÊûÇß½À´Ï´Ù.'); define('L_INVITE_REG', ' À̹濡 µé¾î°¡·Á¸é »ç¿ëÀÚµî·ÏÀÌ µÇ¾îÀÖ¾î¾ß ÇÕ´Ï´Ù.'); define('L_INVITE_DONE', '%s´ÔÀ» ÃÊûÇß½À´Ï´Ù.'); --- 167,171 ---- define('L_NO_ADMIN', '°ü¸®ÀÚ¿¡°Ô¸¸ ÁÖ¾îÁø ¸í·ÉÀÔ´Ï´Ù.'); define('L_ANNOUNCE', '¾Ë¸²'); ! define('L_INVITE', '%s´ÔÀÌ <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\')">%s</a> ¹æ¿¡¼ ´ç½ÅÀ» ÃÊûÇß½À´Ï´Ù.'); define('L_INVITE_REG', ' À̹濡 µé¾î°¡·Á¸é »ç¿ëÀÚµî·ÏÀÌ µÇ¾îÀÖ¾î¾ß ÇÕ´Ï´Ù.'); define('L_INVITE_DONE', '%s´ÔÀ» ÃÊûÇß½À´Ï´Ù.'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/german In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/german Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/german/tutorial.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tutorial.loc 2001/04/10 16:58:54 1.1 --- tutorial.loc 2001/04/11 23:06:13 1.2 *************** *** 244,248 **** <ul> <li>Wähle zunächst einen Benutzernamen<?php if (!C_EMAIL_PASWD) echo(' und ein Passwort'); ?> durch Eingabe in die jeweiligen Felder. Der Benutzername ist der Name, der im Chatraum erscheinen wird. Er darf keine Leerzeichen, Kommata oder Rückstriche enthalten(\). ! <?php if (C_BAD_WORDS == 1) echo(' Es dürfen keine "verbotenen Worte" enthalten sein.'); ?></li> <li>Dann fülle die Felder Vorname, Nachname, und E-Mail-Adresse aus. Um Deinen Namen für den Chat zu registrieren, müssen alle diese Angaben gemacht werden. Du kannst die Geschlechtsauswahl überspringen.</li> <li>Falls Du eine Homepage hast, gib diese in das dafür vorgesehene Feld ein.</li> --- 244,248 ---- <ul> <li>Wähle zunächst einen Benutzernamen<?php if (!C_EMAIL_PASWD) echo(' und ein Passwort'); ?> durch Eingabe in die jeweiligen Felder. Der Benutzername ist der Name, der im Chatraum erscheinen wird. Er darf keine Leerzeichen, Kommata oder Rückstriche enthalten(\). ! <?php if (C_NO_SWEAR == 1) echo(' Es dürfen keine "verbotenen Worte" enthalten sein.'); ?></li> <li>Dann fülle die Felder Vorname, Nachname, und E-Mail-Adresse aus. Um Deinen Namen für den Chat zu registrieren, müssen alle diese Angaben gemacht werden. Du kannst die Geschlechtsauswahl überspringen.</li> <li>Falls Du eine Homepage hast, gib diese in das dafür vorgesehene Feld ein.</li> *************** *** 268,272 **** </p> <p> ! Raumnamen dürfen keine Kommata oder Rückstriche enthalten (\).<?php if (C_BAD_WORDS == 1) echo(' Es dürfen keine "verbotenen Worte" enthalten sein.'); ?> </p> <p align="right"><a href="#top">Zurück zum Anfang</a></p> --- 268,272 ---- </p> <p> ! Raumnamen dürfen keine Kommata oder Rückstriche enthalten (\).<?php if (C_NO_SWEAR == 1) echo(' Es dürfen keine "verbotenen Worte" enthalten sein.'); ?> </p> <p align="right"><a href="#top">Zurück zum Anfang</a></p> *************** *** 304,308 **** <p> Um eine Nachricht im Chatraum zu veröffentlichen, tippe diese in das Feld unten links und drücke Enter/Return um sie zu senden. Die Nachrichten aller kannst Du im Chatfenster sehen.<br /> ! <?php if (C_BAD_WORDS == 1) echo('Beachte, daß "verbotene Worte" aus der Nachricht entfernt werden.'); ?> </p> <p> --- 304,308 ---- <p> Um eine Nachricht im Chatraum zu veröffentlichen, tippe diese in das Feld unten links und drücke Enter/Return um sie zu senden. Die Nachrichten aller kannst Du im Chatfenster sehen.<br /> ! <?php if (C_NO_SWEAR == 1) echo('Beachte, daß "verbotene Worte" aus der Nachricht entfernt werden.'); ?> </p> <p> *************** *** 319,323 **** --- 319,326 ---- </p> <ol> + <!-- To update <li>ein kleines Zeichen (<img src="images/whois_off.gif" width="5" height="9" border="0" alt="Whois" />) wird vor registrierten Benutzernamen angezeigt und beim Klicken darauf erscheint ein <a href="#whois">WhoIs Popup</a> für diesen Benutzer, während unregistrierte Bnutzer nur ein Minuszeichen vor ihrem Namen haben;</li> + --> + <li>a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the <a href="#whois">whois popup</a> for this user), while unregistered users have nothing but blank spaces displayed before their nick;</li> <li>der Benutzername von Moderatoren/Administrator ist kursiv geschrieben.</li> </ol> *************** *** 326,336 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="Benutzerliste" /> </td> <td> <ul> ! <li>Nicolas Administrator oder Moderator des Raumes ist;</li> <li>lolo und Jezek2 normale registrierte Benutzer sind;</li> <li>Mary ein normaler unregistrierter Benutzer ist.</li> </ul> </td> --- 329,343 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="Benutzerliste" /> </td> <td> <ul> ! <li>Nicolas Administrator oder Moderator des Raumes ist;<br /><br /></li> ! <!-- To update <li>lolo und Jezek2 normale registrierte Benutzer sind;</li> <li>Mary ein normaler unregistrierter Benutzer ist.</li> + --> + <li>alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;<br /><br /></li> + <li>lolo is a simple unregistered user.</li> </ul> </td> *************** *** 468,474 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 475,479 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 573,577 **** </p> <p> ! Raumnamen dürfen keine Kommata oder Rückstriche enthalten(\).<?php if (C_BAD_WORDS == 1) echo(' Es dürfen keine "verbotenen Worte" enthalten sein.'); ?> </p> <?php --- 578,582 ---- </p> <p> ! Raumnamen dürfen keine Kommata oder Rückstriche enthalten(\).<?php if (C_NO_SWEAR == 1) echo(' Es dürfen keine "verbotenen Worte" enthalten sein.'); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/german/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:54 1.1 --- chat.loc 2001/04/11 23:06:13 1.2 *************** *** 171,175 **** define('L_NO_ADMIN', 'Nur der Administrator kann diesen Befehl verwenden.'); define('L_ANNOUNCE', 'ANKÜNDIGUNG'); ! define('L_INVITE', '%s lädt Dich in den Raum <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\')">%s</a> ein.'); define('L_INVITE_REG', ' Du hast Dich zum Betritt für diesen Raum registriert.'); define('L_INVITE_DONE', 'Deine Einladung wurde an %s geschickt.'); --- 171,175 ---- define('L_NO_ADMIN', 'Nur der Administrator kann diesen Befehl verwenden.'); define('L_ANNOUNCE', 'ANKÜNDIGUNG'); ! define('L_INVITE', '%s lädt Dich in den Raum <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\')">%s</a> ein.'); define('L_INVITE_REG', ' Du hast Dich zum Betritt für diesen Raum registriert.'); define('L_INVITE_DONE', 'Deine Einladung wurde an %s geschickt.'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/french_canadian In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/french_canadian Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/french_canadian/tutorial.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tutorial.loc 2001/04/10 16:58:54 1.1 --- tutorial.loc 2001/04/11 23:06:13 1.2 *************** *** 241,245 **** </p> <ul> ! <li>Choisissez d'abord votre pseudonyme <?php if (!C_EMAIL_PASWD) echo(' et votre mot de passe'); ?>. Votre pseudonyme ou nom d'utilisateur est votre identifiant au sein des salons de discussions auxquels vous participerez. Il ne peut contenir ni caractère espace, ni virgule, ni barre oblique renversée (\).<?php if (C_BAD_WORDS == 1) echo(' Il ne pourra pas non plus contenir de « gros mots ».'); ?></li> <li>Entrez ensuite vos nom, prénom et courriel. Sans ces informations l'enregistrement de votre profil vous sera refusé. L'indication du sexe est facultative.</li> <li>Si vous disposez d'un site personnel, vous pouvez en indiquer l'adresse.</li> --- 241,245 ---- </p> <ul> ! <li>Choisissez d'abord votre pseudonyme <?php if (!C_EMAIL_PASWD) echo(' et votre mot de passe'); ?>. Votre pseudonyme ou nom d'utilisateur est votre identifiant au sein des salons de discussions auxquels vous participerez. Il ne peut contenir ni caractère espace, ni virgule, ni barre oblique renversée (\).<?php if (C_NO_SWEAR == 1) echo(' Il ne pourra pas non plus contenir de « gros mots ».'); ?></li> <li>Entrez ensuite vos nom, prénom et courriel. Sans ces informations l'enregistrement de votre profil vous sera refusé. L'indication du sexe est facultative.</li> <li>Si vous disposez d'un site personnel, vous pouvez en indiquer l'adresse.</li> *************** *** 265,269 **** </p> <p> ! Le nom d'un salon ne peut contenir ni virgule, ni barre oblique renversée (\).<?php if (C_BAD_WORDS == 1) echo(' Il ne peut pas plus comprendre « gros mots ».' . "\n"); ?> </p> <p align="right"><a href="#top">Début de la page</a></p> --- 265,269 ---- </p> <p> ! Le nom d'un salon ne peut contenir ni virgule, ni barre oblique renversée (\).<?php if (C_NO_SWEAR == 1) echo(' Il ne peut pas plus comprendre « gros mots ».' . "\n"); ?> </p> <p align="right"><a href="#top">Début de la page</a></p> *************** *** 302,306 **** <p> Pour envoyer un message, tapez votre texte dans la boite situé en bas et à gauche de votre écran, puis pressez le bouton « OK » ou tapez sur la touche « Entrée » de votre clavier. Les messages qui ont étés envoyés sont affichés dans le fenêtre principale.<br /> ! <?php if (C_BAD_WORDS == 1) echo('Notez que les « gros mots » contenus dans vos messages seront remplacés par une suite de caractères définie par l\'administrateur.' . "\n"); ?> </p> <p> --- 302,306 ---- <p> Pour envoyer un message, tapez votre texte dans la boite situé en bas et à gauche de votre écran, puis pressez le bouton « OK » ou tapez sur la touche « Entrée » de votre clavier. Les messages qui ont étés envoyés sont affichés dans le fenêtre principale.<br /> ! <?php if (C_NO_SWEAR == 1) echo('Notez que les « gros mots » contenus dans vos messages seront remplacés par une suite de caractères définie par l\'administrateur.' . "\n"); ?> </p> <p> *************** *** 317,321 **** </p> <ol> ! <li>une petite icône (<img src="images/whois_off.gif" width="5" height="9" border="0" alt="icône" />) est affichée avant le pseudonyme d'un utilisateur enregistré et cliquer sur cette icône activera la <a href="#whois">fenêtre affichant le profil</a> de cet utilisateur, alors que les utilisateurs non-enregistrés ne voient leur pseudonyme précéde que d'un signe moins ;</li> <li>le pseudonyme de l'administrateur et ceux des modérateurs sont affichés en italique.</li> </ol> --- 317,321 ---- </p> <ol> ! <li>une petite icône est affichée devant le pseudonyme d'un utilisateur enregistré et définit son genre (cliquer sur cette icône activera la <a href="#whois">fenêtre affichant le profil</a> de cet utilisateur), alors que c'est une espace vide qui précède le pseudonyme des utilisateurs non-enregistrés ;</li> <li>le pseudonyme de l'administrateur et ceux des modérateurs sont affichés en italique.</li> </ol> *************** *** 326,336 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="Liste d'utilisateurs" /> </td> <td> <ul> ! <li>Nicolas est l'administrateur ou bien l'un des modérateurs du salon" ;</li> ! <li>lolo et Jezek2 sont des utilisateurs enregistrés sans pouvoirs particuliers dans le salon ;</li> ! <li>Mary est une simple utilisatrice non-enregistrée.</li> </ul> </td> --- 326,336 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="Liste d'utilisateurs" /> </td> <td> <ul> ! <li>Nicolas est l'administrateur ou bien l'un des modérateurs du salon ;<br /><br /></li> ! <li>alien (de genre inconnu), Jezek2 et Caridad sont des utilisateurs enregistrés sans pouvoirs particuliers dans le salon ;<br /><br /></li> ! <li>lolo est un simple utilisateur non-enregistré.</li> </ul> </td> *************** *** 470,476 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 470,474 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 576,580 **** </p> <p> ! Le nom d'un salon ne peut contenir ni virgule, ni anti-slash (\).<?php if (C_BAD_WORDS == 1) echo(' Il ne peut pas plus comprendre de « gros mots ».' . "\n"); ?> </p> <?php --- 574,578 ---- </p> <p> ! Le nom d'un salon ne peut contenir ni virgule, ni anti-slash (\).<?php if (C_NO_SWEAR == 1) echo(' Il ne peut pas plus comprendre de « gros mots ».' . "\n"); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/french_canadian/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:54 1.1 --- chat.loc 2001/04/11 23:06:13 1.2 *************** *** 166,170 **** define('L_NO_ADMIN', 'Cette commande est réservée à l\'administrateur.'); define('L_ANNOUNCE', 'ANNONCE'); ! define('L_INVITE', '%s vous suggère de la/le rejoindre dans le salon <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\'); return false">%s</a>.'); define('L_INVITE_REG', ' Ce salon n\'est accessible qu\'aux utilisateurs enregistrés.'); define('L_INVITE_DONE', 'Votre invitation a été envoyée à %s.'); --- 166,170 ---- define('L_NO_ADMIN', 'Cette commande est réservée à l\'administrateur.'); define('L_ANNOUNCE', 'ANNONCE'); ! define('L_INVITE', '%s vous suggère de la/le rejoindre dans le salon <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a>.'); define('L_INVITE_REG', ' Ce salon n\'est accessible qu\'aux utilisateurs enregistrés.'); define('L_INVITE_DONE', 'Votre invitation a été envoyée à %s.'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/finnish In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/finnish Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/finnish/tutorial.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tutorial.loc 2001/04/10 16:58:54 1.1 --- tutorial.loc 2001/04/11 23:06:13 1.2 *************** *** 242,246 **** <ul> <li>Ensimmäiseksi, luo itsellesi käyttäjänimi<?php if (!C_EMAIL_PASWD) echo(' ja salasana'); ?> kirjoittamalla ne asianmukaisiin kohtiin. Käyttäjänimesi on nimi, joka näytetään automaattisesti chat-huoneessa. Se ei voi sisältää välejä, pilkkuja tai kenoviivoja (\). ! <?php if (C_BAD_WORDS == 1) echo(' Se ei voi myöskään sisältää "rumia sanoja".'); ?></li> <li>Seuraavaksi, kirjoita etunimesi, sukunimesi ja e-mail osoitteesi. Voidaksesi rekisteröityä, kaikki nämä kohdat on täytettävä. Sukupuoli on valinnainen.</li> <li>Jos sinulla on kotisivut, voit kirjoittaa osoitteen sille varattuun kohtaan.</li> --- 242,246 ---- <ul> <li>Ensimmäiseksi, luo itsellesi käyttäjänimi<?php if (!C_EMAIL_PASWD) echo(' ja salasana'); ?> kirjoittamalla ne asianmukaisiin kohtiin. Käyttäjänimesi on nimi, joka näytetään automaattisesti chat-huoneessa. Se ei voi sisältää välejä, pilkkuja tai kenoviivoja (\). ! <?php if (C_NO_SWEAR == 1) echo(' Se ei voi myöskään sisältää "rumia sanoja".'); ?></li> <li>Seuraavaksi, kirjoita etunimesi, sukunimesi ja e-mail osoitteesi. Voidaksesi rekisteröityä, kaikki nämä kohdat on täytettävä. Sukupuoli on valinnainen.</li> <li>Jos sinulla on kotisivut, voit kirjoittaa osoitteen sille varattuun kohtaan.</li> *************** *** 266,270 **** </p> <p> ! Huoneen nimi ei voi sisältää pilkkua tai kenoviivaa (\).<?php if (C_BAD_WORDS == 1) echo(' Se ei voi myöskään sisältää "rumia sanoja".' . "\n"); ?> </p> <p align="right"><a href="#top">Takaisin alkuun</a></p> --- 266,270 ---- </p> <p> ! Huoneen nimi ei voi sisältää pilkkua tai kenoviivaa (\).<?php if (C_NO_SWEAR == 1) echo(' Se ei voi myöskään sisältää "rumia sanoja".' . "\n"); ?> </p> <p align="right"><a href="#top">Takaisin alkuun</a></p> *************** *** 303,307 **** <p> Lähettääksesi viestin chat huoneessa, kirjoita viestisi vasemmassa alakulmassa sijaitsevaan teksti-kenttää ja paina Enteriä. Kaikkien käyttäjien lähettämät viestit näkyvät chat-ikkunassa.<br /> ! <?php if (C_BAD_WORDS == 1) echo('Huomaa että "rumia sanoja" ei näytetä viesteissä.' . "\n"); ?> </p> <p> --- 303,307 ---- <p> Lähettääksesi viestin chat huoneessa, kirjoita viestisi vasemmassa alakulmassa sijaitsevaan teksti-kenttää ja paina Enteriä. Kaikkien käyttäjien lähettämät viestit näkyvät chat-ikkunassa.<br /> ! <?php if (C_NO_SWEAR == 1) echo('Huomaa että "rumia sanoja" ei näytetä viesteissä.' . "\n"); ?> </p> <p> *************** *** 318,322 **** --- 318,325 ---- </p> <ol> + <!-- To update <li>Pieni kuva (<img src="images/whois_off.gif" width="5" height="9" border="0" alt="kuka? kuvake" />) näytetään kaikkien rekisteröityjen käyttäjien nimen edessä ja sen klikkaaminen laukaisee <a href="#whois">kuka? popup-ikkunan</a> kyseisestä käyttäjästä. Rekisteröitymättömien käyttäjien nimen edessä on ainoastaan miinus-merkki.;</li> + --> + <li>a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the <a href="#whois">whois popup</a> for this user), while unregistered users have nothing but blank spaces displayed before their nick;</li> <li>Ylläpitäjän tai valvojan nimi on kursivoitu.</li> </ol> *************** *** 327,337 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="käyttäjälista" /> </td> <td> <ul> ! <li>Nicolas on ylläpitäjä tai yksi huoneen valvojista;</li> <li>Lolo and Jezek2 ovat rekisteröityneitä käyttäjiä ilman erityisoikeuksia;</li> <li>Mary on vain rekisteröitymätön käyttäjä.</li> </ul> </td> --- 330,344 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="käyttäjälista" /> </td> <td> <ul> ! <li>Nicolas on ylläpitäjä tai yksi huoneen valvojista;<br /><br /></li> ! <!-- To update <li>Lolo and Jezek2 ovat rekisteröityneitä käyttäjiä ilman erityisoikeuksia;</li> <li>Mary on vain rekisteröitymätön käyttäjä.</li> + --> + <li>alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;<br /><br /></li> + <li>lolo is a simple unregistered user.</li> </ul> </td> *************** *** 472,478 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 479,483 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 578,582 **** </p> <p> ! Huoneen nimi ei saa sisältää pilkkua tai kenoviivaa (\).<?php if (C_BAD_WORDS == 1) echo(' Se ei voi myöskään sisältää "rumia sanoja".' . "\n"); ?> </p> <?php --- 583,587 ---- </p> <p> ! Huoneen nimi ei saa sisältää pilkkua tai kenoviivaa (\).<?php if (C_NO_SWEAR == 1) echo(' Se ei voi myöskään sisältää "rumia sanoja".' . "\n"); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/finnish/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:54 1.1 --- chat.loc 2001/04/11 23:06:13 1.2 *************** *** 167,171 **** define('L_NO_ADMIN', 'Ainoastaan ylläpitäjä voi käyttää tätä käskyä.'); define('L_ANNOUNCE', 'ILMOITUS'); ! define('L_INVITE', '%s pyytää sinua liittymään seuraansa <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\')">%s</a> huoneeseen.'); define('L_INVITE_REG', ' Sinun on rekisteröidyttävä ennen pääsyä tähän huoneeseen.'); define('L_INVITE_DONE', 'Kutsusi on lähetetty %s:lle'); --- 167,171 ---- define('L_NO_ADMIN', 'Ainoastaan ylläpitäjä voi käyttää tätä käskyä.'); define('L_ANNOUNCE', 'ILMOITUS'); ! define('L_INVITE', '%s pyytää sinua liittymään seuraansa <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\')">%s</a> huoneeseen.'); define('L_INVITE_REG', ' Sinun on rekisteröidyttävä ennen pääsyä tähän huoneeseen.'); define('L_INVITE_DONE', 'Kutsusi on lähetetty %s:lle'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/french In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/french Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/french/tutorial.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tutorial.loc 2001/04/10 16:58:54 1.1 --- tutorial.loc 2001/04/11 23:06:13 1.2 *************** *** 242,246 **** <ul> <li>Choisissez d'abord votre pseudo<?php if (!C_EMAIL_PASWD) echo(' et votre mot de passe'); ?>. Votre pseudo est le nom d'utilisateur qui vous identifiera au sein des salons de discussions auxquels vous participerez. Il ne peut contenir ni caractère espace, ni virgule, ni anti-slash (\). ! <?php if (C_BAD_WORDS == 1) echo(' Il ne pourra pas non plus contenir de "gros mots".'); ?></li> <li>Entrez ensuite vos nom, prénom et adresse e-mail. Sans ces informations l'enregistrement de votre profil vous sera refusé. L'information concernant votre sexe est facultative.</li> <li>Si vous disposez d'un site web personnel, vous pouvez en indiquer l'adresse.</li> --- 242,246 ---- <ul> <li>Choisissez d'abord votre pseudo<?php if (!C_EMAIL_PASWD) echo(' et votre mot de passe'); ?>. Votre pseudo est le nom d'utilisateur qui vous identifiera au sein des salons de discussions auxquels vous participerez. Il ne peut contenir ni caractère espace, ni virgule, ni anti-slash (\). ! <?php if (C_NO_SWEAR == 1) echo(' Il ne pourra pas non plus contenir de "gros mots".'); ?></li> <li>Entrez ensuite vos nom, prénom et adresse e-mail. Sans ces informations l'enregistrement de votre profil vous sera refusé. L'information concernant votre sexe est facultative.</li> <li>Si vous disposez d'un site web personnel, vous pouvez en indiquer l'adresse.</li> *************** *** 266,270 **** </p> <p> ! Le nom d'un salon ne peut contenir ni virgule, ni anti-slash (\).<?php if (C_BAD_WORDS == 1) echo(' Il ne peut pas plus comprendre de "gros mots".'); ?> </p> <p align="right"><a href="#top">Début de la page</a></p> --- 266,270 ---- </p> <p> ! Le nom d'un salon ne peut contenir ni virgule, ni anti-slash (\).<?php if (C_NO_SWEAR == 1) echo(' Il ne peut pas plus comprendre de "gros mots".'); ?> </p> <p align="right"><a href="#top">Début de la page</a></p> *************** *** 303,307 **** <p> Pour envoyer un message, tapez votre texte dans la boite situé en bas et à gauche de votre écran, puis pressez le bouton "OK" ou tapez sur la touche "Entrée" de votre clavier. Les messages qui ont étés envoyés sont affichés dans le fenêtre principale.<br /> ! <?php if (C_BAD_WORDS == 1) echo('Notez que les "gros mots" contenus dans vos messages seront remplacés par une suite de caractères définie par l\'administrateur.' . "\n"); ?> </p> <p> --- 303,307 ---- <p> Pour envoyer un message, tapez votre texte dans la boite situé en bas et à gauche de votre écran, puis pressez le bouton "OK" ou tapez sur la touche "Entrée" de votre clavier. Les messages qui ont étés envoyés sont affichés dans le fenêtre principale.<br /> ! <?php if (C_NO_SWEAR == 1) echo('Notez que les "gros mots" contenus dans vos messages seront remplacés par une suite de caractères définie par l\'administrateur.' . "\n"); ?> </p> <p> *************** *** 318,322 **** </p> <ol> ! <li>une petite icône (<img src="images/whois_off.gif" width="5" height="9" border="0" alt="icône 'whois'" />) est affichée avant le pseudo d'un utilisateur enregistré et cliquer sur cette icône activera la <a href="#whois">fenêtre affichant le profil</a> de cet utilisateur, alors que les utilisateurs non-enregistrés ne voient leur pseudo précéde que d'un signe moins ;</li> <li>le pseudo de l'administrateur et ceux des modérateurs sont affichés en italique.</li> </ol> --- 318,322 ---- </p> <ol> ! <li>une petite icône est affichée devant le pseudo d'un utilisateur enregistré et définit son genre (cliquer sur cette icône activera la <a href="#whois">fenêtre affichant le profil</a> de cet utilisateur), alors que c'est une espace vide qui précède le pseudo des utilisateurs non-enregistrés ;</li> <li>le pseudo de l'administrateur et ceux des modérateurs sont affichés en italique.</li> </ol> *************** *** 327,337 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="Liste d'utilisateurs" /> </td> <td> <ul> ! <li>Nicolas est l'administrateur ou bien l'un des modérateurs du salon "phpMyChat" ;</li> ! <li>lolo et Jezek2 sont des utilisateurs enregistrés sans pouvoirs particuliers dans le salon "phpMyChat" ;</li> ! <li>Mary est une simple utilisatrice non-enregistrée.</li> </ul> </td> --- 327,337 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="Liste d'utilisateurs" /> </td> <td> <ul> ! <li>Nicolas est l'administrateur ou bien l'un des modérateurs du salon "phpMyChat" ;<br /><br /></li> ! <li>alien (de genre inconnu), Jezek2 et Caridad sont des utilisateurs enregistrés sans pouvoirs particuliers dans le salon "phpMyChat" ;<br /><br /></li> ! <li>lolo est un simple utilisateur non-enregistré.</li> </ul> </td> *************** *** 469,475 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 469,473 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 575,579 **** </p> <p> ! Le nom d'un salon ne peut contenir ni virgule, ni anti-slash (\).<?php if (C_BAD_WORDS == 1) echo(' Il ne peut pas plus comprendre de "gros mots".' . "\n"); ?> </p> <?php --- 573,577 ---- </p> <p> ! Le nom d'un salon ne peut contenir ni virgule, ni anti-slash (\).<?php if (C_NO_SWEAR == 1) echo(' Il ne peut pas plus comprendre de "gros mots".' . "\n"); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/french/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:54 1.1 --- chat.loc 2001/04/11 23:06:13 1.2 *************** *** 166,170 **** define('L_NO_ADMIN', 'Cette commande est réservée à l\'administrateur.'); define('L_ANNOUNCE', 'ANNONCE'); ! define('L_INVITE', '%s vous suggère de la/le rejoindre dans le salon <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\'); return false">%s</a>.'); define('L_INVITE_REG', ' Ce salon n\'est accessible qu\'aux utilisateurs enregistrés.'); define('L_INVITE_DONE', 'Votre invitation a été envoyée à %s.'); --- 166,170 ---- define('L_NO_ADMIN', 'Cette commande est réservée à l\'administrateur.'); define('L_ANNOUNCE', 'ANNONCE'); ! define('L_INVITE', '%s vous suggère de la/le rejoindre dans le salon <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a>.'); define('L_INVITE_REG', ' Ce salon n\'est accessible qu\'aux utilisateurs enregistrés.'); define('L_INVITE_DONE', 'Votre invitation a été envoyée à %s.'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:45
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/english In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/english Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/english/tutorial.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** tutorial.loc 2001/04/10 17:51:00 1.2 --- tutorial.loc 2001/04/11 23:06:13 1.3 *************** *** 250,254 **** </p> <ul> ! <li>First, create a username<?php if (!C_EMAIL_PASWD) echo(' and a password'); ?> for yourself by typing it into the appropriate boxes. The username you choose is the name that will be automatically displayed in the chat room. It cannot contain spaces, commas or backslashes (\).<?php if (C_BAD_WORDS == 1) echo(' It can not contain \'swear words\'.'); ?></li> <li>Second, please enter your first name, last name, and your email address. In order to register to chat, all of this information must be provided. The gender information is optional.</li> <li>If you have a homepage, you may enter the URL into the box.</li> --- 250,254 ---- </p> <ul> ! <li>First, create a username<?php if (!C_EMAIL_PASWD) echo(' and a password'); ?> for yourself by typing it into the appropriate boxes. The username you choose is the name that will be automatically displayed in the chat room. It cannot contain spaces, commas or backslashes (\).<?php if (C_NO_SWEAR == 1) echo(' It can not contain \'swear words\'.'); ?></li> <li>Second, please enter your first name, last name, and your email address. In order to register to chat, all of this information must be provided. The gender information is optional.</li> <li>If you have a homepage, you may enter the URL into the box.</li> *************** *** 274,278 **** </p> <p> ! Room's name cannot contain comma or backslash (\).<?php if (C_BAD_WORDS == 1) echo(' It can no more contains \'swear words\'.' . "\n"); ?> </p> <p align="right"><a href="#top">Back to the top</a></p> --- 274,278 ---- </p> <p> ! Room's name cannot contain comma or backslash (\).<?php if (C_NO_SWEAR == 1) echo(' It can no more contains \'swear words\'.' . "\n"); ?> </p> <p align="right"><a href="#top">Back to the top</a></p> *************** *** 311,315 **** <p> To post a message to the chat room, type your text into the text box in the lower left corner and then press the Enter/Return key to send it. Messages from all users scroll in the chat box.<br /> ! <?php if (C_BAD_WORDS == 1) echo('Note that \'swear words\' are skipped from messages.' . "\n"); ?> </p> <p> --- 311,315 ---- <p> To post a message to the chat room, type your text into the text box in the lower left corner and then press the Enter/Return key to send it. Messages from all users scroll in the chat box.<br /> ! <?php if (C_NO_SWEAR == 1) echo('Note that \'swear words\' are skipped from messages.' . "\n"); ?> </p> <p> *************** *** 326,330 **** </p> <ol> ! <li>a little icon (<img src="images/whois_off.gif" width="5" height="9" border="0" alt="whois icon" />) is displayed before the nick of a registered user and clicking on it will launch the <a href="#whois">whois popup</a> for this user, while unregistered users just have a minus sign displayed before their nick;</li> <li>the nick of the administrator or of a moderator is italicized.</li> </ol> --- 326,330 ---- </p> <ol> ! <li>a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the <a href="#whois">whois popup</a> for this user), while unregistered users have nothing but blank spaces displayed before their nick;</li> <li>the nick of the administrator or of a moderator is italicized.</li> </ol> *************** *** 335,345 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="users list" /> </td> <td> <ul> ! <li>Nicolas is the admin or one of the moderators of the phpMyChat room;</li> ! <li>lolo and Jezek2 are registered users with no extra "power" for the phpMyChat room;</li> ! <li>Mary is a simple unregistered user.</li> </ul> </td> --- 335,345 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="users list" /> </td> <td> <ul> ! <li>Nicolas is the admin or one of the moderators of the phpMyChat room;<br /><br /></li> ! <li>alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;<br /><br /></li> ! <li>lolo is a simple unregistered user.</li> </ul> </td> *************** *** 481,487 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 481,485 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 587,591 **** </p> <p> ! Room's name cannot contain comma or backslash (\).<?php if (C_BAD_WORDS == 1) echo(' It can no more contains \'swear words\'.' . "\n"); ?> </p> <?php --- 585,589 ---- </p> <p> ! Room's name cannot contain comma or backslash (\).<?php if (C_NO_SWEAR == 1) echo(' It can no more contains \'swear words\'.' . "\n"); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/english/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:54 1.1 --- chat.loc 2001/04/11 23:06:13 1.2 *************** *** 166,170 **** define('L_NO_ADMIN', 'Only the administrator can use this command.'); define('L_ANNOUNCE', 'ANNOUNCE'); ! define('L_INVITE', '%s requests that you join her/him into the <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\')">%s</a> room.'); define('L_INVITE_REG', ' You have to be registered to enter this room.'); define('L_INVITE_DONE', 'Your invitation has been sent to %s.'); --- 166,170 ---- define('L_NO_ADMIN', 'Only the administrator can use this command.'); define('L_ANNOUNCE', 'ANNOUNCE'); ! define('L_INVITE', '%s requests that you join her/him into the <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\')">%s</a> room.'); define('L_INVITE_REG', ' You have to be registered to enter this room.'); define('L_INVITE_DONE', 'Your invitation has been sent to %s.'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:45
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/chinese_traditional In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/chinese_traditional Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/chinese_traditional/tutorial.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tutorial.loc 2001/04/10 16:58:53 1.1 --- tutorial.loc 2001/04/11 23:06:12 1.2 *************** *** 241,245 **** </p> <ul> ! <li>º¥ý,²£¥Í¤@¦ì¨Ï¥ÎªÌ<?php if (!C_EMAIL_PASWD) echo(' »P±K½X'); ?>½Ð±z¶ñ¤J¾A·íÄæ¦ì¤¤.¦Ó±z¿ï¨úªº¨Ï¥ÎªÌ¦WºÙ©ó²á¤Ñ®É±N¦Û°ÊÅã¥Ü.¨Ï¥ÎªÌ¦WºÙ½Ð¤Å¥]§tªÅ¥Õ,³r¸¹','¤Î¤Ï±×½u'\'.<?php if (C_BAD_WORDS == 1) echo(' µLªk¨Ï¥Î"¤£¶®¦r»y".'); ?></li> <li>¨ä¦¸,¨Ì¦¸¶ñ¤J¦W¦r,©m¤ó¤Î¹q¤l«H½c,¥H¤W¸ê®Æ¬O¥²¶·´£¨Ñ,¦Ó©Ê§O¥i©¿²¤.</li> <li>Y±z¦³ºô¶,½Ð±N±zªººô§}¶ñ¤JURLÄæ¦ì¤¤.</li> --- 241,245 ---- </p> <ul> ! <li>º¥ý,²£¥Í¤@¦ì¨Ï¥ÎªÌ<?php if (!C_EMAIL_PASWD) echo(' »P±K½X'); ?>½Ð±z¶ñ¤J¾A·íÄæ¦ì¤¤.¦Ó±z¿ï¨úªº¨Ï¥ÎªÌ¦WºÙ©ó²á¤Ñ®É±N¦Û°ÊÅã¥Ü.¨Ï¥ÎªÌ¦WºÙ½Ð¤Å¥]§tªÅ¥Õ,³r¸¹','¤Î¤Ï±×½u'\'.<?php if (C_NO_SWEAR == 1) echo(' µLªk¨Ï¥Î"¤£¶®¦r»y".'); ?></li> <li>¨ä¦¸,¨Ì¦¸¶ñ¤J¦W¦r,©m¤ó¤Î¹q¤l«H½c,¥H¤W¸ê®Æ¬O¥²¶·´£¨Ñ,¦Ó©Ê§O¥i©¿²¤.</li> <li>Y±z¦³ºô¶,½Ð±N±zªººô§}¶ñ¤JURLÄæ¦ì¤¤.</li> *************** *** 266,270 **** </p> <p> ! ¦Ó·sªº²á¤Ñ«Ç¦WºÙ½Ð¤Å¥]§t³r¸¹','¤Î¤Ï±×½u'\'.<?php if (C_BAD_WORDS == 1) echo(' µLªk¨Ï¥Î"¤£¶®¦r»y".' . "\n"); ?> </p> <p align="right"><a href="#top">¦^¶º</a></p> --- 266,270 ---- </p> <p> ! ¦Ó·sªº²á¤Ñ«Ç¦WºÙ½Ð¤Å¥]§t³r¸¹','¤Î¤Ï±×½u'\'.<?php if (C_NO_SWEAR == 1) echo(' µLªk¨Ï¥Î"¤£¶®¦r»y".' . "\n"); ?> </p> <p align="right"><a href="#top">¦^¶º</a></p> *************** *** 304,308 **** ½Ð±N±zªº²á¤Ñ°T®§Áä¤J¥ª¤U¤è¤å¦rÄæ¦ì¤¤,<br /> ¿é¤J§¹²¦«á«ö[Enter]¶}©l¶Ç°e²á¤Ñ°T®§¨ì©Ò¦³²á¤ÑªÌªºµøµ¡¤¤. ! <?php if (C_BAD_WORDS == 1) echo('½Ðª`·N"¤£¶®¦r»y"±N³Q©¿²¤©ó°T®§¤¤.'); ?> </p> <p> --- 304,308 ---- ½Ð±N±zªº²á¤Ñ°T®§Áä¤J¥ª¤U¤è¤å¦rÄæ¦ì¤¤,<br /> ¿é¤J§¹²¦«á«ö[Enter]¶}©l¶Ç°e²á¤Ñ°T®§¨ì©Ò¦³²á¤ÑªÌªºµøµ¡¤¤. ! <?php if (C_NO_SWEAR == 1) echo('½Ðª`·N"¤£¶®¦r»y"±N³Q©¿²¤©ó°T®§¤¤.'); ?> </p> <p> *************** *** 319,323 **** --- 319,326 ---- </p> <ol> + <!-- To update <li>¤p¹Ï¥Ü(<img src="images/whois_off.gif" width="5" height="9" border="0" alt="¬O½Ö¹Ï¥Ü" />)Åã¥Ü¤w¸gµù¥U²á¤ÑªÌªº§O¦W,ÂI¿ï«á±N¸õ¥X<a href="#whois">whois popup</a>¬ÛÃöµù¥U¸ê®Æ</li> + --> + <li>a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the <a href="#whois">whois popup</a> for this user), while unregistered users have nothing but blank spaces displayed before their nick;</li> <li>¦Ó²á¤Ñ«Ç¥D¤H¤Î¨t²ÎºÞ²zû¬°±×Åé¦r</li> </ol> *************** *** 328,338 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="users list" /> </td> <td> <ul> ! <li>Nicolas ¬OphpMyChat²á¤Ñ«Ç¥D¤H©Î¨t²ÎºÞ²zû;</li> <li>lolo ©M Jezek2 ¬O¤@¯ëµù¥Uªº¨Ï¥ÎªÌ;</li> <li>Mary ¬O¥¼¸gµù¥Uªº¨Ï¥ÎªÌ.</li> </ul> </td> --- 331,345 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="users list" /> </td> <td> <ul> ! <li>Nicolas ¬OphpMyChat²á¤Ñ«Ç¥D¤H©Î¨t²ÎºÞ²zû;<br /><br /></li> ! <!-- To update <li>lolo ©M Jezek2 ¬O¤@¯ëµù¥Uªº¨Ï¥ÎªÌ;</li> <li>Mary ¬O¥¼¸gµù¥Uªº¨Ï¥ÎªÌ.</li> + --> + <li>alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;<br /><br /></li> + <li>lolo is a simple unregistered user.</li> </ul> </td> *************** *** 476,482 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 483,487 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/chinese_traditional/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:53 1.1 --- chat.loc 2001/04/11 23:06:12 1.2 *************** *** 168,172 **** define('L_NO_ADMIN', 'Only the administrator can use this command.'); define('L_ANNOUNCE', 'ANNOUNCE'); ! define('L_INVITE', '%s suggest you to join her/him into the <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\')">%s</a> room.'); define('L_INVITE_REG', ' You have to be registered to enter this room.'); define('L_INVITE_DONE', 'Your invitation has been sent to %s.'); --- 168,172 ---- define('L_NO_ADMIN', 'Only the administrator can use this command.'); define('L_ANNOUNCE', 'ANNOUNCE'); ! define('L_INVITE', '%s suggest you to join her/him into the <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\')">%s</a> room.'); define('L_INVITE_REG', ' You have to be registered to enter this room.'); define('L_INVITE_DONE', 'Your invitation has been sent to %s.'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:45
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/czech In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/czech Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/czech/tutorial.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tutorial.loc 2001/04/10 16:58:53 1.1 --- tutorial.loc 2001/04/11 23:06:12 1.2 *************** *** 254,258 **** polo¾ek. U¾iv. jméno, které si zvolíte, bude automaticky zobrazováno v chatovací místnosti. Nemù¾e obsahovat mezery, èárky nebo zpìtné lomítka (\). ! <?php if (C_BAD_WORDS == 1) echo(' Také nemù¾e obsahovat \'¹patné slova\'.'); ?></li> <li>Za druhé, prosím vyplòte va¹e celé jméno a va¹i e-mailovou adresu. --- 254,258 ---- polo¾ek. U¾iv. jméno, které si zvolíte, bude automaticky zobrazováno v chatovací místnosti. Nemù¾e obsahovat mezery, èárky nebo zpìtné lomítka (\). ! <?php if (C_NO_SWEAR == 1) echo(' Také nemù¾e obsahovat \'¹patné slova\'.'); ?></li> <li>Za druhé, prosím vyplòte va¹e celé jméno a va¹i e-mailovou adresu. *************** *** 295,299 **** <p> Jméno místnosti nemù¾e obsahovat èárky ani zpìtné lomítka (\). ! <?php if (C_BAD_WORDS == 1) echo(' Také nemù¾e obsahovat \'¹patná slova\'.'); ?> </p> <p align="right"><a href="#top">Zpìt nahoru</a></p> --- 295,299 ---- <p> Jméno místnosti nemù¾e obsahovat èárky ani zpìtné lomítka (\). ! <?php if (C_NO_SWEAR == 1) echo(' Také nemù¾e obsahovat \'¹patná slova\'.'); ?> </p> <p align="right"><a href="#top">Zpìt nahoru</a></p> *************** *** 335,339 **** rohu a pak stisknìte klávesu Enter pro poslání. Zprávy od v¹ech u¾ivatelù se zobrazují v hlavním chatovacím rámci.<br /> ! <?php if (C_BAD_WORDS == 1) echo('Pozn.: V¹echny \'¹patná slova\' jsou ze zprávy vymazány.'); ?> </p> <p> --- 335,339 ---- rohu a pak stisknìte klávesu Enter pro poslání. Zprávy od v¹ech u¾ivatelù se zobrazují v hlavním chatovacím rámci.<br /> ! <?php if (C_NO_SWEAR == 1) echo('Pozn.: V¹echny \'¹patná slova\' jsou ze zprávy vymazány.'); ?> </p> <p> *************** *** 351,354 **** --- 351,355 ---- </p> <ol> + <!-- To update <li>malá ikona (<img src="images/whois_off.gif" width="5" height="9" border="0" alt="whois icon" />) je zobrazena pøed jménem registrovaného u¾ivatele a kliknutím na tuto *************** *** 356,359 **** --- 357,362 ---- pro tohoto u¾ivatele. Nezaregistrovaní u¾ivatelé mají pøed svým jménem jen pomlèku;</li> + --> + <li>a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the <a href="#whois">whois popup</a> for this user), while unregistered users have nothing but blank spaces displayed before their nick;</li> <li>jméno u¾ivatele, který je administrátorem chatu nebo moderátorem je zobrazeno kurzívou.</li> </ol> *************** *** 364,374 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="seznam u¾ivatelù" /> </td> <td> <ul> ! <li>Nicolas je administrátor nebo jeden z moderátorù místnosti;</li> <li>lolo a Jezek2 jsou registrovaní u¾ivatelé;</li> <li>Mary je obyèejný neregistrovaný u¾ivatel.</li> </ul> </td> --- 367,381 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="seznam u¾ivatelù" /> </td> <td> <ul> ! <li>Nicolas je administrátor nebo jeden z moderátorù místnosti;<br /><br /></li> ! <!-- To update <li>lolo a Jezek2 jsou registrovaní u¾ivatelé;</li> <li>Mary je obyèejný neregistrovaný u¾ivatel.</li> + --> + <li>alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;<br /><br /></li> + <li>lolo is a simple unregistered user.</li> </ul> </td> *************** *** 549,555 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 556,560 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 673,677 **** <p> Jméno místnosti nemù¾e obsahovat èárky ani zpìtné lomítka (\). ! <?php if (C_BAD_WORDS == 1) echo(' Také nemù¾e obsahovat \'¹patná slova\'.' . "\n"); ?> </p> <?php --- 678,682 ---- <p> Jméno místnosti nemù¾e obsahovat èárky ani zpìtné lomítka (\). ! <?php if (C_NO_SWEAR == 1) echo(' Také nemù¾e obsahovat \'¹patná slova\'.' . "\n"); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/czech/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:53 1.1 --- chat.loc 2001/04/11 23:06:12 1.2 *************** *** 166,170 **** define('L_NO_ADMIN', 'Tento pøíkaz mù¾e pou¾ít jen administrátor.'); define('L_ANNOUNCE', 'OZNÁMENÍ'); ! define('L_INVITE', '%s vám doporuèuje pøejít do místnosti <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\')">%s</a>.'); define('L_INVITE_REG', ' You have to be registered to enter this room.'); define('L_INVITE_DONE', 'Va¹e výzva byla odeslána u¾ivateli %s.'); --- 166,170 ---- define('L_NO_ADMIN', 'Tento pøíkaz mù¾e pou¾ít jen administrátor.'); define('L_ANNOUNCE', 'OZNÁMENÍ'); ! define('L_INVITE', '%s vám doporuèuje pøejít do místnosti <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\')">%s</a>.'); define('L_INVITE_REG', ' You have to be registered to enter this room.'); define('L_INVITE_DONE', 'Va¹e výzva byla odeslána u¾ivateli %s.'); |
From: Lo?c C. <lo...@us...> - 2001-04-11 23:06:45
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/bosnian In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat/localization/bosnian Modified Files: tutorial.loc chat.loc Log Message: Two many modifications, I can't detail Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/bosnian/tutorial.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** tutorial.loc 2001/04/10 17:50:59 1.2 --- tutorial.loc 2001/04/11 23:06:12 1.3 *************** *** 244,251 **** <!-- To Update <li>Prvo kreirajte korisnicko ime i sifru za sebe , unesite to u odgovarajuce polje. Korisnicko ime koje ste izabrali je ime koje ce se automatski prikazati u chat sobi.Ima ne moze sadrzavati medju prostor, zarez ili kose crte (\). ! <?php if (C_BAD_WORDS == 1) echo(' Ime ne moze sadrzavati "ruzne rijeci - swear words".' . "\n"); ?> --> <li>First, create a username<?php if (!C_EMAIL_PASWD) echo(' and a password'); ?> for yourself by typing it into the appropriate boxes. The username you choose is the name that will be automatically displayed in the chat room. It cannot contain space, comma or backslash (\). ! <?php if (C_BAD_WORDS == 1) echo(' It can no more contains \'swear words\'.'); ?></li> <li>Drugo , molimo unesite vase ime, prezime i vasu email adresu. Da biste se mogli registrovati za chat , sve ove informacije moraju biti dostupne. You can skip gender selection.</li> <li>Ako imate svoju web stranicu ,mozete unijeti URL takodjer.</li> --- 244,251 ---- <!-- To Update <li>Prvo kreirajte korisnicko ime i sifru za sebe , unesite to u odgovarajuce polje. Korisnicko ime koje ste izabrali je ime koje ce se automatski prikazati u chat sobi.Ima ne moze sadrzavati medju prostor, zarez ili kose crte (\). ! <?php if (C_NO_SWEAR == 1) echo(' Ime ne moze sadrzavati "ruzne rijeci - swear words".' . "\n"); ?> --> <li>First, create a username<?php if (!C_EMAIL_PASWD) echo(' and a password'); ?> for yourself by typing it into the appropriate boxes. The username you choose is the name that will be automatically displayed in the chat room. It cannot contain space, comma or backslash (\). ! <?php if (C_NO_SWEAR == 1) echo(' It can no more contains \'swear words\'.'); ?></li> <li>Drugo , molimo unesite vase ime, prezime i vasu email adresu. Da biste se mogli registrovati za chat , sve ove informacije moraju biti dostupne. You can skip gender selection.</li> <li>Ako imate svoju web stranicu ,mozete unijeti URL takodjer.</li> *************** *** 271,275 **** </p> <p> ! Ime sobe ne moze sadrzavati zarez ili kosu crtu (\).<?php if (C_BAD_WORDS == 1) echo(' It can no more contains "swear words".' . "\n"); ?> </p> <p align="right"><a href="#top">Povratak na vrh</a></p> --- 271,275 ---- </p> <p> ! Ime sobe ne moze sadrzavati zarez ili kosu crtu (\).<?php if (C_NO_SWEAR == 1) echo(' It can no more contains "swear words".' . "\n"); ?> </p> <p align="right"><a href="#top">Povratak na vrh</a></p> *************** *** 308,312 **** <p> Da bi poslali poruku u chat sobu, napisite tekst u polje za pisanje koje se nalazi u donjem lijevom uglu i onda kliknite na Enter/Return da je posaljete. Poruke od svih korisnika biti ce izlistane u chat box.<br /> ! <?php if (C_BAD_WORDS == 1) echo('Note that \'swear words\' are skipped from messages.' . "\n"); ?> </p> <p> --- 308,312 ---- <p> Da bi poslali poruku u chat sobu, napisite tekst u polje za pisanje koje se nalazi u donjem lijevom uglu i onda kliknite na Enter/Return da je posaljete. Poruke od svih korisnika biti ce izlistane u chat box.<br /> ! <?php if (C_NO_SWEAR == 1) echo('Note that \'swear words\' are skipped from messages.' . "\n"); ?> </p> <p> *************** *** 323,327 **** </p> <ol> ! <li>a little icon (<img src="images/whois_off.gif" width="5" height="9" border="0" alt="whois icon" />) is displayed before the nick of a registered user and clicking on it will launch the <a href="#whois">whois popup</a> for this user, while unregistered users just have a minus sign displayed before their nick;</li> <li>the nick of the administrator or of a moderator is italicized.</li> </ol> --- 323,327 ---- </p> <ol> ! <li>a little icon that shows gender is displayed before the nick of a registered user (clicking on it will launch the <a href="#whois">whois popup</a> for this user), while unregistered users have nothing but blank spaces displayed before their nick;</li> <li>the nick of the administrator or of a moderator is italicized.</li> </ol> *************** *** 330,340 **** <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="99" height="131" border="0" alt="users list" /> </td> <td> <ul> ! <li>Nicolas is the admin or one of the moderators of the phpMyChat room;</li> ! <li>lolo and Jezek2 are registered users with no extra "power" for the phpMyChat room;</li> ! <li>Mary is a simple unregistered user.</li> </ul> </td> --- 330,340 ---- <tr> <td> ! <img src="images/tutorials_imgs/users_list.gif" width="128" height="145" border="0" alt="users list" /> </td> <td> <ul> ! <li>Nicolas is the admin or one of the moderators of the phpMyChat room;<br /><br /></li> ! <li>alien (whose gender is unknown), Jezek2 and Caridad are registered users with no extra "power" for the phpMyChat room;<br /><br /></li> ! <li>lolo is a simple unregistered user.</li> </ul> </td> *************** *** 476,482 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'tutorial'); unset($smilies); ?> --- 476,480 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('tutorial'); unset($smilies); ?> *************** *** 592,596 **** </p> <p> ! Imena soba ne mogu sadrzavati zarez ili kosu crtu (\).<?php if (C_BAD_WORDS == 1) echo(' Niti mogu sadrzavati "ruzne rijeci".' . "\n"); ?> </p> <?php --- 590,594 ---- </p> <p> ! Imena soba ne mogu sadrzavati zarez ili kosu crtu (\).<?php if (C_NO_SWEAR == 1) echo(' Niti mogu sadrzavati "ruzne rijeci".' . "\n"); ?> </p> <?php Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/bosnian/chat.loc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** chat.loc 2001/04/10 16:58:35 1.1 --- chat.loc 2001/04/11 23:06:12 1.2 *************** *** 166,170 **** define('L_NO_ADMIN', 'Only the administrator can use this command.'); define('L_ANNOUNCE', 'ANNOUNCE'); ! define('L_INVITE', '%s suggest you to join her/him into the <a href="#" onclick="window.parent.runCmd(\'%s\', \'%s\')">%s</a> room.'); define('L_INVITE_REG', ' You have to be registered to enter this room.'); define('L_INVITE_DONE', 'Your invitation has been sent to %s.'); --- 166,170 ---- define('L_NO_ADMIN', 'Only the administrator can use this command.'); define('L_ANNOUNCE', 'ANNOUNCE'); ! define('L_INVITE', '%s suggest you to join her/him into the <a href="#" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\')">%s</a> room.'); define('L_INVITE_REG', ' You have to be registered to enter this room.'); define('L_INVITE_DONE', 'Your invitation has been sent to %s.'); |
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv1253/chat Modified Files: whois_popup.php3 profile_reg.php3 profile_edit.php3 input.php3 help_popup.php3 handle_input.php3 Added Files: setup.php3 ignore_popup.php3 Log Message: Two many modifications, I can't detail --- NEW FILE --- <?php // // +------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +------------------------------------------------------------------------+ // | This script displays the easy setup sheets for phpMyChat. | // | One function is defined inside: | // | - checkRoomsNames() = ensures there is no confusion between default | // | private and public rooms names | // +------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +------------------------------------------------------------------------+ // // $Id: setup.php3,v 1.1 2001/04/11 23:06:12 loic1 Exp $ // // Easy setup script for phpMyChat. // /** * Ensures that the same name is not used for default private and public rooms * * @param string list of public rooms names * @param string list of private rooms names * * @return boolean false if no problem has been detected * * @access private */ function checkRoomsNames($pubList = '', $privList = '') { $rooms = explode(',', $privList); for (reset($rooms); $roomName = current($rooms); next($rooms)) { if (pmcIsInto($roomName, $pubList) >= 0) return true; } return false; } // end func checkRoomsNames /** * 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'); /** * Includes some libraries */ require('./lib/common.lib.' . C_EXTENSION); /** * Gets the names and values for variables sent or posted to this script * * Uses the 'pmcGrabGlobals()' and 'pmcHandleMagicQuotes()' function defined in * the 'chat/lib/common.lib.php3' library */ $toGrab = array('%GET', '%POST'); pmcGrabGlobals($toGrab); // Unslashes values of variables sent to this script if (!empty($cDbUser)) $cDbUser = pmcHandleMagicQuotes($cDbUser, '1', '', 'del'); if (!empty($cDbPass)) $cDbPass = pmcHandleMagicQuotes($cDbPass, '1', '', 'del'); if (!empty($cPubChatRooms)) $cPubChatRooms = pmcHandleMagicQuotes($cPubChatRooms, '1', '', 'del'); if (!empty($cPrivChatRooms)) $cPrivChatRooms = pmcHandleMagicQuotes($cPrivChatRooms, '1', '', 'del'); if (!empty($admLog)) $admLog = pmcHandleMagicQuotes($admLog, '1', '', 'del'); if (!empty($admPass)) $admPass = pmcHandleMagicQuotes($admPass, '1', '', 'del'); if (!empty($admFname)) $admFname = pmcHandleMagicQuotes($admFname, '1', '', 'del'); if (!empty($admLname)) $admLname = pmcHandleMagicQuotes($admLname, '1', '', 'del'); if (!empty($admLang)) $admLang = pmcHandleMagicQuotes($admLang, '1', '', 'del'); /** * Selects a translation */ require('./install/languages/languages.setup.' . C_EXTENSION); require('./install/languages/' . $lang . '.setup.loc'); /** * Initialize some variables */ if (!isset($formSent)) $formSent = 0; $from = basename($PHP_SELF); /** * The first of the setup pages have been submitted -> checks for values * submitted and do the work */ if ($formSent == 1) { // Ensures the required fields have been completed $error = (trim($cDbName) == '' || trim($cMsgTbl) == '' || trim($cRegTbl) == '' || trim($cUsrTbl) == '' || trim($cBanTbl) == ''); // Do the work if (!$error) { define('C_DB_TYPE', $cDbType); define('C_DB_HOST', $cDbHost); define('C_DB_NAME', $cDbName); define('C_DB_USER', $cDbUser); define('C_DB_PASS', $cDbPass); // Tables have to be created of modified if ($create != 0) { include('./lib/database/' . $cDbType . '.lib.' . C_EXTENSION); include('./install/database/' . $cDbType . '.dump.' . C_EXTENSION); $dbLink = new pmcDB; switch ($create) { case '1': // Udpates tables from a release older than 0.13.? $toDo = $updTab2; break; case '2': // Udpates tables from a 0.13.? release $toDo = $updTab1; break; case '3': // Creates table $toDo = $createTab; } for (reset($toDo); $query=current($toDo); next($toDo)) { $dbLink->query($query); } // Optimize the tables if they have been updated if ($create != 3) { $dbLink->optimize($cMsgTbl); $dbLink->optimize($cUsrTbl); $dbLink->optimize($cRegTbl); $dbLink->optimize($cBanTbl); } $dbLink->close(); $errorMsg = S_MAIN_2; } // end if ($create != 0) else { $errorMsg = S_MAIN_3; } $nextPage = 2; } else { $errorMsg = S_MAIN_4; $nextPage = 1; } } // end if ($formSent == 1) /** * The second of the setup pages have been submitted -> checks for values * submitted and do the work */ else if ($formSent == 2) { if (!isset($cMultiLang)) $cMultiLang = 0; if (!isset($cRequireRegister)) $cRequireRegister = 0; if (!isset($cEmailPaswd)) $cEmailPaswd = 0; if (!isset($cShowAdmin)) $cShowAdmin = 0; if (!isset($cShowDelProf)) $cShowDelProf = 0; if (!isset($cMsgOrder)) $cMsgOrder = 0; if (!isset($cShowTimestamp)) $cShowTimestamp = 0; if (!isset($cUseSmilies)) $cUseSmilies = 0; if (!isset($cHtmlTagsKeep)) $cHtmlTagsKeep = 'none'; if (!isset($cHtmlTagsShow)) $cHtmlTagsShow = 0; if (empty($cBanish)) $cBanish = 0; if (!isset($cNoSwear)) $cNoSwear = 0; if (trim($cSave) == '') $cSave = '0'; if (!isset($cNotify)) $cNotify = 0; if (!isset($cWelcome)) $cWelcome = 0; $error = true; if (trim($cMsgDel) == '' || trim($cUsrDel) == '' || trim($cRegDel) == '') { $errorMsg = S_MAIN_5; } else if (trim($cPubChatRooms) == '') { $errorMsg = S_MAIN_6; } else if (ereg('[\]', $cPubChatRooms) || ereg('[\]', $cPrivChatRooms)) { $errorMsg = S_MAIN_7; } else if (checkRoomsNames($cPubChatRooms, $cPrivChatRooms)) { $errorMsg = S_MAIN_10; } else if (trim($cTmzOffset) == '') { $errorMsg = S_MAIN_8; } else if (trim($cMsgNb) == '' || trim($cMsgRefresh) == '') { $errorMsg = S_MAIN_9; } else if (trim($cChatUrl) == '') { $errorMsg = S_MAIN_21; } else { $error = false; $nextPage = 3; $errorMsg = S_MAIN_11; } if ($error) $nextPage = 2; } // end if ($formSent == 2) /** * The third of the setup pages have been submitted -> checks for values * submitted and do the work * * Uses the 'pmcSlashSingleQuotes()' function defined in * 'chat/lib/common.lib.php3' */ else if ($formSent == 3) { // The third setup page hasn't been skipped if ($submitType != S_SETUP3_12) { $error = true; if (trim($admLog) == '') { $errorMsg = S_MAIN_12; } else if (ereg('[\, ]', $admLog)) { $errorMsg = S_MAIN_13; } else if ($admPass == '') { $errorMsg = S_MAIN_14; } else { if (!isset($showEmail)) $showEmail = 0; $error = false; } } else { $error = false; } if (!$error && $submitType != S_SETUP3_12) { define('C_DB_TYPE', $cDbType); define('C_DB_HOST', $cDbHost); define('C_DB_NAME', $cDbName); define('C_DB_USER', $cDbUser); define('C_DB_PASS', $cDbPass); $adminPwd = md5($admPass); include('./lib/database/' . $cDbType . '.lib.' . C_EXTENSION); $dbLink = new pmcDB; $dbLink->query("SELECT password FROM $cRegTbl WHERE username = '" . pmcSlashSingleQuotes($admLog) . "' AND perms != 'admin' LIMIT 1"); if (list($oldPassword) = $dbLink->nextRecord()) { $dbLink->clean_results(); if ($oldPassword != $adminPwd) { $error = true; $errorMsg = sprintf(S_MAIN_15, $admLog); $nextPage = 3; } else { if ($existAdm) $dbLink->query("DELETE FROM $cRegTbl WHERE perms = 'admin'"); $dbLink->query("UPDATE $cRegTbl SET perms = 'admin' WHERE username = '" . pmcSlashSingleQuotes($admLog) . "'"); $existAdm = true; } } else { $dbLink->cleanResults(); } if (!$error) { if (!isset($admGender)) $admGender = ''; include('./lib/get_ip.lib.' . C_EXTENSION); // Set the $IP var if (!$existAdm) { include('./install/database/' . $cDbType . '.dump.' . C_EXTENSION); $admQuery = $createAdm; } else { $admQuery = "UPDATE $cRegTbl SET " . "username = '" . pmcSlashSingleQuotes($admLog) . "', " . "password = '" . $adminPwd . "', " . "firstname = '" . pmcSlashSingleQuotes($admFname) . "', " . "lastname = '" . pmcSlashSingleQuotes($admLname) . "', " . "country = '" . pmcSlashSingleQuotes($admLang) . "', " . "website = '" . $admWeb . "', " . "email = '" . $admEmail . "', " . "showemail = " . $showEmail . ", " . "reg_time = " . time() . ", " . "ip = '" . $ip . "', " . "gender = '" . $admGender . "' " . "WHERE perms = 'admin'"; } $dbLink->query($admQuery); $errorMsg = S_MAIN_16; // Next page depends on the fact the mail() function is enabled or not if (!$cMailFunction) { $errorMsg .= '<br /><br />' . S_MAIN_20; $cRegSender = ''; $cRegEmail = ''; $cAdmSender = ''; $cAdmEmail = ''; $nextPage = 5; } else { $nextPage = 4; } } $dbLink->close(); } else if (!$error) { $errorMsg = S_MAIN_17; // Next page depends on the fact the mail() function is enabled or not if (!$cMailFunction) { $errorMsg .= '<br /><br />' . S_MAIN_20; $cRegSender = ''; $cRegEmail = ''; $cAdmSender = ''; $cAdmEmail = ''; $nextPage = 5; } else { $nextPage = 4; } } else { $nextPage = 3; } } // end if ($formSent == 2) /** * The fourth of the setup pages have been submitted -> checks for values * submitted and do the work */ else if ($formSent == 4) { $errorMsg = S_MAIN_19; $nextPage = 5; } /** * Initialize the $nextPage variable if necessary */ if (!isset($nextPage)) $nextPage = 0; /** * Sends HTTP headers * * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ pmcHttpHeaders(S_CHARSET, false); /** * Sends the webpage * * The urlForStylesheet() function is defined in the 'chat/lib/common.lib.php3' * library */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html dir="<?php echo(($charset == 'windows-1256') ? 'rtl' : 'ltr'); ?>"> <head> <title><?php echo('phpMyChat ' . S_MAIN_18); ?></title> <link rel="stylesheet" href="<?php echo(pmcUrlForStyleSheet('style', S_CHARSET, (defined('S_FONT_NAME')) ? S_FONT_NAME : '', S_FONT_SIZE)); ?>" type="text/css" /> </head> <body style="background-color: #666699"> <center> <?php $tagClass = ((isset($error) && $error)) ? 'error' : 'whois'; if (!empty($errorMsg)) echo('<p class="' . $tagClass . '">' . $errorMsg . '</p>'); include('./install/setup' . $nextPage .'.' . C_EXTENSION); ?> </center> </body> </html> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This script defines the 'ignored' popups that are used to display users | // | whose messages aren't displayed. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: ignore_popup.php3,v 1.1 2001/04/11 23:06:12 loic1 Exp $ // // The 'ignored' popups. // /** * 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'); /** * Gets some core libraries */ require('./config/config.lib.' . C_EXTENSION); require('./lib/common.lib.' . C_EXTENSION); require('./lib/database/' . C_DB_TYPE . '.lib.' . C_EXTENSION); /** * Gets the values of variables sent or posted to this script * * Uses the 'pmcGrabGlobals()' function is defined in the * 'chat/lib/common.lib.php3' library. */ pmcGrabGlobals('%GET'); /** * 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, C_CHAT_URL ); dbSessionstart(); /** * Defines the language to be used */ require('./localization/' . $dbSessionVars['lang'] . '/chat.loc'); /** * Sends HTTP headers * * The 'pmcHttpHeaders()' fonction is defined in the 'chat/lib/common.lib.php3' * library */ pmcHttpHeaders(L_CHARSET, false); /** * Displays the frame * * Uses the 'pmcUrlForStyleSheet()' and the 'pmcSpecialChars()' functions from * the 'chat/lib/common.lib.php3' library */ // The url for the style sheet $cssUrl = pmcUrlForStyleSheet('style', L_CHARSET, (defined('L_FONT_NAME')) ? L_FONT_NAME : '', L_FONT_SIZE); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html dir="<?php echo((L_CHARSET == 'windows-1256') ? 'rtl' : 'ltr'); ?>"> <head> <title><?php echo(L_IGNOR_TIT); ?></title> <link rel="stylesheet" href="<?php echo($cssUrl); ?>" type="text/css" /> <script type="text/javascript" language="javascript1.1"> <!-- /** * Put the focus at the message box in the input frame */ function pmcPutFocus() { if (typeof(window.opener) != 'undefined' && window.opener && !window.opener.closed) { if (document.forms['ignoredForm'].elements['refresh'].value != 1) window.opener.window.parent.jsIgnoredPopupWin = null; window.opener.focus(); pointTo = window.opener.frames['input'].window; if (pointTo && !pointTo.closed) pointTo.document.forms['inputForm'].elements['message'].focus(); } } // end of the 'pmcPutFocus()' function // --> </script> </head> <body class="frame" onunload="if (document.forms['ignoredForm'].elements['exit'].value != 1) pmcPutFocus()"> <center> <?php if (dbSessionIsRegistered('ignoredSenders') && $dbSessionVars['ignoredSenders'] != '') { $ignoredUsers = explode(',', $dbSessionVars['ignoredSenders']); for ($i = 0; $i < count($ignoredUsers); $i++) { echo('- ' . $ignoredUsers[$i] . '<br />' . "\n"); } } else { echo(L_IGNOR_NON . "\n"); } ?> </center> <?php /** * The form bellow allows to check whether the popup unloads because ignored * users list has been modified, because the user reduced/closed it or because * the user exit the chat */ ?> <!-- Control form --> <form action="nothing" method="post" name="ignoredForm"> <input type="hidden" name="refresh" value="0" /> <input type="hidden" name="exit" value="0" /> </form> </body> </html> Index: whois_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** whois_popup.php3 2001/04/10 16:58:34 1.5 --- whois_popup.php3 2001/04/11 23:06:12 1.6 *************** *** 155,159 **** <!-- // Put the focus at the message box in the input frame ! function putFocus() { if (typeof(window.opener) == 'undefined') --- 155,159 ---- <!-- // Put the focus at the message box in the input frame ! function pmcPutFocus() { if (typeof(window.opener) == 'undefined') *************** *** 170,179 **** document.forms['inputForm'].elements['message'].focus(); } ! } // --> </script> </head> ! <body class="frame" onunload="putFocus()"> <center> --- 170,179 ---- document.forms['inputForm'].elements['message'].focus(); } ! } // end of the 'pmcPutFocus()' function // --> </script> </head> ! <body class="frame" onunload="pmcPutFocus()"> <center> Index: profile_reg.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** profile_reg.php3 2001/04/10 16:58:34 1.3 --- profile_reg.php3 2001/04/11 23:06:12 1.4 *************** *** 99,103 **** if (isset($submitType) && $submitType == L_REG_3) { ! if (C_BAD_WORDS) include('./lib/swearing.lib.' . C_EXTENSION); --- 99,103 ---- if (isset($submitType) && $submitType == L_REG_3) { ! if (C_NO_SWEAR) include('./lib/swearing.lib.' . C_EXTENSION); *************** *** 111,115 **** $error = L_ERR_USR_16; } ! else if (C_BAD_WORDS && checkWords($nick, true)) { $error = L_ERR_USR_18; --- 111,115 ---- $error = L_ERR_USR_16; } ! else if (C_NO_SWEAR && checkWords($nick, true)) { $error = L_ERR_USR_18; Index: profile_edit.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_edit.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** profile_edit.php3 2001/04/10 16:58:34 1.3 --- profile_edit.php3 2001/04/11 23:06:12 1.4 *************** *** 112,116 **** if (isset($submitType) && $submitType == L_REG_16) { ! if (C_BAD_WORDS) include('./lib/swearing.lib.' . C_EXTENSION); --- 112,116 ---- if (isset($submitType) && $submitType == L_REG_16) { ! if (C_NO_SWEAR) include('./lib/swearing.lib.' . C_EXTENSION); *************** *** 124,128 **** $error = L_ERR_USR_16; } ! else if (C_BAD_WORDS && checkWords($nick, true)) { $error = L_ERR_USR_18; --- 124,128 ---- $error = L_ERR_USR_16; } ! else if (C_NO_SWEAR && checkWords($nick, true)) { $error = L_ERR_USR_18; Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** input.php3 2001/04/10 21:24:34 1.12 --- input.php3 2001/04/11 23:06:12 1.13 *************** *** 136,140 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! checkForSmilies($enhancedMessage, $smilies); unset($smilies); } --- 136,140 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! pmcCheckForSmilies($enhancedMessage); unset($smilies); } Index: help_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/help_popup.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** help_popup.php3 2001/04/10 16:58:34 1.3 --- help_popup.php3 2001/04/11 23:06:12 1.4 *************** *** 89,93 **** <script type="text/javascript" language="javascript1.1"> <!-- ! function targetWin() { if (typeof(window.opener) == 'undefined') --- 89,100 ---- <script type="text/javascript" language="javascript1.1"> <!-- ! /** ! * Put the 'input' frame in an object variable ! * ! * @return object the 'input' frame object ! * ! * @access private ! */ ! function pmcTargetWin() { if (typeof(window.opener) == 'undefined') *************** *** 99,121 **** else return window.opener.window; ! } ! function smiley2Input(code) { window.focus(); if (typeof(window.opener) != 'undefined' && window.opener && !window.opener.closed) { ! addTo = targetWin(); if (addTo && !addTo.closed) addTo.document.forms['inputForm'].elements['message'].value += code; } ! } ! function cmd2Input(code, addString) { window.focus(); if (typeof(window.opener) != 'undefined' && window.opener && !window.opener.closed) { ! addTo = targetWin(); if (addTo && !addTo.closed) { --- 106,144 ---- else return window.opener.window; ! } // end of the 'pmcTargetWin()' function ! /** ! * Add a smiley to the message box at the 'input' frame ! * ! * @param string the smiley text code ! * ! * @access private ! */ ! function pmcSmiley2Input(code) { window.focus(); if (typeof(window.opener) != 'undefined' && window.opener && !window.opener.closed) { ! addTo = pmcTargetWin(); if (addTo && !addTo.closed) addTo.document.forms['inputForm'].elements['message'].value += code; } ! } // end of the 'pmcSmiley2Input()' function ! /** ! * Add a command to the message box at the 'input' frame ! * ! * @param string the smiley text code ! * @param boolean whether to append the existing text in the message box to ! * the command or to replace the former by the later ! * ! * @access private ! */ ! function pmcCmd2Input(code, addString) { window.focus(); if (typeof(window.opener) != 'undefined' && window.opener && !window.opener.closed) { ! addTo = pmcTargetWin(); if (addTo && !addTo.closed) { *************** *** 126,130 **** } } ! } //--> </script> --- 149,153 ---- } } ! } // end of the 'pmcCmd2Input()' function //--> </script> *************** *** 139,145 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCnt = count($smilies); ! $smiliesCodes = array(); ! displaySmilies($smiliesCodes, $smilies, $smiliesCnt, 'help'); unset($smilies); ?> --- 162,167 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! $smiliesCodes = pmcDisplaySmilies('help'); ! $smiliesCnt = count($smilies); unset($smilies); ?> *************** *** 192,201 **** <tr><th align="center" class="tabtitle" colspan="2"><?php echo(L_HELP_TIT_3); ?></th></tr> <tr><th align="center" colspan="2"><?php echo(L_HELP_CMD_0); ?></th></tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/!', false); return false" class="sender">/!</a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_7); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/ANNOUNCE', true); return false" class="sender">/announce {<?php echo(L_HELP_MSG); ?>}</a></th></tr> <tr> <td width="10"> </td> --- 214,223 ---- <tr><th align="center" class="tabtitle" colspan="2"><?php echo(L_HELP_TIT_3); ?></th></tr> <tr><th align="center" colspan="2"><?php echo(L_HELP_CMD_0); ?></th></tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/!', false); return false" class="sender">/!</a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_7); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/ANNOUNCE', true); return false" class="sender">/announce {<?php echo(L_HELP_MSG); ?>}</a></th></tr> <tr> <td width="10"> </td> *************** *** 206,210 **** { ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/BAN', true); return false" class="sender">/ban <bdo dir="<?php echo($textDirection); ?>">[*]</bdo> {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> --- 228,232 ---- { ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/BAN', true); return false" class="sender">/ban <bdo dir="<?php echo($textDirection); ?>">[*]</bdo> {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> *************** *** 219,223 **** echo("\n"); ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/CLEAR', false); return false" class="sender">/clear</a></th></tr> <tr> <td width="10"> </td> --- 241,245 ---- echo("\n"); ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/CLEAR', false); return false" class="sender">/clear</a></th></tr> <tr> <td width="10"> </td> *************** *** 228,237 **** echo("\n"); ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/IGNORE', true); return false" class="sender">/ignore <bdo dir="<?php echo($textDirection); ?>">[-]</bdo> <?php echo('[' . L_HELP_USR . '[,' . L_HELP_USR . '...]]'); ?></a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_6); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/INVITE', true); return false" class="sender">/invite {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> --- 250,259 ---- echo("\n"); ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/IGNORE', true); return false" class="sender">/ignore <bdo dir="<?php echo($textDirection); ?>">[-]</bdo> <?php echo('[' . L_HELP_USR . '[,' . L_HELP_USR . '...]]'); ?></a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_6); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/INVITE', true); return false" class="sender">/invite {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> *************** *** 242,246 **** { ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/JOIN', true); return false" class="sender">/join <bdo dir="<?php echo($textDirection); ?>">[n]</bdo> {#<?php echo(L_HELP_ROOM); ?>}</a></th></tr> <tr> <td width="10"> </td> --- 264,268 ---- { ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/JOIN', true); return false" class="sender">/join <bdo dir="<?php echo($textDirection); ?>">[n]</bdo> {#<?php echo(L_HELP_ROOM); ?>}</a></th></tr> <tr> <td width="10"> </td> *************** *** 251,260 **** echo("\n"); ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/KICK', true); return false" class="sender">/kick {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_9); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/ME', true); return false" class="sender">/me {<?php echo(L_HELP_MSG); ?>}</a></th></tr> <tr> <td width="10"> </td> --- 273,282 ---- echo("\n"); ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/KICK', true); return false" class="sender">/kick {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_9); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/ME', true); return false" class="sender">/me {<?php echo(L_HELP_MSG); ?>}</a></th></tr> <tr> <td width="10"> </td> *************** *** 262,267 **** </tr> <tr><th align="<?php echo($cellAlign); ?>" colspan="2"> ! <a href="#" onclick="cmd2Input('/MSG', true); return false" class="sender">/msg <?php echo('{' . L_HELP_USR . '} {' . L_HELP_MSG .'}'); ?></a><br /> ! <a href="#" onclick="cmd2Input('/TO', true); return false" class="sender">/to <?php echo('{' . L_HELP_USR . '} {' . L_HELP_MSG . '}'); ?></a> </th></tr> <tr> --- 284,289 ---- </tr> <tr><th align="<?php echo($cellAlign); ?>" colspan="2"> ! <a href="#" onclick="pmcCmd2Input('/MSG', true); return false" class="sender">/msg <?php echo('{' . L_HELP_USR . '} {' . L_HELP_MSG .'}'); ?></a><br /> ! <a href="#" onclick="pmcCmd2Input('/TO', true); return false" class="sender">/to <?php echo('{' . L_HELP_USR . '} {' . L_HELP_MSG . '}'); ?></a> </th></tr> <tr> *************** *** 269,273 **** <td><?php echo(L_HELP_CMD_10); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/NOTIFY', false); return false" class="sender">/notify</a></th></tr> <tr> <td width="10"> </td> --- 291,295 ---- <td><?php echo(L_HELP_CMD_10); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/NOTIFY', false); return false" class="sender">/notify</a></th></tr> <tr> <td width="10"> </td> *************** *** 278,282 **** { ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/ORDER', false); return false" class="sender">/order</a></th></tr> <tr> <td width="10"> </td> --- 300,304 ---- { ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/ORDER', false); return false" class="sender">/order</a></th></tr> <tr> <td width="10"> </td> *************** *** 287,296 **** echo("\n"); ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/PROFILE', false); return false" class="sender">/profile</a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_12); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/PROMOTE', true); return false" class="sender">/promote {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> --- 309,318 ---- echo("\n"); ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/PROFILE', false); return false" class="sender">/profile</a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_12); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/PROMOTE', true); return false" class="sender">/promote {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> *************** *** 298,304 **** </tr> <tr><th align="<?php echo($cellAlign); ?>" colspan="2"> ! <a href="#" onclick="cmd2Input('/QUIT', true); return false" class="sender">/quit [<?php echo(L_HELP_MSG); ?>]</a><br /> ! <a href="#" onclick="cmd2Input('/EXIT', true); return false" class="sender">/exit [<?php echo(L_HELP_MSG); ?>]</a><br /> ! <a href="#" onclick="cmd2Input('/BYE', true); return false" class="sender">/bye [<?php echo(L_HELP_MSG); ?>]</a> </th></tr> <tr> --- 320,326 ---- </tr> <tr><th align="<?php echo($cellAlign); ?>" colspan="2"> ! <a href="#" onclick="pmcCmd2Input('/QUIT', true); return false" class="sender">/quit [<?php echo(L_HELP_MSG); ?>]</a><br /> ! <a href="#" onclick="pmcCmd2Input('/EXIT', true); return false" class="sender">/exit [<?php echo(L_HELP_MSG); ?>]</a><br /> ! <a href="#" onclick="pmcCmd2Input('/BYE', true); return false" class="sender">/bye [<?php echo(L_HELP_MSG); ?>]</a> </th></tr> <tr> *************** *** 306,310 **** <td><?php echo(L_HELP_CMD_5); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/REFRESH', true); return false" class="sender">/refresh <bdo dir="<?php echo($textDirection); ?>">[n]</bdo></a></th></tr> <tr> <td width="10"> </td> --- 328,332 ---- <td><?php echo(L_HELP_CMD_5); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/REFRESH', true); return false" class="sender">/refresh <bdo dir="<?php echo($textDirection); ?>">[n]</bdo></a></th></tr> <tr> <td width="10"> </td> *************** *** 315,319 **** { ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/SAVE', true); return false" class="sender">/save <bdo dir="<?php echo($textDirection); ?>">[n]</bdo></a></th></tr> <tr> <td width="10"> </td> --- 337,341 ---- { ?> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/SAVE', true); return false" class="sender">/save <bdo dir="<?php echo($textDirection); ?>">[n]</bdo></a></th></tr> <tr> <td width="10"> </td> *************** *** 325,329 **** ?> <tr><th align="<?php echo($cellAlign); ?>" colspan="2"> ! <a href="#" onclick="cmd2Input('/SHOW', true); return false" class="sender">/show <bdo dir="<?php echo($textDirection); ?>">[n]</bdo></a> <?php if ($jsVersion == 'high') --- 347,351 ---- ?> <tr><th align="<?php echo($cellAlign); ?>" colspan="2"> ! <a href="#" onclick="pmcCmd2Input('/SHOW', true); return false" class="sender">/show <bdo dir="<?php echo($textDirection); ?>">[n]</bdo></a> <?php if ($jsVersion == 'high') *************** *** 331,335 **** ?> <br /> ! <a href="#" onclick="cmd2Input('/LAST', true); return false" class="sender">/last <bdo dir="<?php echo($textDirection); ?>">[n]</bdo></a> <?php } --- 353,357 ---- ?> <br /> ! <a href="#" onclick="pmcCmd2Input('/LAST', true); return false" class="sender">/last <bdo dir="<?php echo($textDirection); ?>">[n]</bdo></a> <?php } *************** *** 341,350 **** <td><?php echo(($jsVersion == 'high') ? L_HELP_CMD_1b : L_HELP_CMD_1a); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/TIMESTAMP', false); return false" class="sender">/timestamp</a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_8); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="cmd2Input('/WHOIS', true); return false" class="sender">/whois {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> --- 363,372 ---- <td><?php echo(($jsVersion == 'high') ? L_HELP_CMD_1b : L_HELP_CMD_1a); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/TIMESTAMP', false); return false" class="sender">/timestamp</a></th></tr> <tr> <td width="10"> </td> <td><?php echo(L_HELP_CMD_8); ?></td> </tr> ! <tr><th align="<?php echo($cellAlign); ?>" colspan="2"><a href="#" onclick="pmcCmd2Input('/WHOIS', true); return false" class="sender">/whois {<?php echo(L_HELP_USR); ?>}</a></th></tr> <tr> <td width="10"> </td> Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** handle_input.php3 2001/04/10 21:24:34 1.10 --- handle_input.php3 2001/04/11 23:06:12 1.11 *************** *** 137,141 **** { include('./lib/smilies.lib.' . C_EXTENSION); ! checkForSmilies($enhancedMessage, $smilies); unset($smilies); } --- 137,141 ---- { include('./lib/smilies.lib.' . C_EXTENSION); ! pmcCheckForSmilies($enhancedMessage); unset($smilies); } |