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-28 20:20:09
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv3624/chat Modified Files: help_popup.php3 Log Message: Bad word case in a css selector Index: help_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/help_popup.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** help_popup.php3 2001/04/28 15:59:57 1.11 --- help_popup.php3 2001/04/28 20:20:07 1.12 *************** *** 172,176 **** </head> ! <body class="mainframe" onload="if (window.focus) window.focus()" onunload="pmcKillPointer()"> <center> --- 172,176 ---- </head> ! <body class="mainFrame" onload="if (window.focus) window.focus()" onunload="pmcKillPointer()"> <center> |
|
From: Lo?c C. <lo...@us...> - 2001-04-28 20:19:06
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs
In directory usw-pr-cvs1:/tmp/cvs-serv3188/chat/lib/index_libs
Modified Files:
do_enter_js_work.lib.php3 do_enter_frameset.lib.php3
Log Message:
Fix a bug with the javascript url argument separator
Index: do_enter_js_work.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/do_enter_js_work.lib.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** do_enter_js_work.lib.php3 2001/04/21 09:45:36 1.7
--- do_enter_js_work.lib.php3 2001/04/28 20:19:03 1.8
***************
*** 34,38 ****
var jsChatPath = '<?php echo(_CHAT_PATH); ?>';
var jsDbSessionSID = '<?php echo(dbSessionSID('GET')); ?>';
! var jsQueryArgSeparator = '<?php echo($pmcQueryArgSeparator); ?>';
var jsIsDOM = (typeof(document.getElementById) != 'undefined') ? 1 : 0;
--- 34,38 ----
var jsChatPath = '<?php echo(_CHAT_PATH); ?>';
var jsDbSessionSID = '<?php echo(dbSessionSID('GET')); ?>';
! var jsQueryArgSeparator = '<?php echo(($pmcQueryArgSeparator == '&') ? '&' : $pmcQueryArgSeparator); ?>';
var jsIsDOM = (typeof(document.getElementById) != 'undefined') ? 1 : 0;
***************
*** 44,48 ****
var jsIgnoredPopupWin = null;
var jsInputForm = null;
! var jsUrlQueryForHelp = '<?php echo('lang=' . $dbSessionVars['lang'] . $pmcQueryArgSeparator . 'jsVersion=' . $jsVersion); ?>';
var jsInvalidCommandMsg = '<?php echo(pmcSlashSingleQuotes(L_BAD_CMD)); ?>';
var jsCharset = '<?php echo(L_CHARSET); ?>';
--- 44,48 ----
var jsIgnoredPopupWin = null;
var jsInputForm = null;
! var jsUrlQueryForHelp = 'lang=<?php echo($dbSessionVars['lang']); ?>' + jsQueryArgSeparator + 'jsVersion=<?php echo($jsVersion); ?>';
var jsInvalidCommandMsg = '<?php echo(pmcSlashSingleQuotes(L_BAD_CMD)); ?>';
var jsCharset = '<?php echo(L_CHARSET); ?>';
Index: do_enter_frameset.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/do_enter_frameset.lib.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** do_enter_frameset.lib.php3 2001/04/27 18:27:22 1.7
--- do_enter_frameset.lib.php3 2001/04/28 20:19:03 1.8
***************
*** 33,45 ****
. $pmcQueryArgSeparator . 'exitMessage=0'
. $pmcQueryArgSeparator . 'reloading=nsResize';
- // The url to be used for the loader
- if ($jsVersion == 'high')
- {
- $loaderUrl = _CHAT_PATH . 'loader.' . C_EXTENSION
- . '?' . dbSessionSID('GET')
- . $pmcQueryArgSeparator . 'isInitLoad=1'
- . $pmcQueryArgSeparator . 'lastMsgLoad=0'
- . $pmcQueryArgSeparator . 'lastUsrCheck=0';
- }
--- 33,36 ----
|
|
From: Lo?c C. <lo...@us...> - 2001-04-28 15:59:59
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv16969/chat
Modified Files:
help_popup.php3
Log Message:
'C_SAVE' could be alphabetic
Index: help_popup.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/help_popup.php3,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** help_popup.php3 2001/04/24 11:27:05 1.10
--- help_popup.php3 2001/04/28 15:59:57 1.11
***************
*** 72,76 ****
/**
! * Displays the frame
*
* Uses the 'pmcUrlForStyleSheet()' function from the
--- 72,76 ----
/**
! * Displays the popup
*
* Uses the 'pmcUrlForStyleSheet()' function from the
***************
*** 357,361 ****
</tr>
<?php
! if (C_SAVE != 0)
{
?>
--- 357,361 ----
</tr>
<?php
! if (C_SAVE)
{
?>
|
|
From: Lo?c C. <lo...@us...> - 2001-04-28 15:42:05
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs
In directory usw-pr-cvs1:/tmp/cvs-serv13385/chat/lib/index_libs
Modified Files:
main_index.lib.php3
Log Message:
Revised html links 'target' part
Index: main_index.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** main_index.lib.php3 2001/04/27 21:34:37 1.23
--- main_index.lib.php3 2001/04/28 15:42:02 1.24
***************
*** 570,574 ****
$lowTutorialUrl = _CHAT_PATH . 'tutorial_popup.' . C_EXTENSION . '?lang=' . $dbSessionVars['lang'] . $pmcQueryArgSeparator . 'jsVersion=low';
?>
! <a href="<?php echo($lowTutorialUrl); ?>" onclick="pmcTutorialPopup(); return false" class="chatLink" target="_blank"><?php echo(L_TUTORIAL); ?></a>
<br /><br />
<span class="chatP1">
--- 570,574 ----
$lowTutorialUrl = _CHAT_PATH . 'tutorial_popup.' . C_EXTENSION . '?lang=' . $dbSessionVars['lang'] . $pmcQueryArgSeparator . 'jsVersion=low';
?>
! <a href="<?php echo($lowTutorialUrl); ?>" target="tutorial_popup" onclick="pmcTutorialPopup(); return false" class="chatLink"><?php echo(L_TUTORIAL); ?></a>
<br /><br />
<span class="chatP1">
***************
*** 581,585 ****
{
$chattingCnt = $dbLink->numRows();
! $usersPopupLink = ' <a href="' . _CHAT_PATH . 'users_popup_low.' . C_EXTENSION . '?' . dbSessionSID('GET') .'" class="chatLink" onclick="pmcUsersPopup(\'' . md5(C_CHAT_URL) . '\'); return false" target="_blank">';
$usersPopupLink .= $chattingCnt . ' ';
$usersPopupLink .= ($chattingCnt > 1) ? L_USERS : L_USER;
--- 581,585 ----
{
$chattingCnt = $dbLink->numRows();
! $usersPopupLink = ' <a href="' . _CHAT_PATH . 'users_popup_low.' . C_EXTENSION . '?' . dbSessionSID('GET') .'" target="users_popup_' . md5(C_CHAT_URL) . '" class="chatLink" onclick="pmcUsersPopup(\'' . md5(C_CHAT_URL) . '\'); return false">';
$usersPopupLink .= $chattingCnt . ' ';
$usersPopupLink .= ($chattingCnt > 1) ? L_USERS : L_USER;
***************
*** 687,692 ****
<td align="center" colspan="2" class="chatCell">
<br />
! <a href="<?php echo(_CHAT_PATH); ?>profile_reg.<?php echo(C_EXTENSION); ?>?<?php echo(dbSessionSID('GET')); ?>" class="chatReg" onclick="pmcRegPopups('profile_reg'); return false" target="_blank"><?php echo(L_REG_3); ?></a>
! | <a href="<?php echo(_CHAT_PATH); ?>profile_edit.<?php echo(C_EXTENSION); ?>?<?php echo(dbSessionSID('GET')); ?>" class="chatReg" onclick="pmcRegPopups('profile_edit'); return false" target="_blank"><?php echo(L_REG_4); ?></a>
<?php
if (C_SHOW_DEL_PROF)
--- 687,692 ----
<td align="center" colspan="2" class="chatCell">
<br />
! <a href="<?php echo(_CHAT_PATH); ?>profile_reg.<?php echo(C_EXTENSION); ?>?<?php echo(dbSessionSID('GET')); ?>" target="profile_reg_popup" class="chatReg" onclick="pmcRegPopups('profile_reg'); return false"><?php echo(L_REG_3); ?></a>
! | <a href="<?php echo(_CHAT_PATH); ?>profile_edit.<?php echo(C_EXTENSION); ?>?<?php echo(dbSessionSID('GET')); ?>" target="profile_edit_popup" class="chatReg" onclick="pmcRegPopups('profile_edit'); return false"><?php echo(L_REG_4); ?></a>
<?php
if (C_SHOW_DEL_PROF)
***************
*** 694,698 ****
echo("\n");
?>
! | <a href="<?php echo(_CHAT_PATH); ?>profile_del.<?php echo(C_EXTENSION); ?>?<?php echo(dbSessionSID('GET')); ?>" class="chatReg" onclick="pmcRegPopups('profile_del'); return false" target="_blank"><?php echo(L_REG_5); ?></a>
<?php
}
--- 694,698 ----
echo("\n");
?>
! | <a href="<?php echo(_CHAT_PATH); ?>profile_del.<?php echo(C_EXTENSION); ?>?<?php echo(dbSessionSID('GET')); ?>" target="profile_del_popup" class="chatReg" onclick="pmcRegPopups('profile_del'); return false"><?php echo(L_REG_5); ?></a>
<?php
}
***************
*** 701,705 ****
echo("\n");
?>
! || <a href="<?php echo(_CHAT_PATH); ?>admin.<?php echo(C_EXTENSION); ?>?<?php echo(dbSessionSID('GET')); ?>" class="chatReg" onclick="pmcRegPopups('admin'); return false" target="_blank"><?php echo(L_REG_35); ?></a>
<?php
}
--- 701,705 ----
echo("\n");
?>
! || <a href="<?php echo(_CHAT_PATH); ?>admin.<?php echo(C_EXTENSION); ?>?<?php echo(dbSessionSID('GET')); ?>" target="admin_popup" class="chatReg" onclick="pmcRegPopups('admin'); return false"><?php echo(L_REG_35); ?></a>
<?php
}
|
|
From: Lo?c C. <lo...@us...> - 2001-04-28 15:41:27
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv13252/chat
Modified Files:
input.php3
Log Message:
Fix a bug with double quotes with javascript disabled browsers and improve html links 'target' part
Index: input.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** input.php3 2001/04/27 18:28:53 1.26
--- input.php3 2001/04/28 15:41:23 1.27
***************
*** 244,248 ****
?>
<!-- Help popup link -->
! <a href="<?php echo($helpUrl); ?>" onclick="window.parent.pmcHelpPopup(<?php echo((L_CHARSET == 'windows-1256') ? 610 : 10); ?>); return false" target="_blank" onmouseover="document.images['helpImg'].src = window.parent.jsImgHelpOn.src" onmouseout="document.images['helpImg'].src = window.parent.jsImgHelpOff.src"><img name="helpImg" src="images/help_off.gif" width="15" height="15" border="0" alt="<?php echo(L_HLP); ?>" onclick="window.parent.pmcSetMsgBoxFocus()" /></a>
<?php
--- 244,248 ----
?>
<!-- Help popup link -->
! <a href="<?php echo($helpUrl); ?>" target="help_popup" onclick="window.parent.pmcHelpPopup(<?php echo((L_CHARSET == 'windows-1256') ? 610 : 10); ?>); return false" onmouseover="document.images['helpImg'].src = window.parent.jsImgHelpOn.src" onmouseout="document.images['helpImg'].src = window.parent.jsImgHelpOff.src"><img name="helpImg" src="images/help_off.gif" width="15" height="15" border="0" alt="<?php echo(L_HLP); ?>" onclick="window.parent.pmcSetMsgBoxFocus()" /></a>
<?php
***************
*** 255,259 ****
// message if the bowser does not know JavaScript);
// - else nothing.
! $msgValue = ($displayMessage) ? $prevMessage : '';
if (isset($error))
{
--- 255,259 ----
// message if the bowser does not know JavaScript);
// - else nothing.
! $msgValue = ($displayMessage) ? str_replace('"', '"', $prevMessage) : '';
if (isset($error))
{
|
|
From: Lo?c C. <lo...@us...> - 2001-04-27 21:34:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs
In directory usw-pr-cvs1:/tmp/cvs-serv6833/chat/lib/index_libs
Modified Files:
main_index.lib.php3
Log Message:
Do not display a flag if there is only one translation
Index: main_index.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** main_index.lib.php3 2001/04/23 18:22:14 1.22
--- main_index.lib.php3 2001/04/27 21:34:37 1.23
***************
*** 616,620 ****
<?php
// Displays the flags for languages if necessary
! if (C_MULTI_LANG == 1)
{
echo("\n");
--- 616,620 ----
<?php
// Displays the flags for languages if necessary
! if (C_MULTI_LANG == 1 && count($availableLanguages) > 1)
{
echo("\n");
|
|
From: Lo?c C. <lo...@us...> - 2001-04-27 18:30:31
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization
In directory usw-pr-cvs1:/tmp/cvs-serv31695/chat/localization
Modified Files:
languages.lib.php3
Log Message:
Fix a problem related to a PHP bug with constants :[
Index: languages.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/languages.lib.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** languages.lib.php3 2001/04/20 17:03:39 1.5
--- languages.lib.php3 2001/04/27 18:30:28 1.6
***************
*** 67,85 ****
* Creates the array containing available languages
*/
! // Ensures the _CHAT_PATH constant is defined
! if (!defined('_CHAT_PATH'))
! define('_CHAT_PATH', '');
// Defines available languages
$availableLanguages = array();
! $languageDirectories = dir('./' . _CHAT_PATH . 'localization/');
while ($name = $languageDirectories->read())
{
! if (is_dir('./' . _CHAT_PATH . 'localization/' . $name)
! && file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/regex.txt')
! && file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/chat.loc')
! && file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/flag.gif'))
{
! list($key) = file('./' . _CHAT_PATH . 'localization/' . $name . '/regex.txt');
$availableLanguages[$key] = $name;
}
--- 67,84 ----
* Creates the array containing available languages
*/
! // Defines the path to the localization directory
! $localizationPath = (defined('_CHAT_PATH') ? _CHAT_PATH : '') . 'localization/';
// Defines available languages
$availableLanguages = array();
! $languageDirectories = dir($localizationPath);
while ($name = $languageDirectories->read())
{
! if (is_dir($localizationPath . $name)
! && file_exists($localizationPath . $name . '/regex.txt')
! && file_exists($localizationPath . $name . '/chat.loc')
! && file_exists($localizationPath . $name . '/flag.gif'))
{
! list($key) = file($localizationPath . $name . '/regex.txt');
$availableLanguages[$key] = $name;
}
***************
*** 89,93 ****
// Sorts the $availableLanguages array in a convenient order
if (!function_exists('krsort'))
! include('./' . _CHAT_PATH . 'localization/sort_languages.lib.' . C_EXTENSION);
krsort($availableLanguages);
--- 88,92 ----
// Sorts the $availableLanguages array in a convenient order
if (!function_exists('krsort'))
! include($localizationPath . 'sort_languages.lib.' . C_EXTENSION);
krsort($availableLanguages);
|
|
From: Lo?c C. <lo...@us...> - 2001-04-27 18:29:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv31560/chat/lib Modified Files: login.lib.php3 Log Message: Closing the db link causes error while deleting a profile with Apache Index: login.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/login.lib.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** login.lib.php3 2001/04/19 21:05:04 1.5 --- login.lib.php3 2001/04/27 18:29:44 1.6 *************** *** 70,74 **** $dbLoginLink->cleanResults(); ! $dbLoginLink->close(); } --- 70,76 ---- $dbLoginLink->cleanResults(); ! // Db link should be closed here but Apache will then kill all the current ! // database links :( ! // $dbLoginLink->close(); } |
|
From: Lo?c C. <lo...@us...> - 2001-04-27 18:28:55
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv31386/chat/lib
Modified Files:
common.lib.php3
Log Message:
Special characters don't need to be backslashed with HTML!
Index: common.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/common.lib.php3,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** common.lib.php3 2001/04/20 21:17:09 1.8
--- common.lib.php3 2001/04/27 18:28:53 1.9
***************
*** 23,27 ****
// | configuration directives |
// | - pmcHttpHeaders() = sends HTTP headers |
! // | - pmcSlashSingleQuotes() = slashes single quotes in a string |
// | - pmcSpecialChars() = converts all applicable characters to HTML |
// | entities, depending on the charset used |
--- 23,27 ----
// | configuration directives |
// | - pmcHttpHeaders() = sends HTTP headers |
! // | - pmcSlashSingleQuotes() = backslashes single quotes in a string |
// | - pmcSpecialChars() = converts all applicable characters to HTML |
// | entities, depending on the charset used |
***************
*** 381,403 ****
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
?>
--- 381,384 ----
|
|
From: Lo?c C. <lo...@us...> - 2001-04-27 18:28:55
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv31386/chat
Modified Files:
input.php3 handle_input.php3
Log Message:
Special characters don't need to be backslashed with HTML!
Index: input.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** input.php3 2001/04/23 18:22:14 1.25
--- input.php3 2001/04/27 18:28:53 1.26
***************
*** 137,141 ****
// Tests for 'true' messages
! if ((!isset($prevMessage) || $message != $prevMessage)
&& !($isCommand || isset($error)))
{
--- 137,141 ----
// Tests for 'true' messages
! if ((!isset($prevMessage) || $message != str_replace('"', '"', $prevMessage))
&& !($isCommand || isset($error)))
{
***************
*** 187,193 ****
* 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
--- 187,192 ----
* Displays the frame
*
! * Uses the 'pmcUrlForStyleSheet()' and the 'pmcSlashSingleQuotes()' functions
! * from the 'chat/lib/common.lib.php3' library
*/
// The url for the style sheet
***************
*** 233,237 ****
<!-- 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 -->
--- 232,236 ----
<!-- Last sent message or command (used for the '/!' command) -->
! <input type="hidden" name="prevMessage" value="<?php echo(isset($message) ? str_replace('"', '"', $message) : ''); ?>" />
<!-- Addressee that will be filled when the user click on a nick at the users frame -->
***************
*** 256,260 ****
// message if the bowser does not know JavaScript);
// - else nothing.
! $msgValue = ($displayMessage) ? pmcSlashDoubleQuotes($prevMessage) : '';
if (isset($error))
{
--- 255,259 ----
// message if the bowser does not know JavaScript);
// - else nothing.
! $msgValue = ($displayMessage) ? $prevMessage : '';
if (isset($error))
{
***************
*** 262,271 ****
{
$msgValue = ($dbSessionVars['jsVersion'] == 'noJs')
! ? '< ' . $error . ' > ' . pmcSlashDoubleQuotes($message)
! : pmcSlashDoubleQuotes($message);
}
else if ($dbSessionVars['jsVersion'] == 'noJs')
{
! $msgValue = $error;
}
}
--- 261,270 ----
{
$msgValue = ($dbSessionVars['jsVersion'] == 'noJs')
! ? str_replace('"', '"', '< ' . $error . ' > ' . $message)
! : str_replace('"', '"', $message);
}
else if ($dbSessionVars['jsVersion'] == 'noJs')
{
! $msgValue = str_replace('"', '"', $error);
}
}
Index: handle_input.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** handle_input.php3 2001/04/21 19:37:40 1.20
--- handle_input.php3 2001/04/27 18:28:53 1.21
***************
*** 186,191 ****
* "Displays" the frame
*
! * The 'pmcSlashSingleQuotes()' and the 'pmcSlashDoubleQuotes()' functions are
! * defined in the 'chat/lib/common.lib.php3' script
*/
?>
--- 186,191 ----
* "Displays" the frame
*
! * The 'pmcSlashSingleQuotes()' function is defined in the
! * 'chat/lib/common.lib.php3' script
*/
?>
***************
*** 203,207 ****
with (window.parent.frames['input'].window.document.forms['inputForm'])
{
! elements['prevMessage'].value = '<?php echo(isset($message) ? pmcSlashSingleQuotes(pmcSlashDoubleQuotes($message)) : ''); ?>';
<?php
--- 203,207 ----
with (window.parent.frames['input'].window.document.forms['inputForm'])
{
! elements['prevMessage'].value = '<?php echo(isset($message) ? addslashes($message) : ''); ?>';
<?php
***************
*** 210,216 ****
// - 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); ?>';
--- 210,216 ----
// - last submission if it was an erroneous command;
// - else nothing.
! $msgValue = ($displayMessage) ? addslashes($prevMessage) : '';
if (isset($error) && !($isCommand))
! $msgValue = addslashes($message);
?>
elements['message'].value = '<?php echo($msgValue); ?>';
***************
*** 220,224 ****
elements['sent'].value = '0';
! if (document.all)
elements['submitType'].disabled = false;
}
--- 220,224 ----
elements['sent'].value = '0';
! if (typeof(elements['submitType'].disabled) != 'undefined')
elements['submitType'].disabled = false;
}
|
|
From: Lo?c C. <lo...@us...> - 2001-04-27 18:27:25
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs
In directory usw-pr-cvs1:/tmp/cvs-serv31099/chat/lib/index_libs
Modified Files:
msg_validation.lib.js msg_colors.lib.js
do_enter_frameset.lib.php3 connect_state.lib.js
Log Message:
Fix some javascript errors
Index: msg_validation.lib.js
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/msg_validation.lib.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** msg_validation.lib.js 2001/04/21 09:43:59 1.2
--- msg_validation.lib.js 2001/04/27 18:27:22 1.3
***************
*** 82,85 ****
--- 82,86 ----
{
var msgBox = pmcGetInputForm('message');
+ msgBox.focus();
// The replace function (js1.2) isn't supported -> no js tests are done
***************
*** 96,100 ****
if (msgBox.value.replace(/ /g, '') == '')
{
- msgBox.focus();
return false;
}
--- 97,100 ----
***************
*** 122,125 ****
--- 122,127 ----
prevMsg.value = msgBox.value;
msgBox.value = '';
+ jsMouseX = 0;
+ jsMouseY = 0;
var pos = (jsCharset == 'windows-1256') ? 610 : 10;
window.parent.pmcHelpPopup(pos);
***************
*** 130,134 ****
else if (!isCmd && jsInputForm.elements['sent'].value == 1)
{
- msgBox.focus();
return false;
}
--- 132,135 ----
***************
*** 137,141 ****
{
msgBox.value = '';
- msgBox.focus();
return false;
}
--- 138,141 ----
***************
*** 149,151 ****
}
} // end of the function 'pmcValidateInputForm()'
-
--- 149,150 ----
Index: msg_colors.lib.js
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/msg_colors.lib.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** msg_colors.lib.js 2001/04/22 20:19:43 1.2
--- msg_colors.lib.js 2001/04/27 18:27:22 1.3
***************
*** 109,120 ****
if (jsSelectedColor != colorRank)
{
! // DOM enabled browser
! if (typeof(document.getElementById) != 'undefined')
{
var obj1 = inputDoc.getElementById(jsSelectedColor);
var obj2 = inputDoc.getElementById(colorRank);
}
! // IE
! else if (typeof(document.all) != 'undefined')
{
var obj1 = inputDoc.all[jsSelectedColor];
--- 109,118 ----
if (jsSelectedColor != colorRank)
{
! if (jsIsDOM)
{
var obj1 = inputDoc.getElementById(jsSelectedColor);
var obj2 = inputDoc.getElementById(colorRank);
}
! else if (jsIsIE4)
{
var obj1 = inputDoc.all[jsSelectedColor];
***************
*** 122,126 ****
}
// NS
! else if (typeof(document.images) != 'undefined')
{
var obj1 = inputDoc.images[jsSelectedColor];
--- 120,124 ----
}
// NS
! else if (jsIsNS4)
{
var obj1 = inputDoc.images[jsSelectedColor];
Index: do_enter_frameset.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/do_enter_frameset.lib.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** do_enter_frameset.lib.php3 2001/04/20 19:55:47 1.6
--- do_enter_frameset.lib.php3 2001/04/27 18:27:22 1.7
***************
*** 51,55 ****
{
?>
! <frameset cols="100%,*,*" frameborder="0" border="0" framespacing="0" onresize="if (typeof(document.layers) != 'undefined') window.location = '<?php echo($nsResizeUrl); ?>';">
<!-- Visible framesets -->
--- 51,55 ----
{
?>
! <frameset cols="100%,*,*" frameborder="0" border="0" framespacing="0" onresize="if (jsIsNS4) window.location = '<?php echo($nsResizeUrl); ?>';">
<!-- Visible framesets -->
***************
*** 79,83 ****
{
?>
! <frameset cols="*,130" frameborder="0" border="0" framespacing="0" onResize="if (typeof(document.layers) != 'undefined') window.location = '<?php echo($nsResizeUrl); ?>';">
<frameset rows="*,50" border=0>
<frame src="<?php echo(_CHAT_PATH); ?>messages_low.<?php echo(C_EXTENSION . '?' . dbSessionSID('GET')); ?>" name="messages" marginwidth=3 marginheight=3 />
--- 79,83 ----
{
?>
! <frameset cols="*,130" frameborder="0" border="0" framespacing="0" onResize="if (jsIsNS4) window.location = '<?php echo($nsResizeUrl); ?>';">
<frameset rows="*,50" border=0>
<frame src="<?php echo(_CHAT_PATH); ?>messages_low.<?php echo(C_EXTENSION . '?' . dbSessionSID('GET')); ?>" name="messages" marginwidth=3 marginheight=3 />
Index: connect_state.lib.js
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/connect_state.lib.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** connect_state.lib.js 2001/04/19 20:29:44 1.6
--- connect_state.lib.js 2001/04/27 18:27:22 1.7
***************
*** 69,81 ****
}
! if (typeof(document.getElementById) != 'undefined')
{
exitFrm.document.getElementById('imgConState').src = jsImgConnect.src;
}
! else if (typeof(document.all) != 'undefined')
{
exitFrm.document.all['imgConState'].src = jsImgConnect.src;
}
! else if (typeof(document.images) != 'undefined')
{
exitFrm.document.images['imgConState'].src = jsImgConnect.src;
--- 69,81 ----
}
! if (jsIsDOM)
{
exitFrm.document.getElementById('imgConState').src = jsImgConnect.src;
}
! else if (jsIsIE4)
{
exitFrm.document.all['imgConState'].src = jsImgConnect.src;
}
! else if (jsIsNS4)
{
exitFrm.document.images['imgConState'].src = jsImgConnect.src;
***************
*** 110,124 ****
clearTimeout(jsIsConnecting);
! if (typeof(document.getElementById) != 'undefined')
{
if (typeof(exitFrm.document.getElementById('imgConState')) != 'undefined')
exitFrm.document.getElementById('imgConState').src = jsImgConnectOff.src;
}
! else if (typeof(document.all) != 'undefined')
{
if (typeof(exitFrm.document.all['imgConState']) != 'undefined')
exitFrm.document.all['imgConState'].src = jsImgConnectOff.src;
}
! else if (typeof(document.images) != 'undefined')
{
if (typeof(exitFrm.document.images['imgConState']) != 'undefined')
--- 110,124 ----
clearTimeout(jsIsConnecting);
! if (jsIsDOM)
{
if (typeof(exitFrm.document.getElementById('imgConState')) != 'undefined')
exitFrm.document.getElementById('imgConState').src = jsImgConnectOff.src;
}
! else if (jsIsIE4)
{
if (typeof(exitFrm.document.all['imgConState']) != 'undefined')
exitFrm.document.all['imgConState'].src = jsImgConnectOff.src;
}
! else if (jsIsNS4)
{
if (typeof(exitFrm.document.images['imgConState']) != 'undefined')
|
|
From: Lo?c C. <lo...@us...> - 2001-04-26 20:46:16
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/docs
In directory usw-pr-cvs1:/tmp/cvs-serv2226/docs
Modified Files:
translation.txt
Log Message:
Updated the name of the files to translate
Index: translation.txt
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/docs/translation.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** translation.txt 2001/04/26 20:11:41 1.1
--- translation.txt 2001/04/26 20:46:12 1.2
***************
*** 26,33 ****
name of the new language (for example, 'chat/localization/venusian');
- inside this new directory, edit the file you want to do the work for
! ('localized.chat.php3', 'localized.admin.php3' and 'localized.tutorial.php3'
! contain strings used by the main script, the administration script
! and tutorial) and translate all the English strings inside (those which
! appear in "define" instructions);
- you may now add your name and e-mail at the top of the file you have translated;
- then replace the 'flag.gif' icon with the one corresponding to your translation
--- 26,32 ----
name of the new language (for example, 'chat/localization/venusian');
- inside this new directory, edit the file you want to do the work for
! ('chat.loc', 'admin.loc' and 'tutorial.loc' contain strings used by the main
! script, the administration script and the tutorial) and translate all the
! English strings inside (those which appear in "define" instructions);
- you may now add your name and e-mail at the top of the file you have translated;
- then replace the 'flag.gif' icon with the one corresponding to your translation
|
|
From: Lo?c C. <lo...@us...> - 2001-04-26 20:12:43
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv18521/chat/lib
Modified Files:
smilies.lib.php3
Log Message:
Added the ability to associate a reserved smiley to a registered user
Index: smilies.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/smilies.lib.php3,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** smilies.lib.php3 2001/04/24 11:25:29 1.8
--- smilies.lib.php3 2001/04/26 20:12:26 1.9
***************
*** 36,39 ****
--- 36,43 ----
* - the smilies codes are used in a case sensitive way ('a' and 'A' are
* different).
+ *
+ * Note that the code ':mine:' is reserved: it will be replace by a gif smiley
+ * which name is the nick of the user if you put such one inside the
+ * 'chat/image/smilies' subdirectory and if the usrs is a registered one.
*/
$smilies = array(
***************
*** 121,130 ****
--- 125,139 ----
*
* @global array the smilies array
+ * @global array the session data
*
* @access public
+ *
+ * @todo ensure all invalid characters for file names have been checked
+ * before to use the 'getImageSize()' function
*/
function pmcCheckForSmilies(&$string)
{
global $smilies;
+ global $dbSessionVars;
// Sort the smilies array in a convenient order
***************
*** 159,162 ****
--- 168,178 ----
$substring = str_replace(' ' . $modifiedKey . ' ', ' <img src="images/smilies/' . $prop[0] . '" width="' . $prop[1] . '" height="' . $prop[2] . '" alt="' . str_replace('"', '"', stripslashes($key)) . '" /> ', $substring);
}
+ }
+ // Reserved smilies for registered users
+ if (!empty($dbSessionVars['pwdHash'])
+ && !ereg('[/:\*?"<>|]', $dbSessionVars['nick'])
+ && ($prop = getImageSize('./images/smilies/' . $dbSessionVars['nick'] . '.gif')))
+ {
+ $substring = str_replace(' :mine: ', ' <img src="images/smilies/' . $dbSessionVars['nick'] . '.gif" width="' . $prop[0] . '" height="' . $prop[1] . '" alt="' . str_replace('"', '"', $dbSessionVars['nick']) . '" /> ', $substring);
}
$tmp[$i] = substr($substring, 1, strlen($substring) - 2);
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/docs
In directory usw-pr-cvs1:/tmp/cvs-serv18232/docs
Added Files:
translation.txt install.txt help.txt feedback.txt database.txt
credits.txt copying.txt changes.txt bug_report.txt
Log Message:
Initial commit for the 0.15 release documentation dir
--- NEW FILE ---
-----------------------
Translating phpMyChat
-----------------------
If you can translate phpMyChat in a language that is not included in the
package or improve/complete an existing translation, please do so and send us back the
files. They will be included in the next release with credits for you, of
course.
Four parts of phpMyChat may be translated : the strings used
during a chat discussion, the tutorial, the string used by the administration
script and the strings used for the setup process.
How to translate phpMyChat ?
""""""""""""""""""""""""""""
The most important ones are the first three file in the list before. Among them:
- if you have not much time just translate the first one (used by the main script);
- if you have a little more time translate the third one (used by the admin script);
- if you still have some free time, translate the second one (the tutorial).
To create a new translation for phpMyChat:
- duplicate the 'chat/localization/english' sub-directory and rename it with the
name of the new language (for example, 'chat/localization/venusian');
- inside this new directory, edit the file you want to do the work for
('localized.chat.php3', 'localized.admin.php3' and 'localized.tutorial.php3'
contain strings used by the main script, the administration script
and tutorial) and translate all the English strings inside (those which
appear in "define" instructions);
- you may now add your name and e-mail at the top of the file you have translated;
- then replace the 'flag.gif' icon with the one corresponding to your translation
(same format, please).
To improve/complete a translation: just edit the corresponding file from the
'chat/localization/yourlang' sub-directory and do the work.
Lastly, if you don't know what to do all day long, you can translate the
setup process. The work to do is the same than the one described before, except that it
applies to only one file located in the 'chat/setup/languages' sub-directory.
--- NEW FILE ---
--------------------
Installation Guide
--------------------
Requirements
""""""""""""
PHP 3.x or greater
A web server supported by PHP (Apache is most widely used)
A database with adequate support compiled into PHP
Installation
""""""""""""
The most common method of installing phpMyChat is to grab the archive,
unzip it somewhere and run through the code making all the changes you need.
Here is the process:
1) Obtain phpmychat*.zip
2) unzip it into the directory you want
3) Make sure your directory structure is like this:
chat/
chat/config
chat/images
chat/images/smilies
chat/install
chat/install/databases
chat/install/languages
chat/lib
chat/lib/commands
chat/lib/database
chat/localization
chat/localization/*
chat/tutorials
docs/
4) Before updating from an older version of phpMyChat, clean the messages table
(using the 'chat/admin.php3' script of the old version, for example).
5) Then you have two possibilities :
a) Use the online configuration tool by accessing 'chat/setup.php3'
b) Do it manually. Move into 'chat/config' directory and make changes to the
config.lib.php3 file. This file is well documented, so you should be able to
pick out what you need to change fairly easily.
6) Once all this has been done, you should protect the config file (that contains
your login/password for db access). Look at your server documentation to find out
how to do this.
For the Apache server, you'll need to create an ".htaccess" file (without quotes) in
the config subdir that contains:
<files config.lib.php3>
Order Deny,Allow
Deny From All
</files>
7) Add more languages by downloading them on phpHeaven, and put the directories
in chat/localization/
--- NEW FILE ---
--------------
Getting Help
--------------
There is a web page for phpMyChat at http://www.phpheaven.net/
There is also a mailing list php...@eg... to which you can subscribe
by sending a blank email to php...@eg...
--- NEW FILE ---
-----------------
Giving feedback
-----------------
Found a Bug?
""""""""""""
If you have found a bug you can help us!
Please have a look at the 'docs/bug_report.txt' file.
How to Help Us?
"""""""""""""""
There are many ways in which you can help out in the development of
phpMyChat.
The first and best way you are already doing. You are using, or trying to use, it.
One of the keys to a great product is its users. Without users we can't
find bugs or get feedback on what's good and what sucks.
There are also certain areas that need improvement, especially databases.
... and English documentation authoring. :)
Lastly you can translate phpMyChat or complete/improve existing tanslations
(see translation.txt in the 'docs' dir).
--- NEW FILE ---
-----------
Databases
-----------
The goal is not to help you setup your database for general use,
just how to setup the tables for phpMyChat.
Requirements
""""""""""""
phpMyChat currently supports 3 types of database :
MySql
PostgreSQL
ODBC
MySql is the original database supported by phpMyChat and should at
all times (most likely) work for sure.
You will need to have your database preconfigured and working on
your system before you get to this stage. For help with this, please
consult your database specific help files.
Installation
""""""""""""
You will need to setup 3 tables.
The database name itself can be anything but the best name for it is
just 'phpmychat'.
The table names also can be changed; but by leaving them to what is
shown, you'll have one less step later on.
For those who want to change table names, you'll also need to change
the values for each within the 'chat/config/config.lib.php3' file.
Table creation scripts are in the 'chat/install/databases' directory.
--- NEW FILE ---
----------------------------
phpMyChat Development Team
----------------------------
Core developers
"""""""""""""""
Nicolas Hoizey <nh...@ph...>
Initial concepts and design
Bugs fix
Documentation
Loïc Chapeaux <lo...@ph...>
JavaScript enhancements
IRC-style commands
Easy installation process
Bugs fix
Matthieu Belge <mb...@fr...>
Great Perl-like regular expressions
Martin Dvorak <je...@pe...>
HTML tags parsing in messages
User registration
Administration
Commands
Bugs fix
Christian Hacker <c.h...@dr...>
Mail feature for the administrator
Localization
""""""""""""
Arabic : Khalid Aljabri <we...@ya...>
Bosnian : Nermina Akkaya <Se...@bo...>
Brazilian-Portuguese : Fabiano R. Prestes <zo...@po...>
Catalan & Andoran : Jan Arbona <ja...@my...>
Chinese simplified : BoyStudio <zr...@37...> and <kd...@37...>, Che Dong <ch...@ye...>
Chinese traditional : Wei Shou-da <sh...@ms...>, Vincent Liao <vi...@ro...>
Croatian : Vlatko Ko¹turjak <ko...@in...>
Czech : Martin Dvorak <je...@pe...>
Danish : Jonas Koch Bentzen <po...@jo...>
Dutch : Hans Paijmans <pa...@ku...>, Kasper Souren <gu...@in...>,
Sander Corbesir <ro...@ja...>
English : Nicolas Hoizey <nh...@ph...>
Estonian : Tarmo Protsin <ta...@gt...>
Finnish : Jani Peltola <web...@me...> & Veli-Pekka Yliniemi <ga...@zo...>
French : Loïc Chapeaux <lo...@ph...>
French-Canadian : Guylhem Aznar <gu...@me...>
Georgian : George Gongadze <web...@ge...>
German : Bernard Piller <be...@bm...>, Silke Oettle <si...@be...>,
Martin Sander <Mar...@to...>, Robert Schaller <ro...@sc...>,
Wolfgang Schneider <sch...@bi...>, Michael Schoening <m.s...@ti...>
Greek : Nikos Kyriakidis <nik...@ho...>
Icelandic : Andri Óskarsson <an...@bo...>
Italian : Andrea D'Alessandro <an...@ab...>, Massimo Fubini <ma...@to...>
Giuliano Yurij Beccaria <yu...@e-...>, Marco Borrini <mar...@tr...>,
Bartolotta Gioachino <dev...@ro...> & Silvia M. Carrassi <si...@la...>
Japanese : Yosuke Hamamoto <yo...@ke...>
Korean : Hongki Lee <ge...@ma...> & TaeHwan Bae <bt...@ha...>
Malay : Nazri Hussain <na...@mi...>
Norwegian : Arne Brune Olsen <ro...@ro...>
Polish : Piotr Gapiñski <na...@po...>, Krzysztof Szatanik (Diablo/MAO) <di...@li...>
Portuguese : Gustavo Felisberto <hum...@d-...>, Jose' Carlos Pereira <php...@ab...>
Romanian : Ciprian Popovici-Oana <fl...@ke...>, Radu Swider <sw...@sa...>
Russian : Stas Gobunov <st...@ko...>, Alexei Shalin <hap...@to...>
& Dim Zegebart <ke...@rb...>
Slovak : Peter Belak <pe...@po...>, Marek Rybar <web...@sa...>
& Richard Marko <sp...@fe...>
Spanish : Alejandro G. Bitran <aga...@pa...>, Caridad Z. Contreras <zz...@ql...>
Pedro Garassino <pe...@dk...> & Victor M. Varela
Swedish : Martin Edelius <mar...@sp...>
Thai : Patrice Thiroloix <ke...@fr...>
Turkish : Hasan Ucar <web...@me...>
Database Specific Code
""""""""""""""""""""""
Nicolas Hoizey <nh...@ph...>
MySQL library
Martin Dvorak <je...@pe...>
PostgreSQL library
J. "Guli" Mikulas <gu...@em...>
ODBC library
--- NEW FILE ---
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
--- NEW FILE ---
--------------------
Releases follow up
--------------------
This file presents the evolutions of phpMyChat for each release.
v 0.15.0 - 26/04/2001
"""""""""""""""""""""
TABLES HAVE BEEN UPDATED !!!
ENHANCEMENT : a custom database driven session system has been added to enforce security
and also to beautify the script ;)
ENHANCEMENT : all the scripts have been rewritten in order to fit some basic coding
standards and to produce valid XHTML1.0 pages.
ENHANCEMENT : the DHTML code parts have been rewritten in order to be DOM-compliant.
As a result, phpMyChat works far better with Mozilla M18 (and the should
also with Netscape 6).
ENHANCEMENT : with the new command '/img' the user can choose to display graphical
smilies or text codes thanks to an original piece of code from
Tinou <ti...@ti...>.
ENHANCEMENT : the way to add your own smilies is far more easier : you no long need to
bother about POSIX 1003.2 special characters.
ENHANCEMENT : a reserved smiley can be associated to a registered user thanks to an
idea from Tinou <ti...@ti...>.
BUG FIXED : many JavaScript bugs have been fixed in this release.
v 0.14.3 - 21/04/2001
"""""""""""""""""""""
ENHANCEMENT : clicking on the connection status button (at the 'exit' frame) if it turns
to red now frees the submit button at the 'input' frame.
ENHANCEMENT : gender of the user is displayed in the users list rather than the whois
icon.
ENHANCEMENT : some translations have been completed and Malay has been added.
ENHANCEMENT : a bug report form has been added in the 'docs' directory.
BUG FIXED : an important security fix has been merged into this release thanks to a
contributor we don't know the name.
BUG FIXED : overlapped chat name rooms with Netscape 4+.
BUG FIXED : the 'refresh' header is not a valid one according to RFC specifications:
it's actually just an HTML one, then it has been moved back in an HTML meta
tag.
CHANGE : the 'C_BAD_WORDS' setting has been renamed to 'C_NO_SWEAR' in the
configuration file.
v 0.14.2 - 24/02/2001
"""""""""""""""""""""
ENHANCEMENT : the function to optimize tables with PostgreSQL has been implemented thanks
to Peter Hasko <pe...@fe...> & 'spirit' <sp...@fe...>.
ENHANCEMENT : all the default public rooms are displayed in the users list, even empty
ones.
ENHANCEMENT : the IRC like '/me' command has been added.
ENHANCEMENT : Some translations have been completed; Estonian and Turkish ones have
been added.
v 0.14.1 - 28/12/2000
"""""""""""""""""""""
ENHANCEMENT : all the JavaScript work has been rewritten to ensure a better compatibility
with old browsers.
ENHANCEMENT : a second hidden frame handles what is sent by the user at the 'input' frame
to reduce the server work.
ENHANCEMENT : the way smilies are taken into account has been rewritten to make it easier
to add your own ones.
ENHANCEMENT : the red color for message is reserved to the administrator and the moderators
of the current room thanks to Christian Hacker <c.h...@dr...>.
ENHANCEMENT : Add the ability to have a translated caption for the submit button in the input
frame thanks to Khalid Aljabri <we...@ya...>.
ENHANCEMENT : A separator has been added between the messages sent 'today' and the oldest
ones.
ENHANCEMENT : Notification messages for exit when an user is kicked or banished are explicit.
ENHANCEMENT : a mail sending feature has been added to the administration sheets thanks to
Christian Hacker <c.h...@dr...>.
ENHANCEMENT : Far better support for right-to-left written languages thanks to
Khalid Aljabri <we...@ya...>.
ENHANCEMENT : Some translations have been completed and Catalan has been added.
BUG FIXED : when inviting an user whose nick contains a single quote, a SQL error occurs.
BUG FIXED : when banishing an user 'forever', PostgreSQL send an out of range error.
And test for banishment doesn't run for private rooms (except when user
tries to enter this private room from the 'join' command).
BUG FIXED : clicking on an message sender name kills the message frame appending work.
BUG FIXED : lots of problems with the 'invite' command when it used inside a private room.
BUG FIXED : users aren't deleted from the users list/table when they use the 'exit' command
to leave the chat.
BUG FIXED : a stupid mistake in e-mail validation for the registration and modification of
the profiles.
CHANGE : the first and second administration scripts have been rewritten to become more
usable.
v 0.14.0 - 29/11/2000
"""""""""""""""""""""
Thanks a lot to all beta users who helped us making this release stable and so featured,
and to all translators we give a lot of work.
Despite a lot of debug, there are still problems with Mac version of
Internet Explorer 5 ...
TABLES HAVE BEEN UPDATED !!!
ENHANCEMENT : for DHTML enabled browsers, added a hidden frame that checks for new
messages and changes to the users' list. This also allows for much
faster, non-blinking appearance of new messages.
Under these conditions, the state of the connection to the database
is displayed in a changing color icon form.
ENHANCEMENT : the script now grabs the IP of users (and attempts to find the 'true' IP when
the user is behind a proxy). Only the administrator or moderators of
default rooms (those defined in 'chat/config.lib.php3') can see this
information in the whois popup.
ENHANCEMENT : a banishing feature (by IP and nick) has been added.
ENHANCEMENT : the admin script has been rewritten to take into account banished users.
ENHANCEMENT : you can now choose to generate a password and send it to the e-mail user
address during the regsitration process. Thanks to
Jose' Carlos Pereira <php...@ab...>.
ENHANCEMENT : e-mail validation is now much accurate according to the RFC822 (but maybe not
fully compliant).
ENHANCEMENT : the administrator may kick an user whatever is the room this user is chatting
into.
ENHANCEMENT : a little clickable icon has beeen added before the nick of registered users in
the users list. Such a click will display the whois popup for the users,
unless the user clicks on the icon corresponding to his own nick. In
that case, the profile command for that user will be run.
ENHANCEMENT : all nicks, except for the current user, are now 'clickable' in the users frame,
even those of users chatting in others rooms.
ENHANCEMENT : all nicks of senders in the messages frame are now 'clickable'. Such a click
will add the command for private messages to the clicked user in the
input box (credit for the idea goes to 'lion_cool').
ENHANCEMENT : private messages become again room dependant but the '/invite' command has been
created to invite an user to join the current room of the message
sender.
ENHANCEMENT : commands are now clickable in the help popup (credit for the idea goes to
Ray Lopez <kai...@ho...>).
ENHANCEMENT : settings for the save command have been modified so the administrator can
specify a maximum number of messages to be exported.
ENHANCEMENT : the javascript stuff to avoid multiple submission of the input frame has
been improved.
ENHANCEMENT : Some rooms name may be reserved for private rooms in the config file (credit
for this idea goes to Michael Newlyn Blake <mb...@fr...>).
ENHANCEMENT : Autocompletion of forms under IE has been set to off.
ENHANCEMENT : added gender information to the registered users profiles.
ENHANCEMENT : take into account languages that are written from the right to the left.
ENHANCEMENT : Some translations have been completed and three added (French Canadian, Bosnian
and Arabic).
BUG FIXED : lots of bugs under IE5 for Mac have been fixed thanks to
Paul Brejla <pa...@ju...>.
BUG FIXED : huge debugging of the way the status of users is defined.
CHANGE : languages detection system has been rewritten that it will be easy to add
or remove translations.
CHANGE : code for persistent connection mode has been removed because of an
unfixable bug.
CHANGE : javascript alert box is no longer displayed when a promote command runs
succesfully.
CHANGE : all system messages are now stored in the same way in the messages table.
The user name is 'SYS xxx' where xxx stands for the action (enter,
exit, promote, delusr, announce, inviteTo and inviteFrom).
v 0.13.3 - 10/10/2000
"""""""""""""""""""""
ENHANCEMENT : For MySQL database, the OPTIMIZE function is called by the
'admin.php3'script.
ENHANCEMENT : Many cosmetic changes in the help popup (clicking smilies,
position of the popup...) thanks to
Laurent BRANCALEONI <l.b...@is...>.
ENHANCEMENT : The administrator can always see the e-mail address of an user in
the whois popup thanks to Tinou <ti...@ti...>.
ENHANCEMENT : Added a command to save messages in a local HTML file thanks to
Tinou <ti...@ti...>. This feature can be enabled in the
config file.
ENHANCEMENT : Private messages are no more room dependant; i.e., you can send such a
message to an user who chats in an other room than the one you
are in.
ENHANCEMENT : Added a test to avoid twice submitted messages.
ENHANCEMENT : Code for persistent connections in messages.php3 have been put in
an independant file to reduce the parsing work for the
server.
ENHANCEMENT : A message is displayed when the English tutorial is loaded because
there is no translation.
ENHANCEMENT : Some translations have been completed and a new one has been added
(Georgian).
BUG FIXED : 'require' and 'include' paths have been modified to take into account
the case in which 'include_path var' is defined in the PHP config
file thanks to Laurent BRANCALEONI <l.b...@is...>.
BUG FIXED : the $PWD variable used in some of the scripts may be owerwriten by
the PHP-ENV-Variable $PWD when track_vars option is enabled.
CHANGE : the 'chat/link.php3' script has been renamed to 'chat/link.htm.'
CHANGE : the message sent by the promote command is no longer private.
CHANGE : the 'chat/command.php3' file has been renamed and moved to the 'chat/lib'
directory.
CHANGE : an independant script for the translation from text codes to graphical
smilies into messages has been created and put in 'chat/lib'
directory so it will be easier to modify the list of smilies
used by the script.
v 0.13.2 - 20/09/2000
"""""""""""""""""""""
ENHANCEMENT : Added a tutorial that users may launch from the start screen thanks to
Sharif Islam <mi...@st...>
& Jessica Gibson <or...@ui...>.
ENHANCEMENT : All the scripts have been well documented, so you should be able to
change them according to your wants fairly easily.
ENHANCEMENT : Join command and index.lib.php3 have been rewriten together in order
to reduce the number of SQL queries.
ENHANCEMENT : Add a beep feature in users popup for notification of user entrance.
ENHANCEMENT : Message from the system (notification of user entrance/exit, promotion
to moderator...) are now all language dependant.
ENHANCEMENT : Replaced the drop down list for message color by a color picker for
JavaScript1.1+ enabled browsers thanks to
Tomas Haluza <th...@ki...>, else display the drop down list.
ENHANCEMENT : Added a 'swear words' filter thanks to Gustavo Iwamoto <iw...@za...>
and Fabiano R. Prestes <zo...@po...>
ENHANCEMENT : Added persistent connection mode that allows much faster and non-blinking
appearance of new messages thanks to Jezek2 of the phpHeaven Team.
ENHANCEMENT : Added an undocumented command to lauch the help popup : /help or /?
ENHANCEMENT : ignored nicks are dynamicaly displayed in the ignored popup.
ENHANCEMENT : Setup process to automatically check for administrator language at startup.
ENHANCEMENT : three more translations (Croatian, partial Korean and some Japanese words).
BUG FIXED : some problems of compatibility with php4 have been solved using
associated arrays for input data (POST, GET, cookies, environment and
other server variables).
BUG FIXED : on the start page, links for registering and admin stuff lacks of the
chat path for javascript non-enabled browsers.
BUG FIXED : users list in users frame and users popup is now well displayed under
Netscape Navigator.
BUG FIXED : user can no longer chat in two rooms at the same time with the same nick.
BUG FIXED : user will be automatically connected again when they resize the main
window with Netscape.
BUG FIXED : bad link was displayed in whois popup when the user had registered an
url without the "http://" prefix.
BUG FIXED : list of nicks separated by a comma wasn't working in the ignore command.
BUG FIXED : cookies didn't work the way they should because of invalid
specifications.
CHANGE : the readme.txt file and the whole 'docs' dir have been put to the root
of the package.
v 0.13.1 - 21/07/2000
"""""""""""""""""""""
ENHANCEMENT : rewrite of the "easy configuration" process. It now allows
a choice of interface languages. Also a far better English
syntax thanks to Martin Edelius <mar...@sp...>.
v 0.13.0 - 20/07/2000
"""""""""""""""""""""
Huge debugging of the whole script and enhancements, thank to
Lolo and Jezek2 of the phpHeaven Team,
Alexei Shalin <sys...@do...>,
Dean Lin <de...@xl...>,
Martin Edelius <mar...@sp...>,
Charles <web...@pi...>,
Sébastien BERNARD <sbe...@mo...>,
and many other people with great ideas ...
BUG FIXED : a private message containing a comma gave an error
BUG FIXED : when a registered user called the join command or clicked
on a room name at the users frame, the value of the php variable
that contained the password was automatically changed so it no
longer corresponded to the password stored in the database.
BUG FIXED : an user who didn't quit phpMyChat in a clean way and who
was then kicked by the admin or a moderator never was
removed from the database.
BUG FIXED : problems with IE when messages with iso-8859-1 special
characters were typed in on a non iso-8859-1 charset
BUG FIXED : bad regular expressions to exclude some special
characters from users and rooms name in 'index.php3',
'register.php3', 'edituser.php3'...
BUG FIXED : bad number of message displayed in the message frame when
notification was off
BUG FIXED : when no messages were available and notify was off,
the 'no message' text wasn't displayed
BUG FIXED : because of notifications, rooms created by users were always
displayed in the start page even if there was no "true"
message into.
ENHANCEMENT : new lib to add the number or list of users connected to any
of your own pages
ENHANCEMENT : new lib to add the chat connexion layout to your own page
ENHANCEMENT : registered users can now log with the same nick even if they
weren't deleted from db.
ENHANCEMENT : rewrite of the "easy configuration" process that allows now
to update database from previous releases (0.12.0 & 0.12.1)
ENHANCEMENT : from the admin script, you can now delete rooms. And registered
users who haven't login for a delay defined in config file
may be automatically deleted.
ENHANCEMENT : status of users (admin or moderator/other) are now displayed
in user list
ENHANCEMENT : you can set a timezone offset between server time and your
country in config file.
ENHANCEMENT : server time is now displayed in status bar if user choose to
show timestamps before messages.
ENHANCEMENT : new command '/promote'
ENHANCEMENT : database structure and access optimisation
ENHANCEMENT : in the config file, a switch allows to show/hide the delete
profile link at the start page
ENHANCEMENT : three more translations (swedish, romanian and greek)
CHANGE : commands have been separated in multiple files, one for each
CHANGE : commands in help popup are now ordered alphabetically
v 0.12.1 - 13/06/2000
"""""""""""""""""""""
BUG FIXED : database query error while kicking an user.
v 0.12.0 - 12/06/2000
"""""""""""""""""""""
Huge revalidation of the whole script.
ENHANCEMENT : a registration procedure is available for users, and you can
choose to allow only regitered users, or not, with a switch in
config file (optional registration is default).
ENHANCEMENT : administrator functionalities have been created. You can put
a link to run them at the first screen of the chat
with a switch in config file (default is disabled).
ENHANCEMENT : multi-language stuff can be disabled with a switch in config
file (default to enabled).
ENHANCEMENT : notifications are added to message tables when users log in or
exit. A switch in config file set them displayed or not to
default.
ENHANCEMENT : more commands (true private messages, whois popup,
kick for the administrator of a room, profile to edit his
own one, notify to show/hide notifications).
ENHANCEMENT : a php setup file has been added to simplify phpMyChat
installation.
ENHANCEMENT : help popup now contains some lines for text formatting elements.
ENHANCEMENT : all "_top" targets in link tags and top objects in javascript
functions have been replaced by "_parent".
ENHANCEMENT : more translations.
BUG FIXED : style sheet problem in link frame with Netscape Navigator.
v 0.11.2 - 30/05/2000
"""""""""""""""""""""
ENHANCEMENT : when users forget to choose a room, they are logged
into the first default room
ENHANCEMENT : more translations
BUG FIXED : error when single quotes are included in messages
v 0.11.1 - 18/05/2000
"""""""""""""""""""""
BUG FIXED : error in PostgreSQL library
BUG FIXED : style sheet problem in help popup
BUG FIXED : language translation corrections
v 0.11.0 - 17/05/2000
"""""""""""""""""""""
ENHANCEMENT : more IRC-like commands, thanks to
Loïc Chapeaux <loi...@ne...>
ENHANCEMENT : user can now chose the interface language, thanks to
Loïc Chapeaux <loi...@ne...>
BUG FIXED : PERL-like regular expressions used only if they are supported
BUG FIXED : database connections number minimized to avoid errors
v 0.10.3 - 28/04/2000
"""""""""""""""""""""
BUG FIXED
v 0.10.2 - 28/04/2000
"""""""""""""""""""""
ENHANCEMENT : now supports some IRC-like commands, thanks to
Loïc Chapeaux <loi...@ne...>
v 0.10.1 - 21/04/2000
"""""""""""""""""""""
BUG FIXED : moving to another room was impossible
CHANGE : available languages shown on index page as flags
v 0.10.0 - 19/04/2000
"""""""""""""""""""""
A LOT OF CHANGES, YOU MUST MODIFY YOUR TABLES IN THE DATABASE !!!
ENHANCEMENT : now supports PostgreSQL database, thanks to
Martin Dvorak <je...@pe...>
ENHANCEMENT : now supports ODBC, thanks to J. "Guli" Mikulas <gu...@em...>
ENHANCEMENT : now accepts some HTML tags in messages (configurable), thanks to
Martin Dvorak <je...@pe...> and Matthieu Belge <mb...@fr...>
CHANGE : more and more options in config/config.lib.php3 !!!
v 0.9.2 - 14/04/2000
""""""""""""""""""""
LANGUAGE : Czech by Martin Dvorak <je...@pe...>
v 0.9.1 - 14/04/2000
""""""""""""""""""""
BUG FIXED : Users in private rooms were counted on index page
ADDITION : First release with '*.txt' files
v 0.9.0 - 13/04/2000
""""""""""""""""""""
ENHANCEMENT : Messages order chosable by the user, default one chosen by admin
LANGUAGE : Thai by Patrice Thiroloix <ke...@fr...>
v 0.8.0 - 03/04/2000
""""""""""""""""""""
v 0.7.0 - 09/03/2000
""""""""""""""""""""
CHANGE : configuration done with constants instead of variables
ENHANCEMENT : now works with PHP4
ENHANCEMENT : list of users in a popup
ENHANCEMENT : language now configurable, English and French available
v 0.1.0 - ?
"""""""""""
First release, so no bugs, no changes and no enhancements !!! :D
--- NEW FILE ---
To report bugs, either do it at the 'Bug Tracking System' from our
SourceForge account (http://phpmychat.sorceforge.net/) either fill the form
below and send it to the php...@ya... e-mail address.
Please be as descriptive as possible. You may think it's something that
affects everyone, but a many times it's specific to a browser or
operating system. So please be thorough. In the case of Bug Tracking,
there is *never* too much information or documentation or description.
Thanks for your help,
the phpHeaven-team
+--------------------------------------------------------------------------+
| phpMyChat version 0.15.0 - dev |
+--------------------------------------------------------------------------+
| The server side: |
| - Operating system and release number: |
| - the server name and release number: |
| - the php version that is running: |
| - the database management system name and release number that is |
| running: |
| |
| The client side: |
| - Operating system and release number: |
| - the browser name and release number: |
+--------------------------------------------------------------------------+
| A brief description of the bug you faced: |
| |
| |
| |
+--------------------------------------------------------------------------+
| Details: |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------------+
|
|
From: Lo?c C. <lo...@us...> - 2001-04-26 20:10:37
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/docs In directory usw-pr-cvs1:/tmp/cvs-serv17471/docs Log Message: Directory /cvsroot/phpmychat/phpMyChat-0.15/docs added to the repository |
|
From: Lo?c C. <lo...@us...> - 2001-04-24 19:07:53
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv31935/chat/lib
Modified Files:
format_messages.lib.php3
Log Message:
First draft of an improved url detection
Index: format_messages.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/format_messages.lib.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** format_messages.lib.php3 2001/04/19 21:05:04 1.6
--- format_messages.lib.php3 2001/04/24 19:07:50 1.7
***************
*** 33,38 ****
*
* @global array the session data
*/
! function checkColor(&$theColor)
{
global $dbSessionVars;
--- 33,40 ----
*
* @global array the session data
+ *
+ * @access private
*/
! function pmcCheckColor(&$theColor)
{
global $dbSessionVars;
***************
*** 42,46 ****
&& !($dbSessionVars['status'] == 'a' || $dbSessionVars['status'] == 'm'))
$theColor = '#000000';
! } // end of the 'checkColor()' function
--- 44,91 ----
&& !($dbSessionVars['status'] == 'a' || $dbSessionVars['status'] == 'm'))
$theColor = '#000000';
! } // end of the 'pmcCheckColor()' function
!
!
! /**
! * Check messages parts that should be transformed to html links (links must be
! * stricly compliant with the RFC 2396)
! *
! * @param string the message
! *
! * @access private
! */
! function pmcCheckLinks(&$str)
! {
! // Defines the regular expressions to search for
! $reserved = '[;/?:@&=+$,]';
! $unreserved = '[a-z0-9\-_\.!~*\'()]';
! $escaped = '%[a-z0-9]{2}';
! $uric = "($reserved)|($unreserved)|($escaped)";
!
! // urls except 'news:'
! $scheme = '(http|https|ftp|telnet|gopher|file|wais)://';
! $user = "(($unreserved)|($escaped)|[;:&=+$,])+@";
! $host = "[a-z0-9]([a-z0-9]|$escaped|[\-\.])*[a-z0-9]";
! $port = ':([0-9]+)';
! $path = "/(($unreserved)|($escaped)|[:@&=+$,]|[/;])*";
! $query = "\?($uric)*";
! $fragment = "#($uric)*";
! $urlPattern = "$scheme(($user)?$host($port)?($path)?($query)?($fragment)?)";
!
! // 'news:' urls
! $scheme = 'news:';
! $host = "[a-z0-9]([a-z0-9]|$escaped|[\-\.])*[a-z0-9]";
! $newsPattern = "$scheme($host)";
!
! // e-mails
! $scheme = 'mailto:';
! $host = '[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?';
! $mailPattern = "($scheme)?($host)";
!
! // Do the work
! $str = eregi_replace($urlPattern, '<a href="\\1://\\2" target="_blank">\\1://\\2</a>', $str);
! $str = eregi_replace($newsPattern, '<a href="news:\\1" target="_blank">\\1</a>', $str);
! $str = eregi_replace($mailPattern, '<a href="mailto:\\2" target="_blank">\\2</a>', $str);
! } // end of the 'pmcCheckLinks()' function
***************
*** 57,60 ****
--- 102,107 ----
*
* @global boolean whether the current character set is 'iso-8859-1' or not
+ *
+ * @access private
*/
function formatMessage($theMessage)
***************
*** 63,67 ****
// Ensure color is valid
! checkColor($GLOBALS['color']);
// Remove swearings
--- 110,114 ----
// Ensure color is valid
! pmcCheckColor($GLOBALS['color']);
// Remove swearings
***************
*** 105,119 ****
}
}
-
- // URLs
- // no prefix (www.myurl.ext) -> add 'http://'
- $theMessage = eregi_replace('([[:space:]]|^)(www)', '\\1http://\\2', $theMessage);
- // creates html link
- $prefix = '(http|https|ftp|telnet|news|gopher|file|wais)://';
- $pureUrl = '([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)';
- $theMessage = eregi_replace($prefix . $pureUrl, '<a href="\\1://\\2" target="_blank">\\1://\\2</a>', $theMessage);
! // e-mail addresses
! $theMessage = eregi_replace('([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)', '<a href="mailto:\\1">\\1</a>', $theMessage);
// transform ISO-8859-1 special characters
--- 152,158 ----
}
}
! // Build html links from the message
! pmcCheckLinks($theMessage);
// transform ISO-8859-1 special characters
|
|
From: Nicolas H. <nh...@us...> - 2001-04-24 18:39:25
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv25373
Modified Files:
users_popup_low.php3 users_popup.php3
Log Message:
typo error in user count
Index: users_popup_low.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup_low.php3,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** users_popup_low.php3 2001/04/21 19:38:28 1.12
--- users_popup_low.php3 2001/04/24 18:39:22 1.13
***************
*** 271,275 ****
while (list($roomName, $usersIn) = each($allRooms))
{
! $usersInCnt = count($usersInCnt);
reset($usersIn);
for ($k = 0; $k < $usersInCnt; $k++)
--- 271,275 ----
while (list($roomName, $usersIn) = each($allRooms))
{
! $usersInCnt = count($usersIn);
reset($usersIn);
for ($k = 0; $k < $usersInCnt; $k++)
Index: users_popup.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup.php3,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** users_popup.php3 2001/04/21 19:38:28 1.13
--- users_popup.php3 2001/04/24 18:39:22 1.14
***************
*** 279,283 ****
while (list($roomName, $usersIn) = each($allRooms))
{
! $usersInCnt = count($usersInCnt);
reset($usersIn);
for ($k = 0; $k < $usersInCnt; $k++)
--- 279,283 ----
while (list($roomName, $usersIn) = each($allRooms))
{
! $usersInCnt = count($usersIn);
reset($usersIn);
for ($k = 0; $k < $usersInCnt; $k++)
|
|
From: Lo?c C. <lo...@us...> - 2001-04-24 11:27:07
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv8153
Modified Files:
help_popup.php3
Log Message:
The js function that put smilies codes in the "message box" has been reveised in order to add space characters before and after these codes if required
Index: help_popup.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/help_popup.php3,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** help_popup.php3 2001/04/20 19:55:07 1.9
--- help_popup.php3 2001/04/24 11:27:05 1.10
***************
*** 124,128 ****
addTo = pmcTargetWin();
if (addTo && !addTo.closed)
! addTo.document.forms['inputForm'].elements['message'].value += code;
}
} // end of the 'pmcSmiley2Input()' function
--- 124,134 ----
addTo = pmcTargetWin();
if (addTo && !addTo.closed)
! {
! oldStr = addTo.document.forms['inputForm'].elements['message'].value;
! oldStrLength = oldStr.length;
! if (oldStr != '' && oldStr.substring(oldStrLength - 1, oldStrLength) != ' ')
! code = ' ' + code;
! addTo.document.forms['inputForm'].elements['message'].value += code + ' ';
! }
}
} // end of the 'pmcSmiley2Input()' function
***************
*** 247,252 ****
<?php
}
! // $jsVersion value is 'high' for dynamic rendering of the messages frame, 'low'
! // or 'medium' in other case
if ($jsVersion == 'high')
{
--- 253,258 ----
<?php
}
! // $jsVersion value is 'high' for dynamic rendering of the messages frame,
! // 'noJs', 'low' or 'medium' in other case
if ($jsVersion == 'high')
{
|
|
From: Lo?c C. <lo...@us...> - 2001-04-24 11:25:32
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv7947/lib
Modified Files:
smilies.lib.php3
Log Message:
Comments about the smilies array have been revised
Index: smilies.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/smilies.lib.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** smilies.lib.php3 2001/04/24 10:57:22 1.7
--- smilies.lib.php3 2001/04/24 11:25:29 1.8
***************
*** 30,36 ****
* The table below define smilies' codes and associated gif names, width and
* height.
! * You may add your own collection of smilies inside but be aware that the
! * single quote and the backslash characters must be backslashed.
! * Moreover these codes are case sensitive.
*/
$smilies = array(
--- 30,39 ----
* The table below define smilies' codes and associated gif names, width and
* height.
! * You may add your own collection of smilies inside but be aware that:
! * - space characters in smilies codes leads to impredictible results;
! * - the single quote and the backslash characters must be backslashed in
! * smilies codes;
! * - the smilies codes are used in a case sensitive way ('a' and 'A' are
! * different).
*/
$smilies = array(
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/images/smilies In directory usw-pr-cvs1:/tmp/cvs-serv4057/images/smilies Added Files: tux.gif smoke.gif my2cents.gif good.gif flower.gif coffee.gif bignose.gif bad.gif Log Message: A really improved (and simplificated for the user) handdling smilies work --- NEW FILE --- GIF89a «k\ceeãÂÿ±Z1R¥É×4^C)Ó$V¢±ÁÃÈ!´0¢hÏL2ñ` 8hÚðÔN%HѪ[!È8Èc+V®lµbp+k¬±H£C.ÑdéËJí¿ --- NEW FILE --- GIF89a b48² F*l¸"È+cÊ,¨pbJ$[$`ófÇyÄøS%È/(qPg b48² F*l¸"È+cÊ,¨pbJ$[`ófÇyÄøS%È/(qPg b48² F*l¸"È+cÊ,¨pbJ$[$`ófÇyÄøS%È/(qPg b48² F*l¸"È+cÊ,¨pbJ$[`ófÇyÄøS%È/(qPg --- NEW FILE --- GIF89a --- NEW FILE --- GIF89a *|8È` $¤ Á8ph0Aà --- NEW FILE --- GIF89a --- NEW FILE --- GIF89a --- NEW FILE --- GIF89a --- NEW FILE --- GIF89a 04há¥F?Ø= |
|
From: Lo?c C. <lo...@us...> - 2001-04-24 10:57:26
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv4057/lib
Modified Files:
smilies.lib.php3
Log Message:
A really improved (and simplificated for the user) handdling smilies work
Index: smilies.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/smilies.lib.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** smilies.lib.php3 2001/04/19 21:05:04 1.6
--- smilies.lib.php3 2001/04/24 10:57:22 1.7
***************
*** 30,48 ****
* The table below define smilies' codes and associated gif names, width and
* height.
! * You may add your own collection of smilies inside but be aware that codes
! * may need to be slashed in some way because they are used as POSIX 1003.2
! * regular expression (see the 'checkForSmilies()' function below).
* Moreover these codes are case sensitive.
*/
$smilies = array(
! ':\)' => array('smile1.gif', 15, 15),
':D' => array('smile2.gif', 15, 15),
':o' => array('smile3.gif', 15, 15),
! ':\(' => array('smile4.gif', 15, 15),
! ';\)' => array('smile5.gif', 15, 15),
':p' => array('smile6.gif', 15, 15),
! '8\)' => array('smile7.gif', 15, 15),
! ':\[' => array('smile8.gif', 15, 15),
! ':kill:' => array('smile9.gif', 50, 15)
);
--- 30,55 ----
* The table below define smilies' codes and associated gif names, width and
* height.
! * You may add your own collection of smilies inside but be aware that the
! * single quote and the backslash characters must be backslashed.
* Moreover these codes are case sensitive.
*/
$smilies = array(
! ':)' => array('smile1.gif', 15, 15),
':D' => array('smile2.gif', 15, 15),
':o' => array('smile3.gif', 15, 15),
! ':o)' => array('bignose.gif', 15, 15),
! ':(' => array('smile4.gif', 15, 15),
! ';)' => array('smile5.gif', 15, 15),
':p' => array('smile6.gif', 15, 15),
! '8)' => array('smile7.gif', 15, 15),
! ':[' => array('smile8.gif', 15, 15),
! ':kill:' => array('smile9.gif', 50, 15),
! ':smoke:' => array('smoke.gif', 21, 15),
! ':bad:' => array('bad.gif', 15, 15),
! ':good:' => array('good.gif', 15, 15),
! ':coffee:' => array('coffee.gif', 16, 16),
! ':flower:' => array('flower.gif', 15, 15),
! ':my2cts:' => array('my2cents.gif', 15, 15),
! ':tux:' => array('tux.gif', 15, 15)
);
***************
*** 51,55 ****
*/
$maxWidth = 50;
! $maxHeight = 15;
--- 58,62 ----
*/
$maxWidth = 50;
! $maxHeight = 16;
***************
*** 57,62 ****
/**
! * Slashes ' and " characters
*
* @param string the text code to be slashed
*
--- 64,100 ----
/**
! * Special sorting function for the smilies array
*
+ * @param array a smiley text code
+ * @param array a smiley text code
+ *
+ * @return integer a value representing whether $a should be before $b in the
+ * sorted array or not
+ *
+ * @access private
+ */
+ function pmcSmiliesCmp($a, $b)
+ {
+ // same value or no overlapping -> no perticular sort order
+ if ($a == $b
+ || (strpos(' ' . $a, $b) == 0 && strpos(' ' . $b, $a) == 0))
+ {
+ return 0;
+ }
+ // between $a and $b, the first to search for must be the one included in
+ // the other (if $b is in $a -> $a must be detected first)
+ else
+ {
+ return (strpos(' ' . $a, $b) > 0) ? - 1 : 1;
+ }
+ } // end of the 'pmcSmiliesCmp()' function
+
+
+
+
+ /**
+ * Slashes ' and \ characters after the " character has been tranformed to its
+ * html entity
+ *
* @param string the text code to be slashed
*
***************
*** 67,71 ****
function specialSlash($str = '')
{
! return str_replace('"', '"', str_replace('\'', '\\\'', $str));
} // end of the 'specialSlash()' function
--- 105,109 ----
function specialSlash($str = '')
{
! return addslashes(str_replace('"', '"', $str));
} // end of the 'specialSlash()' function
***************
*** 87,90 ****
--- 125,132 ----
global $smilies;
+ // Sort the smilies array in a convenient order
+ reset($smilies);
+ uksort($smilies, 'pmcSmiliesCmp');
+
$tmp = split('<a href|</a>', ' ' . $string . ' ');
$arrayCnt = count($tmp);
***************
*** 102,110 ****
else if (($i % 2) == 0)
{
while (list($key, $prop) = each($smilies))
{
! $substring = ereg_replace($key, ' <img src="images/smilies/' . $prop[0] . '" width="' . $prop[1] . '" height="' . $prop[2] . '" alt="' . str_replace('"', '"', stripslashes($key)) . '" /> ', $substring);
}
! $tmp[$i] = $substring;
}
// $substring is an HTTP link -> just restore HTML tags for links
--- 144,161 ----
else if (($i % 2) == 0)
{
+ // trick for smilies at the beginning or the end of the string
+ $substring = ' ' . $substring . ' ';
+ reset($smilies);
while (list($key, $prop) = each($smilies))
{
! $substring = str_replace(' ' . $key . ' ', ' <img src="images/smilies/' . $prop[0] . '" width="' . $prop[1] . '" height="' . $prop[2] . '" alt="' . str_replace('"', '"', stripslashes($key)) . '" /> ', $substring);
! // '<' and '>' characters may have been converted to html entities
! if (strpos(' ' . $key, '>') + strpos(' ' . $key, '<') > 0)
! {
! $modifiedKey = str_replace('>', '>', str_replace('<', '<', $key));
! $substring = str_replace(' ' . $modifiedKey . ' ', ' <img src="images/smilies/' . $prop[0] . '" width="' . $prop[1] . '" height="' . $prop[2] . '" alt="' . str_replace('"', '"', stripslashes($key)) . '" /> ', $substring);
! }
}
! $tmp[$i] = substr($substring, 1, strlen($substring) - 2);
}
// $substring is an HTTP link -> just restore HTML tags for links
***************
*** 149,157 ****
if ($target == 'help')
! $str1 .= "\t\t" . '<td align="center" width="'. $maxWidth . '" height="' . $maxHeight . '"><a href="#" onclick="pmcSmiley2Input(\'' . specialSlash($key) . '\'); return false"><img src="images/smilies/' . $prop[0] . '" width="' . $prop[1] . '" height="' . $prop[2] .'" border="0" alt="' . str_replace('"', '"', stripslashes($key)) . '" /></a></td>' . "\n";
else
! $str1 .= "\t\t" . '<td align="center" width="'. $maxWidth . '" height="' . $maxHeight . '"><img src="images/smilies/' . $prop[0] . '" width="' . $prop[1] . '" height="' . $prop[2] .'" border="0" alt="' . str_replace('"', '"', stripslashes($key)) . '" /></td>' . "\n";
! $str2 .= "\t\t" . '<td align="center" nowrap="nowrap">' . stripslashes($key) . '</td>' . "\n";
if (is_integer($i / $perLines) || $i == $smilCnt)
--- 200,208 ----
if ($target == 'help')
! $str1 .= "\t\t" . '<td align="center" width="'. $maxWidth . '" height="' . $maxHeight . '"><a href="#" onclick="pmcSmiley2Input(\'' . specialSlash($key) . '\'); return false"><img src="images/smilies/' . $prop[0] . '" width="' . $prop[1] . '" height="' . $prop[2] .'" border="0" alt="' . str_replace('"', '"', $key) . '" /></a></td>' . "\n";
else
! $str1 .= "\t\t" . '<td align="center" width="'. $maxWidth . '" height="' . $maxHeight . '"><img src="images/smilies/' . $prop[0] . '" width="' . $prop[1] . '" height="' . $prop[2] .'" border="0" alt="' . str_replace('"', '"', $key) . '" /></td>' . "\n";
! $str2 .= "\t\t" . '<td align="center" nowrap="nowrap">' . $key . '</td>' . "\n";
if (is_integer($i / $perLines) || $i == $smilCnt)
|
|
From: Lo?c C. <lo...@us...> - 2001-04-24 09:07:56
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv19555
Modified Files:
messages_low.php3 loader.php3
Log Message:
I understand now why the timezone offset had dispeared in the way day separator is computed.. . So sorry :o
Index: messages_low.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/messages_low.php3,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** messages_low.php3 2001/04/23 19:18:59 1.15
--- messages_low.php3 2001/04/24 09:07:51 1.16
***************
*** 156,160 ****
else
{
! $today = date('j', time() + C_TMZ_OFFSET * 60 * 60);
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
--- 156,160 ----
else
{
! $today = date('j', time());
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
***************
*** 173,177 ****
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime + C_TMZ_OFFSET * 60 * 60) != $today)
{
$daySeparatorMsg = ($dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN;
--- 173,177 ----
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime) != $today)
{
$daySeparatorMsg = ($dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN;
Index: loader.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** loader.php3 2001/04/23 19:18:59 1.16
--- loader.php3 2001/04/24 09:07:51 1.17
***************
*** 210,214 ****
else
{
! $today = date('j', time() + C_TMZ_OFFSET * 60 * 60);
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
--- 210,214 ----
else
{
! $today = date('j', time());
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
***************
*** 227,231 ****
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime + C_TMZ_OFFSET * 60 * 60) != $today)
{
$newMessages[] = '<p class="msg"><span class="notify">--------- ' . L_TODAY_DWN . ' ---------<\/span><\/p>';
--- 227,231 ----
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime) != $today)
{
$newMessages[] = '<p class="msg"><span class="notify">--------- ' . L_TODAY_DWN . ' ---------<\/span><\/p>';
|
|
From: Lo?c C. <lo...@us...> - 2001-04-23 19:50:16
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv9789/chat
Modified Files:
profile_reg.php3
Log Message:
Care of the case where 'checkdnsrr()' is disabled (php for windows can't be compiled with this function at this time, for example)
Index: profile_reg.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** profile_reg.php3 2001/04/21 19:37:40 1.10
--- profile_reg.php3 2001/04/23 19:50:13 1.11
***************
*** 140,144 ****
$error = L_ERR_USR_8;
}
! else if (C_EMAIL_PASWD && !checkdnsrr(substr(strstr($email, '@'), 1), 'ANY'))
{
$error = L_ERR_USR_8;
--- 140,145 ----
$error = L_ERR_USR_8;
}
! else if ((C_EMAIL_PASWD && @checkdnsrr('www.w3.org', 'ANY'))
! && !checkdnsrr(substr(strstr($email, '@'), 1), 'ANY'))
{
$error = L_ERR_USR_8;
|
|
From: Lo?c C. <lo...@us...> - 2001-04-23 19:19:03
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv1671/chat
Modified Files:
messages_low.php3 loader.php3
Log Message:
Don't know why but the timezone offset had dispeared in the way day separator is computed
Index: messages_low.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/messages_low.php3,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** messages_low.php3 2001/04/23 18:20:53 1.14
--- messages_low.php3 2001/04/23 19:18:59 1.15
***************
*** 156,160 ****
else
{
! $today = date('j', time());
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
--- 156,160 ----
else
{
! $today = date('j', time() + C_TMZ_OFFSET * 60 * 60);
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
***************
*** 173,177 ****
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime) != $today)
{
$daySeparatorMsg = ($dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN;
--- 173,177 ----
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime + C_TMZ_OFFSET * 60 * 60) != $today)
{
$daySeparatorMsg = ($dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN;
Index: loader.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** loader.php3 2001/04/23 18:20:28 1.15
--- loader.php3 2001/04/23 19:18:59 1.16
***************
*** 210,214 ****
else
{
! $today = date('j', time());
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
--- 210,214 ----
else
{
! $today = date('j', time() + C_TMZ_OFFSET * 60 * 60);
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
***************
*** 227,231 ****
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime) != $today)
{
$newMessages[] = '<p class="msg"><span class="notify">--------- ' . L_TODAY_DWN . ' ---------<\/span><\/p>';
--- 227,231 ----
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime + C_TMZ_OFFSET * 60 * 60) != $today)
{
$newMessages[] = '<p class="msg"><span class="notify">--------- ' . L_TODAY_DWN . ' ---------<\/span><\/p>';
|
|
From: Lo?c C. <lo...@us...> - 2001-04-23 18:28:50
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat
In directory usw-pr-cvs1:/tmp/cvs-serv19328/chat
Modified Files:
loader.php3
Log Message:
Fixed a bad js syntax a optimized a little bit
***** Bogus filespec: -
***** Bogus filespec: 0.14/chat
Index: loader.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/loader.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** loader.php3 2001/04/03 11:07:44 1.5
--- loader.php3 2001/04/23 18:28:48 1.6
***************
*** 152,155 ****
--- 152,156 ----
{
$i = "1";
+ $today = date('j', time() + C_TMZ_OFFSET*60*60);
while(list($Time, $User, $Latin1, $Dest, $Message) = $DbLink->next_record())
{
***************
*** 158,162 ****
// Separator between messages sent before today and other ones
! if (!isset($day_separator) && date("j", $Time + C_TMZ_OFFSET*60*60) != date("j", time() + C_TMZ_OFFSET*60*60))
{
$Messages[] = "<P CLASS=\"msg\"><SPAN CLASS=\"notify\">--------- ".L_TODAY_DWN." ---------<\/SPAN><\/P>";
--- 159,163 ----
// Separator between messages sent before today and other ones
! if (!isset($day_separator) && date("j", $Time + C_TMZ_OFFSET*60*60) != $today)
{
$Messages[] = "<P CLASS=\"msg\"><SPAN CLASS=\"notify\">--------- ".L_TODAY_DWN." ---------<\/SPAN><\/P>";
***************
*** 279,288 ****
{
// doubles backslashes except the ones for closing HTML tags
! $toPush = str_replace('\\', '\\\\', $Messages[$message_nb - 1 - $i]);
! $toPush = str_replace('<\\\\/', '<\\/', $toPush);
// slashes the quotes that should be displayed
! $toPush = str_replace("\"","\\\"",$toPush);
?>
! window.parent.frames['messages'].window.document.write("<?php echo($toPush); ?>\n");
<?php
};
--- 280,288 ----
{
// doubles backslashes except the ones for closing HTML tags
! $ToSend = ereg_replace("([^<]+)[\]","\\1\\\\",$Messages[$message_nb-1-$i]);
// slashes the quotes that should be displayed
! $ToSend = str_replace("\"","\\\"",$ToSend);
?>
! window.parent.frames['messages'].window.document.write("<?php echo($ToSend); ?>\n");
<?php
};
***************
*** 299,308 ****
with (window.parent.frames['messages'].window)
{
! if (typeof(scrollBy(0, 0)) != 'undefined')
{
scrollBy(0, 65000);
scrollBy(0, 65000);
}
! else
{
scroll(0, 65000);
--- 299,308 ----
with (window.parent.frames['messages'].window)
{
! if (typeof(scrollBy) != 'undefined')
{
scrollBy(0, 65000);
scrollBy(0, 65000);
}
! else if (typeof(scroll) != 'undefined')
{
scroll(0, 65000);
|