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-06-16 10:19:24
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv28255/chat/lib/index_libs Modified Files: users.lib.js Log Message: Optimized a bit for NS4+ Index: users.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/users.lib.js,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** users.lib.js 2001/04/29 14:25:16 1.8 --- users.lib.js 2001/06/16 10:19:21 1.9 *************** *** 129,137 **** { var ind = null; ! var layersCnt = jsUsersFrame.document.layers.length; for (var i = 0; i < layersCnt; i++) { ! var whichEl = jsUsersFrame.document.layers[i]; ! if (whichEl.id == el) { ind = i; --- 129,137 ---- { var ind = null; ! var theLayers = jsUsersFrame.document.layers; ! var layersCnt = theLayers.length; for (var i = 0; i < layersCnt; i++) { ! if (theLayers[i].id == el) { ind = i; *************** *** 152,164 **** if (jsUsersFrame.jsFirstInd != null) { ! var nextY = jsUsersFrame.document.layers[jsUsersFrame.jsFirstInd].pageY + jsUsersFrame.document.layers[jsUsersFrame.jsFirstInd].document.height; ! var layersCnt = jsUsersFrame.document.layers.length; for (var i = jsUsersFrame.jsFirstInd + 1; i < layersCnt; i++) { ! var whichEl = jsUsersFrame.document.layers[i]; ! if (whichEl.visibility != 'hide') { ! whichEl.pageY = nextY; ! nextY += whichEl.document.height; } } --- 152,164 ---- if (jsUsersFrame.jsFirstInd != null) { ! var theLayers = jsUsersFrame.document.layers; ! var layersCnt = theLayers.length; ! var nextY = theLayers[jsUsersFrame.jsFirstInd].pageY + theLayers[jsUsersFrame.jsFirstInd].document.height; for (var i = jsUsersFrame.jsFirstInd + 1; i < layersCnt; i++) { ! if (theLayers[i].visibility != 'hide') { ! theLayers[i].pageY = nextY; ! nextY += theLayers[i].document.height; } } *************** *** 278,285 **** else if (jsIsNS4) { ! var layersCnt = jsUsersFrame.document.layers.length; for (var i = 0; i < layersCnt; i++) { ! var whichEl = jsUsersFrame.document.layers[i]; if (whichEl.id.indexOf('Parent') != -1) var parentEl = whichEl; --- 278,286 ---- else if (jsIsNS4) { ! var theLayers = jsUsersFrame.document.layers; ! var layersCnt = theLayers.length; for (var i = 0; i < layersCnt; i++) { ! var whichEl = theLayers[i]; if (whichEl.id.indexOf('Parent') != -1) var parentEl = whichEl; *************** *** 462,471 **** if (jsUsersFrame.jsFirstInd != null) { ! var layersCnt = jsUsersFrame.document.layers.length; if (layersCnt) { for (var i = jsUsersFrame.jsFirstInd; i < layersCnt; i++) { ! var whichEl = jsUsersFrame.document.layers[i]; if (whichEl.id.indexOf('Parent') != -1 && typeof(whichEl.document.images['imEx']) != 'undefined') --- 463,473 ---- if (jsUsersFrame.jsFirstInd != null) { ! var theLayers = jsUsersFrame.document.layers; ! var layersCnt = theLayers.length; if (layersCnt) { for (var i = jsUsersFrame.jsFirstInd; i < layersCnt; i++) { ! var whichEl = theLayers[i]; if (whichEl.id.indexOf('Parent') != -1 && typeof(whichEl.document.images['imEx']) != 'undefined') |
From: Lo?c C. <lo...@us...> - 2001-06-16 10:19:23
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv28255/chat/lib Modified Files: users_popup.lib.js Log Message: Optimized a bit for NS4+ Index: users_popup.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/users_popup.lib.js,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** users_popup.lib.js 2001/05/03 07:00:12 1.7 --- users_popup.lib.js 2001/06/16 10:19:21 1.8 *************** *** 113,121 **** { var ind = null; ! var layersCnt = document.layers.length; for (var i = 0; i < layersCnt; i++) { ! var whichEl = document.layers[i]; ! if (whichEl.id == el) { ind = i; --- 113,121 ---- { var ind = null; ! var theLayers = document.layers; ! var layersCnt = theLayers.length; for (var i = 0; i < layersCnt; i++) { ! if (theLayers[i].id == el) { ind = i; *************** *** 136,148 **** if (jsFirstInd != null) { ! var nextY = document.layers[jsFirstInd].pageY + document.layers[jsFirstInd].document.height; ! var layersCnt = document.layers.length; for (var i = jsFirstInd + 1; i < layersCnt; i++) { ! var whichEl = document.layers[i]; ! if (whichEl.visibility != 'hide') { ! whichEl.pageY = nextY; ! nextY += whichEl.document.height; } } --- 136,148 ---- if (jsFirstInd != null) { ! var theLayers = document.layers; ! var layersCnt = theLayers.length; ! var nextY = theLayers[jsFirstInd].pageY + theLayers[jsFirstInd].document.height; for (var i = jsFirstInd + 1; i < layersCnt; i++) { ! if (theLayers[i].visibility != 'hide') { ! theLayers[i].pageY = nextY; ! nextY += theLayers[i].document.height; } } *************** *** 200,204 **** if (jsIsDOM) { ! divColl = document.getElementsByTagName('div'); var divCollCnt = divColl.length; for (var i = 0; i < divCollCnt; i++) --- 200,204 ---- if (jsIsDOM) { ! var divColl = document.getElementsByTagName('div'); var divCollCnt = divColl.length; for (var i = 0; i < divCollCnt; i++) *************** *** 230,234 **** else if (jsIsIE4) { ! divColl = document.all.tags('div'); var divCollCnt = divColl.length; for (var i = 0; i < divCollCnt; i++) --- 230,234 ---- else if (jsIsIE4) { ! var divColl = document.all.tags('div'); var divCollCnt = divColl.length; for (var i = 0; i < divCollCnt; i++) *************** *** 259,266 **** else if (jsIsNS4) { ! var layersCnt = document.layers.length; for (var i = 0; i < layersCnt; i++) { ! var whichEl = document.layers[i]; if (whichEl.id.indexOf('Parent') != -1) var parentEl = whichEl; --- 259,267 ---- else if (jsIsNS4) { ! var theLayers = document.layers; ! var layersCnt = theLayers.length; for (var i = 0; i < layersCnt; i++) { ! var whichEl = theLayers[i]; if (whichEl.id.indexOf('Parent') != -1) var parentEl = whichEl; *************** *** 427,436 **** if (jsFirstInd != null) { ! var layersCnt = document.layers.length; if (layersCnt) { for (var i = jsFirstInd; i < layersCnt; i++) { ! var whichEl = document.layers[i]; if (whichEl.id.indexOf('Parent') != -1) whichEl.document.images['imEx'].src = newSrc; --- 428,438 ---- if (jsFirstInd != null) { ! var theLayers = document.layers; ! var layersCnt = theLayers.length; if (layersCnt) { for (var i = jsFirstInd; i < layersCnt; i++) { ! var whichEl = theLayers[i]; if (whichEl.id.indexOf('Parent') != -1) whichEl.document.images['imEx'].src = newSrc; *************** *** 441,445 **** pmcNsArrangeList(); if (jsIsExpanded) ! scrollTo(0, document.layers[jsFirstInd].pageY); } } // end of the NS4 case --- 443,447 ---- pmcNsArrangeList(); if (jsIsExpanded) ! scrollTo(0, theLayers[jsFirstInd].pageY); } } // end of the NS4 case |
From: Lo?c C. <lo...@us...> - 2001-06-16 10:18:58
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv28154/chat Modified Files: users_low.php3 Log Message: Forgot a var in the pmcFormatUsername function declaration Index: users_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_low.php3,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -r1.21 -r1.22 *** users_low.php3 2001/06/10 14:56:06 1.21 --- users_low.php3 2001/06/16 10:18:54 1.22 *************** *** 134,138 **** * @access public */ ! function pmcFormatUsername($theUsername, $isUnLatin1, $theStatus) { $tagsOpen = ''; --- 134,138 ---- * @access public */ ! function pmcFormatUsername($theUsername, $isUnLatin1, $theStatus, $isAway) { $tagsOpen = ''; |
From: Lo?c C. <lo...@us...> - 2001-06-15 21:06:00
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv32401/chat/lib Modified Files: connected_users.lib.php3 Log Message: Add all the columns for GROUP BY Index: connected_users.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/connected_users.lib.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** connected_users.lib.php3 2001/06/10 15:15:17 1.3 --- connected_users.lib.php3 2001/06/15 21:05:57 1.4 *************** *** 68,72 **** if ($isFullList) { ! $query = 'SELECT u.username AS nicks, u.latin1 FROM ' . C_USR_TBL . ' u, ' . C_ROOM_TBL . ' r WHERE u.room = r.room_name AND r.room_type = 1 GROUP BY nicks'; } else --- 68,79 ---- if ($isFullList) { ! if (C_DB_TYPE == 'mysql' || C_DB_TYPE == 'pgsql') ! { ! $query = 'SELECT u.username AS nicks, u.latin1 FROM ' . C_USR_TBL . ' u, ' . C_ROOM_TBL . ' r WHERE u.room = r.room_name AND r.room_type = 1 GROUP BY nicks'; ! } ! else ! { ! $query = 'SELECT u.username, u.latin1 FROM ' . C_USR_TBL . ' u, ' . C_ROOM_TBL . ' r WHERE u.room = r.room_name AND r.room_type = 1 GROUP BY u.username, u.latin1'; ! } } else |
From: Lo?c C. <lo...@us...> - 2001-06-15 21:05:18
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv32231/chat/lib/index_libs Modified Files: main_index.lib.php3 Log Message: Fix a little display bug Index: main_index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -r1.37 -r1.38 *** main_index.lib.php3 2001/06/13 17:59:44 1.37 --- main_index.lib.php3 2001/06/15 21:05:15 1.38 *************** *** 900,906 **** <?php } echo("\n"); ?> - <br /><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> --- 900,912 ---- <?php } + if (C_MAIL_FUNCTION || C_SHOW_ADMIN) + { + echo("\n"); + ?> + <br /><br /> + <?php + } echo("\n"); ?> <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> |
From: Lo?c C. <lo...@us...> - 2001-06-15 21:04:36
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv32041/chat Modified Files: messages_low.php3 loader.php3 Log Message: Fixed a possible bug (more than C_MSG_NB messages may be displayed at startup) Index: messages_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/messages_low.php3,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** messages_low.php3 2001/06/10 14:56:06 1.19 --- messages_low.php3 2001/06/15 21:04:33 1.20 *************** *** 197,201 **** // Skip the oldest message if the day seperator has been added ! if ($isDaySeparator && $k == $grabedMessagesCnt - 1) { continue; --- 197,201 ---- // Skip the oldest message if the day seperator has been added ! if ($isDaySeparator && $k >= $grabedMessagesCnt - 1) { continue; Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** loader.php3 2001/06/10 14:56:06 1.22 --- loader.php3 2001/06/15 21:04:33 1.23 *************** *** 232,236 **** // Skip the oldest message if the day seperator has been added ! if ($isDaySeparator && $isInitLoad && $k == $grabedMessagesCnt - 1) { continue; --- 232,236 ---- // Skip the oldest message if the day seperator has been added ! if ($isDaySeparator && $isInitLoad && $k >= $grabedMessagesCnt - 1) { continue; |
From: Lo?c C. <lo...@us...> - 2001-06-13 18:13:33
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv9269/chat Modified Files: profile_reg.php3 Log Message: Increased the max allowed size for nicks, passwords and rooms names Index: profile_reg.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** profile_reg.php3 2001/06/10 14:56:06 1.16 --- profile_reg.php3 2001/06/13 18:13:29 1.17 *************** *** 309,313 **** <td align="right" valign="top" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top"> ! <input type="text" name="pmcProfNick" size="11" maxlength="10" value="<?php if (isset($pmcProfNick)) echo(htmlspecialchars($pmcProfNick)); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> <?php if (!$isRegDone && !$isMailFail) echo('<span class="error">*</span>'); ?> </td> --- 309,313 ---- <td align="right" valign="top" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top"> ! <input type="text" name="pmcProfNick" size="11" maxlength="20" value="<?php if (isset($pmcProfNick)) echo(htmlspecialchars($pmcProfNick)); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> <?php if (!$isRegDone && !$isMailFail) echo('<span class="error">*</span>'); ?> </td> *************** *** 320,324 **** <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_7); ?> :</td> <td valign="top"> ! <input type="password" name="pmcProfPassword" size="11" maxlength="16" value="<?php if (isset($pmcProfPassword)) echo(htmlspecialchars($pmcProfPassword)); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> <?php if (!$isRegDone && !$isMailFail) echo('<span class="error">*</span>'); ?> </td> --- 320,324 ---- <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_7); ?> :</td> <td valign="top"> ! <input type="password" name="pmcProfPassword" size="11" maxlength="20" value="<?php if (isset($pmcProfPassword)) echo(htmlspecialchars($pmcProfPassword)); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> <?php if (!$isRegDone && !$isMailFail) echo('<span class="error">*</span>'); ?> </td> *************** *** 358,362 **** <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_32); ?> :</td> <td valign="top"> ! <input type="text" name="pmcProfWebSite" size="11" maxlength="64" value="<?php if (isset($pmcProfWebSite)) echo($pmcProfWebSite); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> </td> </tr> --- 358,362 ---- <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_32); ?> :</td> <td valign="top"> ! <input type="text" name="pmcProfWebSite" size="11" maxlength="200" value="<?php if (isset($pmcProfWebSite)) echo($pmcProfWebSite); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> </td> </tr> |
From: Lo?c C. <lo...@us...> - 2001-06-13 18:09:12
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/docs In directory usw-pr-cvs1:/tmp/cvs-serv8377/docs Modified Files: changes.txt Log Message: Updated with new features Index: changes.txt =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/docs/changes.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** changes.txt 2001/06/10 14:57:50 1.7 --- changes.txt 2001/06/13 18:09:09 1.8 *************** *** 8,12 **** ! v 0.15.0 - 10/06/2001 """"""""""""""""""""" --- 8,12 ---- ! v 0.15.0 - 13/06/2001 """"""""""""""""""""" *************** *** 20,23 **** --- 20,25 ---- As a result, phpMyChat works far better with Mozilla M18 (and the should also with Netscape 6). + ENHANCEMENT : password are no long crypted and a password reminder has been added (if + the php 'mail()' function is enabled). ENHANCEMENT : the '/away' command has been added. Moreover the way incative users are handled have changed: in a first time they are automatically defined as *************** *** 33,44 **** ENHANCEMENT : you may now defined a maximum number of graphical smilies per message thanks to a piece of code from Tomas Haluza <th...@ki...>. BUG FIXED : many JavaScript bugs have been fixed in this release. ! v 0.14.5-RC1 - 08/06/2001 """"""""""""""""""""""""" BUG FIXED : two security issues has been fixed thanks to Alexei Shalin <hap...@to...>. BUG FIXED : when registered users used the '/join' command or on the link in an invitation messages they may loose their rights or be kicked off --- 35,50 ---- ENHANCEMENT : you may now defined a maximum number of graphical smilies per message thanks to a piece of code from Tomas Haluza <th...@ki...>. + ENHANCEMENT : the maximum allowed size for nicks, password and rooms names is 20 + characters. BUG FIXED : many JavaScript bugs have been fixed in this release. ! v 0.14.5-RC1 - 12/06/2001 """"""""""""""""""""""""" BUG FIXED : two security issues has been fixed thanks to Alexei Shalin <hap...@to...>. + BUG FIXED : nicks containing dot characters can't be deleted/banished/updated + in the administration sheets BUG FIXED : when registered users used the '/join' command or on the link in an invitation messages they may loose their rights or be kicked off |
From: Lo?c C. <lo...@us...> - 2001-06-13 18:08:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv8268/chat/lib Modified Files: check_and_kick_user.lib.php3 Log Message: Moderators may stay connected in the chat even if they are away Index: check_and_kick_user.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/check_and_kick_user.lib.php3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** check_and_kick_user.lib.php3 2001/06/10 14:57:47 1.16 --- check_and_kick_user.lib.php3 2001/06/13 18:08:44 1.17 *************** *** 112,119 **** // ... the time to ensure the user won't be cleaned from the // connected users table except if the user is 'away' or this ! // library is not called because he has sent a message if ($doUpdate) { ! if ($away == 1) { $dbSessionVars['away'] = 0; --- 112,119 ---- // ... the time to ensure the user won't be cleaned from the // connected users table except if the user is 'away' or this ! // library is called because he/she has sent a message if ($doUpdate) { ! if ($dbSessionVars['away'] == 1) { $dbSessionVars['away'] = 0; *************** *** 125,128 **** --- 125,135 ---- $checkLink->query("UPDATE " . C_USR_TBL . " SET u_time = $updTime WHERE session_id = '$dbSessionId'"); } + } + // ... the time to ensure a moderator who is away won't be cleaned + // from the connected users table + else if ($dbSessionVars['status'] >= C_DEL_AWAY_LEVEL + && $dbSessionVars['away'] == 1) + { + $checkLink->query("UPDATE " . C_USR_TBL . " SET u_time = $updTime WHERE session_id = '$dbSessionId'"); } } |
From: Lo?c C. <lo...@us...> - 2001-06-13 18:07:40
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/docs In directory usw-pr-cvs1:/tmp/cvs-serv8068/docs Modified Files: install.txt Log Message: Moved config comments in the 'docs/configuration.txt' file Index: install.txt =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/docs/install.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** install.txt 2001/04/26 20:11:41 1.1 --- install.txt 2001/06/13 18:07:38 1.2 *************** *** 52,57 **** 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 --- 52,57 ---- b) Do it manually. Move into 'chat/config' directory and make changes to the ! 'config.lib.php3' file (see 'docs/configuration.txt' for details about the ! directives). 6) Once all this has been done, you should protect the config file (that contains |
From: Lo?c C. <lo...@us...> - 2001-06-13 18:07:02
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/docs In directory usw-pr-cvs1:/tmp/cvs-serv7872/docs Added Files: configuration.txt Log Message: A new file to document the config script --- NEW FILE --- +--------------------------------------------------------------------------+ | phpMyChat version 0.15.0 | +--------------------------------------------------------------------------+ | Copyright (c) 2000-2001 The phpHeaven-team | +--------------------------------------------------------------------------+ | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | +--------------------------------------------------------------------------+ | Brief desciption of the directives of the phpMyChat configuration file | +--------------------------------------------------------------------------+ | From the phpMyChat project: | | http://www.phpheaven.net/projects/phpMyChat/ | | | | Authors: the phpHeaven-team <te...@ph...> | +--------------------------------------------------------------------------+ $Id: configuration.txt,v 1.1 2001/06/13 18:06:59 loic1 Exp $ This is the documented list of all the directives defined in the configuration script of phpMyChat. Database settings """"""""""""""""" C_DB_TYPE The SQL server type: mysql, pgsql (PostgreSQL) or oci8 (Oracle 8). C_DB_HOST The hostname of your SQL server. C_DB_NAME The logical database name on that server. C_DB_USER C_DB_PASS Your login and password for this database. C_SESS_TBL C_USR_TBL C_REG_TBL C_BAN_TBL Names of the tables where will be stored: - session datas; - informations about connected users; - profiles of the registered users; - banished users. C_ROOM_TBL C_RIGHT_TBL C_MSG_TBL Names of the tables where will be stored: - information about existing rooms; - right level of users in these rooms; - the messages. Cleaning settings """"""""""""""""" C_SESS_DEL Sessions are deleted when its last use is C_SESS_DEL minutes old. This setting must be greater than C_USR_AWAY + C_USR_DEL (see below). C_USR_AWAY C_DEL_AWAY_LEVEL C_USR_DEL These directives define the way the connected users table is updated and cleaned. C_USR_AWAY defines the delay of inactivity (no message sent) in minutes before an user is considered as "away from his/her keyboard". C_DEL_AWAY_LEVEL tell the script that an user whose right level is inferior to C_DEL_AWAY_LEVEL should be kicked as soon as he/she is "away from his/her keyboard" since more than C_USR_DEL minutes. Examples: 1. An user is away if he/she didn't post any message during the past 4 minutes and, if he/she is not moderator, he/she sould be kicked two minutes later (except if he/she send a message during this period, of course): C_USR_AWAY = 4 C_DEL_AWAY_LEVEL = 5 C_USR_DEL = 2 2. An user is away if he/she didn't post any message during the past 5 minutes and, if he/she is not the administrator, he/she sould be kicked one minute later (except if he/she send a message during this period, of course): C_USR_AWAY = 5 C_DEL_AWAY_LEVEL = 10 C_USR_DEL = 1 Important notes: C_USR_AWAY + C_USR_DEL must be lower than C_SESS_DEL; C_USR_AWAY and C_USR_DEL must be greater than the default time between messages list refresh (see the C_MSG_REFRESH directive below). C_REG_DEL A profile is deleted when its last use is C_REG_DEL days old. C_REG_DEL should be 0 for "never". C_MSG_DEL Messages are deleted when there are C_MSG_DEL hours old. Default rooms """"""""""""" $defaultChatRooms The list of the default public rooms an user will be proposed. $defaultPrivateRooms The list of reserved names for the default private rooms. Language settings """"""""""""""""" C_LANGUAGE The default language to use. C_MULTI_LANG Tell to script to use the multi-languages/charset feature (0 = no, 1 = yes). To enable this feature you have to download more than one translation. Registration of users """"""""""""""""""""" C_REQUIRE_REGISTER Whether to require registration or not (1/0). If set to 1, user must register to enter the chat. C_EMAIL_PASWD Tell the script whether to generate a password and send it to the user by e-mail or not when he/she register (1/0). This functionaly is available only if the php 'mail()' function is enabled. To use it the C_MAIL_FUNCTION, C_REG_SENDER and C_REG_EMAIL directives have to be completed (see below) Security and restrictions """"""""""""""""""""""""" C_MAX_USERS The maximum authorized number of connected users (0 for no limit). C_SHOW_ADMIN C_SHOW_DEL_PROF Whether to display the links for administration resources and deleting profiles at startup screen or not (1/0). C_VERSION Available rooms : users may enter... 0 = only the first room within the public default ones; 1 = all the public default rooms but not create a room; 2 = all the rooms and also create new ones. C_BANISH Enable the banishment feature and define the delay for banishment. Values are: 0 = disabled; any positive number = number of banishment day(s). If you want all moderators (and not only yourself) to banish users "forever", set C_BANISH to 2000000 (six zero) C_NO_SWEAR Whether to check for swear words (defined in the 'chat/lib/swearing.lib.php3' script) or not (1/0). If enabled: - nicks and room names containing these words won't be allowed, - each of these words will be replaced by a "mask" in messages. C_SAVE The maximum number of message that an user may export with the '/save' command. Special values: 0 = none (disable the command); * = no limit. Messages enhancements """"""""""""""""""""" C_MAX_GSMILIES The maximun number of graphical smilies per message. Special values: 0 = none; * = no limit. C_HTML_TAGS_KEEP Whether to keep HTML tags in messages or not. Values are: simple = keep bold, italic and underline tags; none = keep none. C_HTML_TAGS_SHOW Whether to show discarded HTML tags or not (1/0). Default display settings """""""""""""""""""""""" C_TMZ_OFFSET The timezone offset in hour between the server time and your lacal time C_MSG_ORDER For browsers that do not support DHTML/DOM, the order of messages: 0 = last on top (default); 1 = last on bottom. C_MSG_NB The default number of messages to display. C_MSG_REFRESH The default timeout between each update in seconds C_SHOW_TIMESTAMP Whether to show timsestamp before messages or not (1/0). C_NOTIFY Whether to show nofications of user entrance/exit as default or not (1/0). C_WELCOME Whether to display a welcome message at user entrance as default or not (1/0). E-mail stuff """""""""""" C_MAIL_FUNCTION Whether the php 'mail()' function is enabled or not (1/0). C_REG_SENDER C_REG_EMAIL The full sender name and the sender e-mail address used by the profile registration script. C_ADM_SENDER C_ADM_EMAIL The full sender name and the sender e-mail address used by the last administration script. Name and release number """"""""""""""""""""""" APP_NAME APP_VERSION The name and release number you want to be displayed at the start screen. Complete Url of the chat """""""""""""""""""""""" C_CHAT_URL The complete url of your chat (ie 'http://www.mysite.net/chat/'). This value will be used: - in the registration messages send to user if C_EMAIL_PASWD is set to 1; - when an user is kicked away from the chat. |
From: Lo?c C. <lo...@us...> - 2001-06-13 18:05:56
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/config In directory usw-pr-cvs1:/tmp/cvs-serv7529/chat/config Modified Files: config.lib.php3 Log Message: Added a directive to allow moderators to stay in the chat even if they are away and moved comments in the 'docs/configuration.txt' file Index: config.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/config/config.lib.php3,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** config.lib.php3 2001/06/10 14:57:47 1.9 --- config.lib.php3 2001/06/13 18:05:53 1.10 *************** *** 9,13 **** // +--------------------------------------------------------------------------+ // | This is the main configuration file for phpMyChat. You have to complete | ! // | it. | // | BEWARE: '," and \ characters must be slashed in the settings bellow. | // | | --- 9,13 ---- // +--------------------------------------------------------------------------+ // | This is the main configuration file for phpMyChat. You have to complete | ! // | it (see 'docs/configuration.txt' for details). | // | BEWARE: '," and \ characters must be slashed in the settings bellow. | // | | *************** *** 31,61 **** */ // Database settings ! define('C_DB_TYPE', 'mysql'); // SQL server type ('mysql' or 'postgresql') ! define('C_DB_HOST', 'localhost'); // Hostname of your MySQL server ! define('C_DB_NAME', 'db_name'); // Logical database name on that server ! define('C_DB_USER', 'username'); // Database user ! define('C_DB_PASS', 'password'); // Database user's password ! define('C_SESS_TBL', 'pmc_sessions'); // Name of the table where session data are stored ! define('C_ROOM_TBL', 'pmc_rooms'); // Name of the table where rooms properties are stored ! define('C_MSG_TBL', 'pmc_messages'); // Name of the table where messages are stored ! define('C_RIGHT_TBL', 'pmc_rights'); // Name of the table where users' rights are stored ! define('C_USR_TBL', 'pmc_users'); // Name of the table where user names are stored ! define('C_REG_TBL', 'pmc_reg_users'); // Name of the table where registered users are stored ! define('C_BAN_TBL', 'pmc_ban_users'); // Name of the table where banished users are stored // Cleaning settings for messages and usernames ! define('C_SESS_DEL', 8); // Sessions are deleted when its last use is 'xx' minutes old ! // This setting must be greater than the 'C_USR_DEL' one ! define('C_MSG_DEL', 96); // Messages are deleted when there are 'xx' hours old ! define('C_USR_AWAY', 4); // Users are considered as "away from their keyboard" when ! // the last message they sent is 'xx' minutes old ! // This setting must be greater than the maximum time ! // authorized between messages list refresh ! define('C_USR_DEL', 2); // Usernames are deleted when they are "away from their ! // keyboard" since more than 'xx' minutes ! // This setting must be greater than the maximum time ! // authorized between messages list refresh ! define('C_REG_DEL', 0); // Registered profiles are deleted when its last use is 'xx' days old ! // 'xx' should be 0 for never --- 31,54 ---- */ // Database settings ! define('C_DB_TYPE', 'mysql'); ! define('C_DB_HOST', 'localhost'); ! define('C_DB_NAME', 'db_name'); ! define('C_DB_USER', 'username'); ! define('C_DB_PASS', 'password'); ! define('C_SESS_TBL', 'pmc_sessions'); ! define('C_USR_TBL', 'pmc_users'); ! define('C_REG_TBL', 'pmc_reg_users'); ! define('C_BAN_TBL', 'pmc_ban_users'); ! define('C_ROOM_TBL', 'pmc_rooms'); ! define('C_RIGHT_TBL', 'pmc_rights'); ! define('C_MSG_TBL', 'pmc_messages'); // Cleaning settings for messages and usernames ! define('C_SESS_DEL', 8); ! define('C_USR_AWAY', 4); ! define('C_DEL_AWAY_LEVEL', 5); ! define('C_USR_DEL', 2); ! define('C_REG_DEL', 0); ! define('C_MSG_DEL', 96); *************** *** 68,126 **** // Language settings ! define('C_LANGUAGE', 'english'); // Default language ! define('C_MULTI_LANG', 1); // Allow multi-languages/charset ? : 0 = no, 1 = yes // Registration of users ! define('C_REQUIRE_REGISTER', 0); // Require registration ? : 0 = no, 1 = yes ! define('C_EMAIL_PASWD', 0); // Generate a password and send it to the user by e-mail ? 0 = no, 1 = yes ! // To enable this functionaly you also have to complete the settings in ! // the 'chat/lib/mail_validation.lib.php3' script // Security and restrictions ! define('C_MAX_USERS', 0); // Maximum number of connected users? (0 for no limit) ! define('C_SHOW_ADMIN', 0); // Show link for admin resources at startup screen ? 0 = no, 1 = yes ! define('C_SHOW_DEL_PROF', 1); // Show link that allows users to delete their own profile ? 0 = no, 1 = yes ! define('C_VERSION', 2); // Available rooms : users can access... ! // 0 : only the first room within the public default ones ! // 1 : all the public default rooms but not create a room ! // 2 : all the rooms and create new ones ! define('C_BANISH', 0); // Enable the banishment feature and define the delay for banishment ! // 0 = disabled, any positive number = number of banishment day(s) ! // if you want all moderators (and not only yourself) to banish users ! // forever, set C_BANISH to 2000000 (six zero) ! define('C_NO_SWEAR', 0); // Check for swear words defined in chat/lib/swearing.lib.php3 file ? ! // 0 = no, 1 = yes ! define('C_SAVE', '*'); // Max number of message that an user may export with the /save command ! // Special values: 0 = none (disable the command), * = no limit // Messages enhancements ! define('C_MAX_GSMILIES', 2); // Maximun number of graphical smilies per message (0 = none, * = no limit) ! define('C_HTML_TAGS_KEEP', 'simple'); // Keep HTML tags in messages ? ! // 'simple' : keep bold, italic and underline tags ! // 'none' : keep none ! define('C_HTML_TAGS_SHOW', 1); // Show discarded HTML tags ? : 0 = no, 1 = yes // Default display settings ! define('C_TMZ_OFFSET', 0); // Timezone offset in hour between the server time and your country ! define('C_MSG_ORDER', 0); // Default order : 0 = last on top, 1 = last on bottom ! define('C_MSG_NB', 17); // Default number of messages to display ! define('C_MSG_REFRESH', 10); // Default timeout between each update ! define('C_SHOW_TIMESTAMP', 1); // Show Timsestamp before messages ? : 0 = no, 1 = yes ! define('C_NOTIFY', 1); // Show nofications of user entrance/exit as default. ? : 0 = no, 1 = yes ! define('C_WELCOME', 1); // Display a welcome message (defined inside 'chat/lib/welcome.lib.php3') ! // at user entrance // E-mail stuff ! define('C_MAIL_FUNCTION', 1); // Whether the mail function is enabled or not ! define('C_REG_SENDER', 'your name'); // Full sender name to be used in the registration form ! define('C_REG_EMAIL', 'your e-mail'); // Sender e-mail to be used in the registration form ! define('C_ADM_SENDER', 'your name'); // Full sender name to be used in the fourth administration sheet ! define('C_ADM_EMAIL', 'your e-mail'); // Sender e-mail to be used in the fourth administration sheet ! ! // Name and version of this application ! define('APP_NAME', 'phpMyChat'); // Application name ! define('APP_VERSION', '0.15.0 - dev1'); // Application version number ! // Complete Url of the chat define('C_CHAT_URL', 'http://www.mysite.net/chat/'); ?> --- 61,106 ---- // Language settings ! define('C_LANGUAGE', 'english'); ! define('C_MULTI_LANG', 1); // Registration of users ! define('C_REQUIRE_REGISTER', 0); ! define('C_EMAIL_PASWD', 0); // Security and restrictions ! define('C_MAX_USERS', 0); ! define('C_SHOW_ADMIN', 0); ! define('C_SHOW_DEL_PROF', 1); ! define('C_VERSION', 2); ! define('C_BANISH', 0); ! define('C_NO_SWEAR', 0); ! define('C_SAVE', '*'); // Messages enhancements ! define('C_MAX_GSMILIES', 2); ! define('C_HTML_TAGS_KEEP', 'simple'); ! define('C_HTML_TAGS_SHOW', 1); // Default display settings ! define('C_TMZ_OFFSET', 0); ! define('C_MSG_ORDER', 0); ! define('C_MSG_NB', 17); ! define('C_MSG_REFRESH', 10); ! define('C_SHOW_TIMESTAMP', 1); ! define('C_NOTIFY', 1); ! define('C_WELCOME', 1); // E-mail stuff ! define('C_MAIL_FUNCTION', 1); ! define('C_REG_SENDER', 'your full name'); ! define('C_REG_EMAIL', 'your e-mail'); ! define('C_ADM_SENDER', 'admin full name'); ! define('C_ADM_EMAIL', 'admin e-mail'); ! ! // Name and release number ! define('APP_NAME', 'phpMyChat'); ! define('APP_VERSION', '0.15.0 - dev1'); ! // Complete url of the chat define('C_CHAT_URL', 'http://www.mysite.net/chat/'); ?> |
From: Lo?c C. <lo...@us...> - 2001-06-13 17:59:47
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv5915/chat Modified Files: profile_remind.php3 profile_edit.php3 Log Message: Increased the max allowed size for nicks, passwords and rooms names Index: profile_remind.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_remind.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** profile_remind.php3 2001/06/10 14:56:06 1.3 --- profile_remind.php3 2001/06/13 17:59:44 1.4 *************** *** 239,243 **** <td align="right" valign="top" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top"> ! <input type="text" name="pmcProfNick" size="11" maxlength="10" value="<?php echo(htmlspecialchars($pmcProfNick)); ?>" /> </td> </tr> --- 239,243 ---- <td align="right" valign="top" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top"> ! <input type="text" name="pmcProfNick" size="11" maxlength="20" value="<?php echo(htmlspecialchars($pmcProfNick)); ?>" /> </td> </tr> Index: profile_edit.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_edit.php3,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** profile_edit.php3 2001/06/10 14:56:06 1.15 --- profile_edit.php3 2001/06/13 17:59:44 1.16 *************** *** 345,349 **** { ?> ! <input type="text" name="pmcProfNick" size="11" maxlength="10" value="<?php echo(htmlspecialchars($pmcProfNick)); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> <?php if (!$isRegDone && !$isMailFail) --- 345,349 ---- { ?> ! <input type="text" name="pmcProfNick" size="11" maxlength="20" value="<?php echo(htmlspecialchars($pmcProfNick)); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> <?php if (!$isRegDone && !$isMailFail) *************** *** 365,369 **** <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_7); ?> :</td> <td valign="top"> ! <input type="password" name="pmcProfPassword" size="11" maxlength="16" value="<?php echo(htmlspecialchars($dbSessionVars['authPassword'])); ?>" /> <?php if (!$isRegDone && !$isMailFail) echo('<span class="error">*</span>'); ?> </td> --- 365,369 ---- <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_7); ?> :</td> <td valign="top"> ! <input type="password" name="pmcProfPassword" size="11" maxlength="20" value="<?php echo(htmlspecialchars($dbSessionVars['authPassword'])); ?>" /> <?php if (!$isRegDone && !$isMailFail) echo('<span class="error">*</span>'); ?> </td> *************** *** 403,407 **** <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_32); ?> :</td> <td valign="top"> ! <input type="text" name="pmcProfWebSite" size="11" maxlength="64" value="<?php echo(htmlspecialchars($pmcProfWebSite)); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> </td> </tr> --- 403,407 ---- <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_32); ?> :</td> <td valign="top"> ! <input type="text" name="pmcProfWebSite" size="11" maxlength="200" value="<?php echo(htmlspecialchars($pmcProfWebSite)); ?>"<?php if ($isRegDone || $isMailFail) echo(' readonly="readonly"'); ?> /> </td> </tr> |
From: Lo?c C. <lo...@us...> - 2001-06-13 17:59:47
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv5915/chat/lib Modified Files: login.lib.php3 Log Message: Increased the max allowed size for nicks, passwords and rooms names Index: login.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/login.lib.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** login.lib.php3 2001/06/10 14:57:48 1.10 --- login.lib.php3 2001/06/13 17:59:44 1.11 *************** *** 171,175 **** <td align="right" valign="top" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top"> ! <input type="text" name="pmcAuthUsername" size="11" maxlength="10" value="<?php if (isset($pmcAuthUsername)) echo(htmlspecialchars($pmcAuthUsername)); ?>" /> </td> </tr> --- 171,175 ---- <td align="right" valign="top" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top"> ! <input type="text" name="pmcAuthUsername" size="11" maxlength="20" value="<?php if (isset($pmcAuthUsername)) echo(htmlspecialchars($pmcAuthUsername)); ?>" /> </td> </tr> *************** *** 177,181 **** <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_7); ?> :</td> <td valign="top"> ! <input type="password" name="pmcAuthPassword" size="11" maxlength="16" value="<?php if (isset($pmcAuthPassword)) echo(htmlspecialchars($pmcAuthPassword)); ?>" /> </td> </tr> --- 177,181 ---- <td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_7); ?> :</td> <td valign="top"> ! <input type="password" name="pmcAuthPassword" size="11" maxlength="20" value="<?php if (isset($pmcAuthPassword)) echo(htmlspecialchars($pmcAuthPassword)); ?>" /> </td> </tr> |
From: Lo?c C. <lo...@us...> - 2001-06-13 17:59:47
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv5915/chat/lib/index_libs Modified Files: main_index.lib.php3 Log Message: Increased the max allowed size for nicks, passwords and rooms names Index: main_index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -r1.36 -r1.37 *** main_index.lib.php3 2001/06/12 19:46:14 1.36 --- main_index.lib.php3 2001/06/13 17:59:44 1.37 *************** *** 607,611 **** <!-- The lines below are usefull for debugging purpose, please do not remove them! ! Release: phpMyChat 0.14.3 © 2000-2001 The phpHeaven Team (http://www.phpheaven.net/) --> --- 607,611 ---- <!-- The lines below are usefull for debugging purpose, please do not remove them! ! Release: phpMyChat 0.15.0-dev © 2000-2001 The phpHeaven Team (http://www.phpheaven.net/) --> *************** *** 809,813 **** <tr class="chatCell"> <td align="center" class="chatCell"> ! <table border="0" class="chatTable"> <?php // Displays the flags for languages if necessary --- 809,813 ---- <tr class="chatCell"> <td align="center" class="chatCell"> ! <table border="0" width="100%" class="chatTable"> <?php // Displays the flags for languages if necessary *************** *** 855,859 **** <td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top" class="chatCell"> ! <input id="testSize" type="text" name="pmcNick" size="11" maxlength="10" value="<?php echo(htmlspecialchars($layoutNick)); ?>" class="chatBox" /> </td> </tr> --- 855,859 ---- <td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td> <td valign="top" class="chatCell"> ! <input id="testSize" type="text" name="pmcNick" size="11" maxlength="20" value="<?php echo(htmlspecialchars($layoutNick)); ?>" class="chatBox" /> </td> </tr> *************** *** 861,865 **** <td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_REG_1); ?> :</td> <td valign="top" class="chatCell" nowrap="nowrap"> ! <input type="password" name="pmcPassword" size="11" maxlength="16" class="chatBox" /> <?php if (!C_REQUIRE_REGISTER) --- 861,865 ---- <td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_REG_1); ?> :</td> <td valign="top" class="chatCell" nowrap="nowrap"> ! <input type="password" name="pmcPassword" size="11" maxlength="20" class="chatBox" /> <?php if (!C_REQUIRE_REGISTER) *************** *** 1016,1020 **** </td> <td valign="top" class="chatCell"> ! <input type="text" name="createRoomName" size="11" maxlength="10"<?php if (!$defaultRoomFound && $layoutRoom != '') echo(' value="' . htmlspecialchars($layoutRoom) . '"'); ?> class="chatBox" onchange="pmcResetRoomBox('create');" /> </td> </tr> --- 1016,1020 ---- </td> <td valign="top" class="chatCell"> ! <input type="text" name="createRoomName" size="11" maxlength="20"<?php if (!$defaultRoomFound && $layoutRoom != '') echo(' value="' . htmlspecialchars($layoutRoom) . '"'); ?> class="chatBox" onchange="pmcResetRoomBox('create');" /> </td> </tr> |
From: Lo?c C. <lo...@us...> - 2001-06-12 19:46:58
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv19590/chat Modified Files: whois_popup.php3 Log Message: Remove remainings and buggy break instructions Index: whois_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** whois_popup.php3 2001/06/10 14:56:06 1.17 --- whois_popup.php3 2001/06/12 19:46:55 1.18 *************** *** 95,99 **** { $power = 'high'; - break; } else if ($dbSessionVars['status'] >= 5) // moderators --- 95,98 ---- *************** *** 103,107 **** $whoisDbLnk->cleanResults(); $power = ($isInCurrentRoom) ? 'medium' : 'weak'; - break; } else // simple user --- 102,105 ---- |
From: Lo?c C. <lo...@us...> - 2001-06-12 19:46:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv19451/chat/lib/index_libs Modified Files: main_index.lib.php3 Log Message: Beautify display Index: main_index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -r1.35 -r1.36 *** main_index.lib.php3 2001/06/10 14:57:48 1.35 --- main_index.lib.php3 2001/06/12 19:46:14 1.36 *************** *** 895,901 **** if (C_SHOW_ADMIN) { ! 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 } --- 895,901 ---- if (C_SHOW_ADMIN) { ! echo((C_MAIL_FUNCTION) ? "\t\t\t\t||\n" : "\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-06-12 19:45:33
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/danish In directory usw-pr-cvs1:/tmp/cvs-serv19213/chat/localization/danish Modified Files: tutorial.loc chat.loc Log Message: Updated translation Index: tutorial.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/danish/tutorial.loc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** tutorial.loc 2001/06/10 14:57:48 1.3 --- tutorial.loc 2001/06/12 19:45:30 1.4 *************** *** 159,163 **** <a href="#actions" class="topLink">Handling</a><br /> <a href="#ignore" class="topLink">Ignorere andre brugere</a><br /> ! <a href="#away" class="topLink">Doing a pause</a><br /> <a href="#whois" class="topLink">Få information om andre brugere</a><br /> <?php --- 159,163 ---- <a href="#actions" class="topLink">Handling</a><br /> <a href="#ignore" class="topLink">Ignorere andre brugere</a><br /> ! <a href="#away" class="topLink">Holde en pause</a><br /> <a href="#whois" class="topLink">Få information om andre brugere</a><br /> <?php *************** *** 318,330 **** </p> <p> ! <!-- To update ! To simple regler er defieneret for bruger listen: ! --> ! Three basic rules have been defined for the users list: </p> <ol> <li>Et lille icon som viser kønnet er vist før navnet på registrede brugere (klik på det vil åbne <a href="#whois">whois pop-up vinduet</a> for denne bruger), mens uregisterede brugere kun har et blank mellemrum vist før brugernavnet;</li> <li>Nick navnet på moderator eller administrator er skrevet i kursiv form;</li> ! <li>the nicks of <a href="#away">inactive users</a> have a horizontal line striking through them.</li> </ol> <p> --- 318,327 ---- </p> <p> ! Tre simple regler er defineret for bruger listen: </p> <ol> <li>Et lille icon som viser kønnet er vist før navnet på registrede brugere (klik på det vil åbne <a href="#whois">whois pop-up vinduet</a> for denne bruger), mens uregisterede brugere kun har et blank mellemrum vist før brugernavnet;</li> <li>Nick navnet på moderator eller administrator er skrevet i kursiv form;</li> ! <li>Nick navnet på <a href="#away">inaktive brugere</a> har et overstreget nick.</li> </ol> <p> *************** *** 339,343 **** <ul> <li>Nicolas er admin eller en af moderatorerne i phpMyChat rummet;<br /><br /></li> ! <li>alien (hvis køn er ukendt), Jezek2 (who is not paying attention to the chat) og Caridad er registerede alm. brugere uden ekstra "funktioner" i phpMyChat rummet;<br /><br /></li> <li>lolo er en alm. ikke registrerede bruger.</li> </ul> --- 336,340 ---- <ul> <li>Nicolas er admin eller en af moderatorerne i phpMyChat rummet;<br /><br /></li> ! <li>alien (hvis køn er ukendt), Jezek2 (som er inaktiv i chatten) og Caridad er registerede alm. brugere uden ekstra "funktioner" i chatrummet;<br /><br /></li> <li>lolo er en alm. ikke registrerede bruger.</li> </ul> *************** *** 689,706 **** <p> ! <font size="+1"><a name="away"><b>Doing a pause:</b></a></font> </p> <p> ! To tell the other users you're not paying attention to the chat while being connected, type the <b>command "/away"</b> without quotes.<br /> ! Then your username will be displayed with a horizontal line striking through it in the users' list. </p> <p> ! To come back to the chat, just send a new message or use again the "/away" command. </p> <p> ! Note that you may send a message with the away ccommand.<br /> ! <i>For example :</i> /away I'll be back in a few minutes. </p> ! <p align="right"><a href="#top">Back to the top</a></p> <hr /> --- 686,703 ---- <p> ! <font size="+1"><a name="away"><b>Holde en pause:</b></a></font> </p> <p> ! For at fortælle de andre brugere i chatten at du forlader chatten for et øjeblik , skrives kommandoen <b>"/away"</b> uden ".<br /> ! Derefter vil dit brugernavn blive vist som værende overstreget i brugerlisten til højre. </p> <p> ! For at vende tilbage til chatten: Så send en ny besked eller brug kommandoen "/away" igen. </p> <p> ! Notér: Du kan også sende en besked med denne kommando.<br /> ! <i>For eksempel:</i> /away Jeg vil være tilbage om et lille øjeblik. </p> ! <p align="right"><a href="#top">Tilbage til toppen</a></p> <hr /> Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/danish/chat.loc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** chat.loc 2001/06/10 14:57:48 1.12 --- chat.loc 2001/06/12 19:45:30 1.13 *************** *** 132,141 **** define('L_ERR_USR_19', 'Du kan ikke være i mere end et rum ad gangen.'); define('L_ERR_USR_20', 'Du er blevet afvist af dette rum eller denne chat.'); ! define('L_ERR_USR_21', 'The maximum inactivity delay has been reached.'); define('L_ERR_ROM_1', 'Rummets navn kan ikke indeholde komma\'er eller backslash (\\).'); define('L_ERR_ROM_2', 'Ikke tilladt ord fundet i rummet navn du forsøger at oprette.'); define('L_ERR_ROM_3', 'Dette værelse findes allerede som offentligt værelse.'); define('L_ERR_ROM_4', 'Værelsesnavnet er ugyldigt.'); ! define('L_ERR_ROM_5', 'The maximum number of connected users is reached.'); // users frame or popup --- 132,141 ---- define('L_ERR_USR_19', 'Du kan ikke være i mere end et rum ad gangen.'); define('L_ERR_USR_20', 'Du er blevet afvist af dette rum eller denne chat.'); ! define('L_ERR_USR_21', 'Den maksimale tid for inaktivitet er nået.'); define('L_ERR_ROM_1', 'Rummets navn kan ikke indeholde komma\'er eller backslash (\\).'); define('L_ERR_ROM_2', 'Ikke tilladt ord fundet i rummet navn du forsøger at oprette.'); define('L_ERR_ROM_3', 'Dette værelse findes allerede som offentligt værelse.'); define('L_ERR_ROM_4', 'Værelsesnavnet er ugyldigt.'); ! define('L_ERR_ROM_5', 'Det maksimale antal af samtidige brugere er nået.'); // users frame or popup *************** *** 164,168 **** define('L_NONEXIST_USER', 'Bruger %s er ikke i dette rum.'); define('L_NONREG_USER', 'Bruger %s er ikke registreret.'); ! define('L_NONREG_USER_IP', 'Hans IP er: %s.'); define('L_NO_KICKED', 'Bruger %s er moderator eller administrator og kan derfor ikke kickes.'); define('L_KICKED', 'Bruger %s er nu blevet sparket ud.'); --- 164,168 ---- define('L_NONEXIST_USER', 'Bruger %s er ikke i dette rum.'); define('L_NONREG_USER', 'Bruger %s er ikke registreret.'); ! define('L_NONREG_USER_IP', 'IP\'en er: %s.'); define('L_NO_KICKED', 'Bruger %s er moderator eller administrator og kan derfor ikke kickes.'); define('L_KICKED', 'Bruger %s er nu blevet sparket ud.'); *************** *** 210,215 **** define('L_HELP_CMD_19', 'Tillader moderator af rummet eller administrator at "forvise" en bruger fra rummet for en tid defineret af administrator.<br />Administrator kan "forvise" en bruger på tværs af chatten.<br />Senere kan brugeren "forvises" for altid i hele chatten ved brug af \'<b> * </b>\' muligheden.'); define('L_HELP_CMD_20', 'Skriv hvad du fortager dig nu. F.eks /me drikker kaffe - skriver følgende besked: * <brugernick> drikker kaffe.'); ! define('L_HELP_CMD_21', 'Enable/disable graphical smilies mode.'); ! define('L_HELP_CMD_22', 'Tell the other users you\'re not paying attention to the chat ou set you being back. You can also send a message with this command.'); // smilies popup --- 210,215 ---- define('L_HELP_CMD_19', 'Tillader moderator af rummet eller administrator at "forvise" en bruger fra rummet for en tid defineret af administrator.<br />Administrator kan "forvise" en bruger på tværs af chatten.<br />Senere kan brugeren "forvises" for altid i hele chatten ved brug af \'<b> * </b>\' muligheden.'); define('L_HELP_CMD_20', 'Skriv hvad du fortager dig nu. F.eks /me drikker kaffe - skriver følgende besked: * <brugernick> drikker kaffe.'); ! define('L_HELP_CMD_21', 'Aktivere/de-aktivere brugen de grafiske smilies.'); ! define('L_HELP_CMD_22', 'Fortæl andre brugere at du ikke længere er disponibel i chatten. Du kan også sende en besked med denne kommando.'); // smilies popup |
From: Lo?c C. <lo...@us...> - 2001-06-12 19:45:08
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/admin In directory usw-pr-cvs1:/tmp/cvs-serv19094/chat/admin Modified Files: admin2.php3 admin1.php3 Log Message: Fix a bug when a nick contains a dot character Index: admin2.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/admin/admin2.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** admin2.php3 2001/06/10 14:59:13 1.5 --- admin2.php3 2001/06/12 19:45:05 1.6 *************** *** 150,154 **** for (reset($banUsers); $username = current($banUsers); next($banUsers)) { ! $encodedUsername = urlencode($username); $varName = 'user_' . $encodedUsername; if (!isset($$varName)) --- 150,154 ---- for (reset($banUsers); $username = current($banUsers); next($banUsers)) { ! $encodedUsername = md5($username); $varName = 'user_' . $encodedUsername; if (!isset($$varName)) *************** *** 268,271 **** --- 268,272 ---- { $username = pmcHandleMagicQuotes($username, '', 1, 'del'); + $usrHash = md5($username); $rooms = pmcHandleMagicQuotes($rooms, '', 1, 'del'); echo("\n"); *************** *** 273,278 **** <tr> <td valign="middle" align="center"> ! <input type="hidden" name="user_<?php echo(urlencode($username)); ?>" value="1" /> ! <input type="checkbox" name="delete_<?php echo(urlencode($username)); ?>" value="1" /> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> --- 274,279 ---- <tr> <td valign="middle" align="center"> ! <input type="hidden" name="user_<?php echo($usrHash); ?>" value="1" /> ! <input type="checkbox" name="delete_<?php echo($usrHash); ?>" value="1" /> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> *************** *** 283,291 **** </td> <td valign="middle" align="center"> ! <input type="text" name="rooms_<?php echo(urlencode($username)); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" size="40" /> ! <input type="hidden" name="old_rooms_<?php echo(urlencode($username)); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" /> </td> <td valign="middle" align="center"> ! <select name="until_<?php echo(urlencode($username)); ?>"> <?php // banished users for more than one year -> forever --- 284,292 ---- </td> <td valign="middle" align="center"> ! <input type="text" name="rooms_<?php echo($usrHash); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" size="40" /> ! <input type="hidden" name="old_rooms_<?php echo($usrHash); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" /> </td> <td valign="middle" align="center"> ! <select name="until_<?php echo($usrHash); ?>"> <?php // banished users for more than one year -> forever *************** *** 308,312 **** ?> </select> ! <input type="hidden" name="old_until_<?php echo(urlencode($username)); ?>" value="<?php echo(($banUntil > $forever) ? 'forever' : 'date')?>" /> </td> </tr> --- 309,313 ---- ?> </select> ! <input type="hidden" name="old_until_<?php echo($usrHash); ?>" value="<?php echo(($banUntil > $forever) ? 'forever' : 'date')?>" /> </td> </tr> Index: admin1.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/admin/admin1.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** admin1.php3 2001/06/10 14:59:13 1.4 --- admin1.php3 2001/06/12 19:45:05 1.5 *************** *** 307,311 **** { $username = $regUsers[$i]; ! $encodedUsername = urlencode($username); $varName = 'user_' . $encodedUsername; if (!isset($$varName)) // Current user wasn't in the list displayed --- 307,311 ---- { $username = $regUsers[$i]; ! $encodedUsername = md5($username); $varName = 'user_' . $encodedUsername; if (!isset($$varName)) // Current user wasn't in the list displayed *************** *** 569,572 **** --- 569,573 ---- { $username = $value[0]; + $usrHash = md5($username); $latin1 = $value[1]; $lastLog = $value[2]; *************** *** 578,583 **** <tr> <td valign="middle" align="center"> ! <input type="hidden" name="user_<?php echo(urlencode($username)); ?>" value="1" /> ! <input type="checkbox" name="selected_<?php echo(urlencode($username)); ?>" value="1" /> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> --- 579,584 ---- <tr> <td valign="middle" align="center"> ! <input type="hidden" name="user_<?php echo($usrHash); ?>" value="1" /> ! <input type="checkbox" name="selected_<?php echo($usrHash); ?>" value="1" /> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> *************** *** 591,603 **** </td> <td valign="middle" align="center"> ! <select name="perms_<?php echo(urlencode($username)); ?>"> <option value="user"<?php if (empty($perms)) echo(' selected="selected"'); ?>><?php echo(A_USER); ?></option> <option value="moderator"<?php if ($perms == 5) echo(' selected="selected"'); ?>><?php echo(A_MODER); ?></option> </select> ! <input type="hidden" name="old_perms_<?php echo(urlencode($username)); ?>" value="<?php echo($perms); ?>" /> </td> <td valign="middle" align="center"> ! <input type="text" name="rooms_<?php echo(urlencode($username)); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" size="40" onchange="pmcResetPerms('<?php echo(urlencode($username)); ?>');" /> ! <input type="hidden" name="old_rooms_<?php echo(urlencode($username)); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" /> </td> </tr> --- 592,604 ---- </td> <td valign="middle" align="center"> ! <select name="perms_<?php echo($usrHash); ?>"> <option value="user"<?php if (empty($perms)) echo(' selected="selected"'); ?>><?php echo(A_USER); ?></option> <option value="moderator"<?php if ($perms == 5) echo(' selected="selected"'); ?>><?php echo(A_MODER); ?></option> </select> ! <input type="hidden" name="old_perms_<?php echo($usrHash); ?>" value="<?php echo($perms); ?>" /> </td> <td valign="middle" align="center"> ! <input type="text" name="rooms_<?php echo($usrHash); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" size="40" onchange="pmcResetPerms('<?php echo($usrHash); ?>');" /> ! <input type="hidden" name="old_rooms_<?php echo($usrHash); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" /> </td> </tr> |
From: Lo?c C. <lo...@us...> - 2001-06-12 18:46:41
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/docs In directory usw-pr-cvs1:/tmp/cvs-serv6620/docs Modified Files: changes.txt Log Message: Fix a bug when a nick contains a dot character ***** Bogus filespec: - ***** Bogus filespec: 0.14/docs Index: changes.txt =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/docs/changes.txt,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** changes.txt 2001/06/08 17:47:16 1.16 --- changes.txt 2001/06/12 18:46:37 1.17 *************** *** 8,16 **** ! v 0.14.5-RC1 - 08/06/2001 """"""""""""""""""""""""" BUG FIXED : two security issues has been fixed thanks to Alexei Shalin <hap...@to...>. BUG FIXED : when registered users used the '/join' command or on the link in an invitation messages they may loose their rights or be kicked off --- 8,18 ---- ! v 0.14.5-RC1 - 12/06/2001 """"""""""""""""""""""""" BUG FIXED : two security issues has been fixed thanks to Alexei Shalin <hap...@to...>. + BUG FIXED : nicks containing dot characters can't be deleted/banished/updated + in the administration sheets BUG FIXED : when registered users used the '/join' command or on the link in an invitation messages they may loose their rights or be kicked off |
From: Lo?c C. <lo...@us...> - 2001-06-12 18:43:37
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat/admin In directory usw-pr-cvs1:/tmp/cvs-serv6048/chat/admin Modified Files: admin2.php3 admin1.php3 Log Message: Fix a bug when a nick contains a dot character ***** Bogus filespec: - ***** Bogus filespec: 0.14/chat/admin Index: admin2.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/admin/admin2.php3,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin2.php3 2001/02/25 19:10:09 1.2 --- admin2.php3 2001/06/12 18:43:35 1.3 *************** *** 19,29 **** for (reset($ban_users); $username=current($ban_users); next($ban_users)) { ! $usr = urlencode($username); ! $VarName = "user_".$usr; if (!isset($$VarName)) continue; // Remove banishment if ($DELETE_MODE) { ! $VarName = "delete_".$usr; if (isset($$VarName)) { --- 19,29 ---- for (reset($ban_users); $username=current($ban_users); next($ban_users)) { ! $usrHash = md5($username); ! $VarName = "user_".$usrHash; if (!isset($$VarName)) continue; // Remove banishment if ($DELETE_MODE) { ! $VarName = "delete_".$usrHash; if (isset($$VarName)) { *************** *** 37,44 **** else { ! $VarName = "rooms_".$usr; $rrr = $$VarName; ! $VarName = "until_".$usr; $ttt = $$VarName; ! $VarName = "old_rooms_".$usr; $old_rrr = $$VarName; ! $VarName = "old_until_".$usr; $old_ttt = $$VarName; if ($rrr == $old_rrr && $ttt == $old_ttt) continue; $AddUntil = ($ttt == "forever" ? ", ban_until='2147483647'" : ""); --- 37,44 ---- else { ! $VarName = "rooms_".$usrHash; $rrr = $$VarName; ! $VarName = "until_".$usrHash; $ttt = $$VarName; ! $VarName = "old_rooms_".$usrHash; $old_rrr = $$VarName; ! $VarName = "old_until_".$usrHash; $old_ttt = $$VarName; if ($rrr == $old_rrr && $ttt == $old_ttt) continue; $AddUntil = ($ttt == "forever" ? ", ban_until='2147483647'" : ""); *************** *** 133,141 **** while (list($username,$Latin1,$ip,$rooms,$until) = $DbLink->next_record()) { ?> ! <INPUT TYPE="hidden" NAME="user_<?echo(urlencode($username))?>" VALUE="1"> <TR> <TD VALIGN=CENTER ALIGN=CENTER> ! <INPUT type=checkbox name="delete_<?echo(urlencode($username))?>" value="1"> </TD> <TD VALIGN=CENTER ALIGN="<?php echo($CellAlign); ?>"> --- 133,142 ---- while (list($username,$Latin1,$ip,$rooms,$until) = $DbLink->next_record()) { + $usrHash = md5($username); ?> ! <INPUT TYPE="hidden" NAME="user_<?echo($usrHash)?>" VALUE="1"> <TR> <TD VALIGN=CENTER ALIGN=CENTER> ! <INPUT type=checkbox name="delete_<?echo($usrHash)?>" value="1"> </TD> <TD VALIGN=CENTER ALIGN="<?php echo($CellAlign); ?>"> *************** *** 146,154 **** </TD> <TD VALIGN=CENTER ALIGN=CENTER> ! <INPUT type=text name="rooms_<?echo(urlencode($username))?>" value="<?echo(stripslashes(htmlspecialchars($rooms)))?>" SIZE="40"> ! <INPUT type="hidden" name="old_rooms_<?echo(urlencode($username))?>" value="<?echo(htmlspecialchars($rooms))?>"> </TD> <TD VALIGN=CENTER ALIGN=CENTER> ! <SELECT name="until_<?echo(urlencode($username))?>"> <?php // banished users for more than one year -> forever --- 147,155 ---- </TD> <TD VALIGN=CENTER ALIGN=CENTER> ! <INPUT type=text name="rooms_<?echo($usrHash)?>" value="<?echo(stripslashes(htmlspecialchars($rooms)))?>" SIZE="40"> ! <INPUT type="hidden" name="old_rooms_<?echo($usrHash)?>" value="<?echo(htmlspecialchars($rooms))?>"> </TD> <TD VALIGN=CENTER ALIGN=CENTER> ! <SELECT name="until_<?echo($usrHash)?>"> <?php // banished users for more than one year -> forever *************** *** 169,173 **** ?> </SELECT> ! <INPUT type="hidden" name="old_until_<?echo(urlencode($username))?>" value="<?echo($until > $ForeverVal ? "forever" : "date")?>"> </TD> </TR> --- 170,174 ---- ?> </SELECT> ! <INPUT type="hidden" name="old_until_<?echo($usrHash)?>" value="<?echo($until > $ForeverVal ? "forever" : "date")?>"> </TD> </TR> Index: admin1.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/admin/admin1.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** admin1.php3 2001/03/24 13:20:33 1.3 --- admin1.php3 2001/06/12 18:43:35 1.4 *************** *** 21,31 **** for (reset($users); $username=current($users); next($users)) { ! $usr = urlencode($username); ! $VarName = "user_".$usr; if (!isset($$VarName)) continue; // Delete a profile after having sent a message to the user if he is connected if ($DELETE_MODE) { ! $VarName = "selected_".$usr; if (isset($$VarName)) { --- 21,31 ---- for (reset($users); $username=current($users); next($users)) { ! $usrHash = md5($username); ! $VarName = "user_".$usrHash; if (!isset($$VarName)) continue; // Delete a profile after having sent a message to the user if he is connected if ($DELETE_MODE) { ! $VarName = "selected_".$usrHash; if (isset($$VarName)) { *************** *** 51,55 **** elseif ($BANISH_MODE) { ! $VarName = "selected_".$usr; if (isset($$VarName)) { --- 51,55 ---- elseif ($BANISH_MODE) { ! $VarName = "selected_".$usrHash; if (isset($$VarName)) { *************** *** 73,80 **** else { ! $VarName = "perms_".$usr; $ppp = $$VarName; ! $VarName = "rooms_".$usr; $rrr = $$VarName; ! $VarName = "old_perms_".$usr; $old_ppp = $$VarName; ! $VarName = "old_rooms_".$usr; $old_rrr = $$VarName; if ($ppp == $old_ppp && $rrr == $old_rrr) continue; $uuu = addslashes($username); --- 73,80 ---- else { ! $VarName = "perms_".$usrHash; $ppp = $$VarName; ! $VarName = "rooms_".$usrHash; $rrr = $$VarName; ! $VarName = "old_perms_".$usrHash; $old_ppp = $$VarName; ! $VarName = "old_rooms_".$usrHash; $old_rrr = $$VarName; if ($ppp == $old_ppp && $rrr == $old_rrr) continue; $uuu = addslashes($username); *************** *** 237,245 **** while (list($username,$Latin1,$perms,$rooms,$lastTime,$IP) = $DbLink->next_record()) { ?> ! <INPUT TYPE="hidden" NAME="user_<?echo(urlencode($username))?>" VALUE="1"> <TR> <TD VALIGN=CENTER ALIGN=CENTER> ! <INPUT type=checkbox name="selected_<?echo(urlencode($username))?>" value="1"> </TD> <TD VALIGN=CENTER ALIGN="<?php echo($CellAlign); ?>"> --- 237,246 ---- while (list($username,$Latin1,$perms,$rooms,$lastTime,$IP) = $DbLink->next_record()) { + $usrHash = md5($username); ?> ! <INPUT TYPE="hidden" NAME="user_<?echo($usrHash)?>" VALUE="1"> <TR> <TD VALIGN=CENTER ALIGN=CENTER> ! <INPUT type=checkbox name="selected_<?echo($usrHash)?>" value="1"> </TD> <TD VALIGN=CENTER ALIGN="<?php echo($CellAlign); ?>"> *************** *** 253,265 **** </TD> <TD VALIGN=CENTER ALIGN=CENTER> ! <SELECT name="perms_<?echo(urlencode($username))?>"> <OPTION value="user"<?if($perms=="user") echo(" SELECTED")?>><?echo(A_USER)?></OPTION> <OPTION value="moderator"<?if($perms=="moderator") echo(" SELECTED")?>><?echo(A_MODER)?></OPTION> </SELECT> ! <INPUT type="hidden" name="old_perms_<?echo(urlencode($username))?>" value="<?echo($perms)?>"> </TD> <TD VALIGN=CENTER ALIGN=CENTER> ! <INPUT type=text name="rooms_<?echo(urlencode($username))?>" value="<?echo(stripslashes(htmlspecialchars($rooms)))?>" SIZE="40" onChange="reset_perms('<?echo(urlencode($username))?>');"> ! <INPUT type="hidden" name="old_rooms_<?echo(urlencode($username))?>" value="<?echo(htmlspecialchars($rooms))?>"> </TD> </TR> --- 254,266 ---- </TD> <TD VALIGN=CENTER ALIGN=CENTER> ! <SELECT name="perms_<?echo($usrHash)?>"> <OPTION value="user"<?if($perms=="user") echo(" SELECTED")?>><?echo(A_USER)?></OPTION> <OPTION value="moderator"<?if($perms=="moderator") echo(" SELECTED")?>><?echo(A_MODER)?></OPTION> </SELECT> ! <INPUT type="hidden" name="old_perms_<?echo($usrHash)?>" value="<?echo($perms)?>"> </TD> <TD VALIGN=CENTER ALIGN=CENTER> ! <INPUT type=text name="rooms_<?echo($usrHash)?>" value="<?echo(stripslashes(htmlspecialchars($rooms)))?>" SIZE="40" onChange="reset_perms('<?echo($usrHash)?>');"> ! <INPUT type="hidden" name="old_rooms_<?echo($usrHash)?>" value="<?echo(htmlspecialchars($rooms))?>"> </TD> </TR> |
From: Lo?c C. <lo...@us...> - 2001-06-12 18:42:37
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv5850/chat/lib Modified Files: index.lib.php3 Log Message: Changed the release number ***** Bogus filespec: - ***** Bogus filespec: 0.14/chat/lib Index: index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib/index.lib.php3,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** index.lib.php3 2001/06/08 17:46:46 1.14 --- index.lib.php3 2001/06/12 18:42:34 1.15 *************** *** 839,843 **** <!-- The lines below are usefull for debugging purpose, please do not remove them! ! Release: phpMyChat 0.14.3 © 2000-2001 The phpHeaven Team (http://www.phpheaven.net/) --> --- 839,843 ---- <!-- The lines below are usefull for debugging purpose, please do not remove them! ! Release: phpMyChat 0.14.5 © 2000-2001 The phpHeaven Team (http://www.phpheaven.net/) --> |
From: Lo?c C. <lo...@us...> - 2001-06-10 21:02:35
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/install/database In directory usw-pr-cvs1:/tmp/cvs-serv11183/chat/install/database Modified Files: pgsql.sql Log Message: Too many changes to detail. Index: pgsql.sql =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/install/database/pgsql.sql,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** pgsql.sql 2001/05/27 15:21:32 1.5 --- pgsql.sql 2001/06/10 21:02:33 1.6 *************** *** 1,2 **** --- 1,5 ---- + # ----------------------------------------- + # Tables structure for phpMyChat 0.15.0-dev + # ----------------------------------------- # # Please note that this model is a bit theorical: we don't test it yet. *************** *** 10,21 **** CREATE TABLE pmc_ban_users ( ! username varchar(30) PRIMARY KEY, latin1 int2 NOT NULL DEFAULT '0' , ip varchar(16) NOT NULL DEFAULT '' , rooms varchar(100) NOT NULL DEFAULT '' , ! ban_until int4 NOT NULL DEFAULT '0' ); ! CREATE INDEX ip ON pmc_ban_users (ip); ! CREATE INDEX ban_until ON pmc_ban_users (ban_until); --- 13,24 ---- CREATE TABLE pmc_ban_users ( ! username varchar(30) NOT NULL DEFAULT '' , latin1 int2 NOT NULL DEFAULT '0' , ip varchar(16) NOT NULL DEFAULT '' , rooms varchar(100) NOT NULL DEFAULT '' , ! ban_until int4 NOT NULL DEFAULT '0' , ! PRIMARY KEY (username, ip) ); ! CREATE INDEX idx1 ON pmc_ban_users (ban_until); *************** *** 25,40 **** CREATE TABLE pmc_messages ( - type int2 NOT NULL DEFAULT '0' , room varchar(30) NOT NULL DEFAULT '' , username varchar(30) NOT NULL DEFAULT '' , latin1 int2 NOT NULL DEFAULT '0' , m_time int4 NOT NULL DEFAULT '0' , ! address varchar(30) , color varchar(7) NOT NULL DEFAULT '#000000' , msg_original text NOT NULL DEFAULT '' , ! msg_enhanced text NOT NULL DEFAULT '' ); ! CREATE INDEX type ON pmc_messages (type); ! CREATE INDEX m_time ON pmc_messages (m_time); --- 28,43 ---- CREATE TABLE pmc_messages ( room varchar(30) NOT NULL DEFAULT '' , username varchar(30) NOT NULL DEFAULT '' , latin1 int2 NOT NULL DEFAULT '0' , m_time int4 NOT NULL DEFAULT '0' , ! address varchar(30) NOT NULL DEFAULT '' , color varchar(7) NOT NULL DEFAULT '#000000' , msg_original text NOT NULL DEFAULT '' , ! msg_enhanced text NOT NULL DEFAULT '' , ! PRIMARY KEY (username, room, m_time) ); ! CREATE INDEX idx1 ON pmc_messages (m_time, room, address, username); ! CREATE INDEX idx2 ON pmc_messages (m_time, username); *************** *** 44,78 **** CREATE TABLE pmc_reg_users ( ! username varchar(30) PRIMARY KEY , ! latin1 int2 NOT NULL DEFAULT '0' , password varchar(32) NOT NULL DEFAULT '' , firstname varchar(64) NOT NULL DEFAULT '' , lastname varchar(64) NOT NULL DEFAULT '' , ! country varchar(64) , ! website varchar(64) , email varchar(64) NOT NULL DEFAULT '' , showemail int2 NOT NULL DEFAULT '0' , - perms varchar(9) NOT NULL DEFAULT 'user' , - rooms varchar(128) NOT NULL DEFAULT '' , reg_time int4 NOT NULL DEFAULT '0' , ip varchar(16) NOT NULL DEFAULT '' , ! gender int2 NOT NULL DEFAULT '0' ); ! INSERT INTO pmc_reg_users VALUES('admin', '', 'admin', '', '', '', '', '', 0, 'admin', '', '', '', ''); ! CREATE INDEX reg_time ON pmc_reg_users (reg_time); ! CREATE INDEX perms ON pmc_reg_users (perms); # # Table structure for table 'pmc_sessions' # CREATE TABLE pmc_sessions ( ! session_id varchar(32) PRIMARY KEY , ip varchar(15) NOT NULL DEFAULT '' , last int4 NOT NULL DEFAULT '0' , ! data text ); ! CREATE INDEX last ON pmc_sessions (last); --- 47,108 ---- CREATE TABLE pmc_reg_users ( ! username varchar(30) NOT NULL DEFAULT '' , ! charset varchar(20) NOT NULL DEFAULT 'x-user-defined' , password varchar(32) NOT NULL DEFAULT '' , firstname varchar(64) NOT NULL DEFAULT '' , lastname varchar(64) NOT NULL DEFAULT '' , ! country varchar(64) NOT NULL DEFAULT '' , ! website varchar(200) NOT NULL DEFAULT '' , email varchar(64) NOT NULL DEFAULT '' , showemail int2 NOT NULL DEFAULT '0' , reg_time int4 NOT NULL DEFAULT '0' , ip varchar(16) NOT NULL DEFAULT '' , ! gender int2 NOT NULL DEFAULT '0' , ! PRIMARY KEY (username) ); ! CREATE INDEX idx1 ON pmc_reg_users (reg_time); ! INSERT INTO pmc_reg_users VALUES('admin', '', 'admin', '', '', '', '', '', 0, '', '', ''); # + # Table structure for table 'pmc_rights' + # right_level is : 10 for the administrator, + # 5 for a moderator + # + + CREATE TABLE pmc_rights ( + username varchar(30) NOT NULL DEFAULT '' , + room varchar(30) NOT NULL DEFAULT '' , + right_level int2 NOT NULL DEFAULT '5' , + PRIMARY KEY (username, room) + ); + CREATE INDEX idx1 ON pmc_rights (room); + INSERT INTO pmc_rights VALUES('admin', '', 10); + + + # + # Table structure for table 'pmc_rooms' + # + + CREATE TABLE pmc_rooms ( + room_type int2 NOT NULL DEFAULT '1' , + room_name varchar(30) NOT NULL DEFAULT '' , + last_user_modif int4 NOT NULL DEFAULT '0' , + PRIMARY KEY (room_name) + ); + + + # # Table structure for table 'pmc_sessions' # CREATE TABLE pmc_sessions ( ! session_id varchar(32) NOT NULL DEFAULT '' , ip varchar(15) NOT NULL DEFAULT '' , last int4 NOT NULL DEFAULT '0' , ! data text , ! PRIMARY KEY (session_id, ip) ); ! CREATE INDEX idx1 ON pmc_sessions (last); *************** *** 82,94 **** CREATE TABLE pmc_users ( ! session_id varchar(32) PRIMARY KEY , u_time int4 NOT NULL DEFAULT '0' , room varchar(30) NOT NULL DEFAULT '' , ! username varchar(30) PRIMARY KEY , latin1 int2 NOT NULL DEFAULT '0' , ! status char(1) NOT NULL DEFAULT 'u' , ! ip varchar(16) NOT NULL DEFAULT '' ); ! CREATE INDEX room ON pmc_users (room); ! CREATE INDEX status ON pmc_users (status); ! CREATE INDEX u_time ON pmc_users (u_time); --- 112,125 ---- CREATE TABLE pmc_users ( ! session_id varchar(32) NOT NULL DEFAULT '' , u_time int4 NOT NULL DEFAULT '0' , room varchar(30) NOT NULL DEFAULT '' , ! username varchar(30) NOT NULL DEFAULT '' , latin1 int2 NOT NULL DEFAULT '0' , ! status char(2) NOT NULL DEFAULT '0' , ! ip varchar(16) NOT NULL DEFAULT '' , ! away int2 NOT NULL DEFAULT '0' , ! PRIMARY KEY (username, room) ); ! CREATE INDEX idx1 ON pmc_users (u_time, status); ! CREATE INDEX idx2 ON pmc_users (session_id); |
From: Lo?c C. <lo...@us...> - 2001-06-10 21:02:08
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/install/database In directory usw-pr-cvs1:/tmp/cvs-serv11121/chat/install/database Modified Files: mysql.sql Log Message: Increased the size for the website url in pmc_reg_users Index: mysql.sql =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/install/database/mysql.sql,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** mysql.sql 2001/06/10 14:57:47 1.8 --- mysql.sql 2001/06/10 21:02:06 1.9 *************** *** 52,56 **** lastname varchar(64) NOT NULL DEFAULT '' , country varchar(64) NOT NULL DEFAULT '' , ! website varchar(64) NOT NULL DEFAULT '' , email varchar(64) NOT NULL DEFAULT '' , showemail tinyint(1) unsigned NOT NULL DEFAULT '0' , --- 52,56 ---- lastname varchar(64) NOT NULL DEFAULT '' , country varchar(64) NOT NULL DEFAULT '' , ! website varchar(200) NOT NULL DEFAULT '' , email varchar(64) NOT NULL DEFAULT '' , showemail tinyint(1) unsigned NOT NULL DEFAULT '0' , |
From: Lo?c C. <lo...@us...> - 2001-06-10 15:20:59
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/database In directory usw-pr-cvs1:/tmp/cvs-serv21654/chat/lib/database Modified Files: oci8.lib.php3 Log Message: Too many changes to detail. Index: oci8.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/database/oci8.lib.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** oci8.lib.php3 2001/04/19 21:05:04 1.4 --- oci8.lib.php3 2001/06/10 15:20:56 1.5 *************** *** 88,99 **** * Last result of ocipLogon() * ! * @var string $linkId */ var $linkId = 0; /** * Result of the most recent OciExecute() * ! * @var string $queryId */ var $queryId = 0; --- 88,108 ---- * Last result of ocipLogon() * ! * @var integer $linkId */ var $linkId = 0; /** + * The last valid query + * + * @var string $lastQuery + * + * @see pmcDB::numRows() + */ + var $lastQuery = ''; + + /** * Result of the most recent OciExecute() * ! * @var integer $queryId */ var $queryId = 0; *************** *** 233,236 **** --- 242,246 ---- return 0; } + $this->lastQuery = $queryString; return $this->queryId; *************** *** 266,278 **** * Get the number of rows returned by the last select query * * @return integer the number of matching records * * @access public * ! * @todo the whole function! */ function numRows() { ! return ($this->queryId) ? @OCIrowcount($this->queryId) : 0; } // end of the 'numRows()' method --- 276,331 ---- * Get the number of rows returned by the last select query * + * The idea of this method is to replace the columns' names to to get + * in the previous query by a 'COUNT(*)' statement. + * * @return integer the number of matching records * * @access public * ! * @todo test the whole function! */ function numRows() { ! // No Previous statement -> return 0 ! if (!$this->queryId) ! { ! return 0; ! } ! // Previous query was not a 'SELECT' statement -> return error ! else if ( strpos(' ' . $this->lastQuery, 'SELECT') != 1 ! || strpos(' ' . $this->lastQuery, 'select') != 1) ! { ! $GLOBALS['currentError']['code'] = 'none'; ! $GLOBALS['currentError']['message'] = 'Invalid statement: number of rows can\'t be returned for the last query'; ! $this->updateError('pmcDB::numRows()'); ! return false; ! } ! // numRows() is a valid function for the previous query ! else ! { ! // Backup some values ! $retLastQueryId = $this->queryId; ! $retLastQuery = $this->lastQuery; ! $retLastRecord = $this->record; ! $retCurrentRow = $this->currentRow; ! // Execute a 'COUNT(*)' statement ! $pos = (strpos($this->lastQuery, ' FROM ')) ! ? strpos($this->lastQuery, ' FROM ') ! : strpos($this->lastQuery, ' from '); ! $newQueryString = 'SELECT COUNT(*)' ! . substr($this->lastQuery, $pos); ! $this->query($newQueryString); ! $retCount = $this->record[0]; ! // Restore previous backups ! $this->currentRow = $retCurrentRow; ! $this->record = $retLastRecord; ! $setPointer = $this->record[$this->currentRow]; ! unset($retLastRecord); ! unset($setPointer); ! $this->lastQuery = $retLastQuery; ! $this->queryId = $retLastQueryId; ! ! return $retCount; ! } } // end of the 'numRows()' method |