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-12-05 19:32:11
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/georgian In directory usw-pr-cvs1:/tmp/cvs-serv469/chat/localization/georgian Modified Files: chat.loc Log Message: new strings to use with the new privileges system Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/georgian/chat.loc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** chat.loc 2001/12/04 19:59:41 1.13 --- chat.loc 2001/12/05 19:32:07 1.14 *************** *** 163,181 **** // input frame define('L_HLP', 'Help'); define('L_BAD_CMD', 'ÀÒÀÒÓÄÁÖËÉ ÁÒÞÀÍÄÁÀ !'); ! define('L_ADMIN', '%s is already administrator!'); ! define('L_IS_MODERATOR', '%s is already moderator!'); ! define('L_NO_MODERATOR', 'Only the moderator of this room can use this command.'); define('L_MODERATOR', '%s is now moderator for this room.'); define('L_NONEXIST_USER', 'User %s isn\'t in the current room.'); define('L_NONREG_USER', 'User %s isn\'t registered.'); define('L_NONREG_USER_IP', 'His IP is: %s.'); ! define('L_NO_KICKED', 'User %s is moderator or administrator and can\'t be kicked away.'); define('L_KICKED', 'User %s has successfully been kicked away.'); ! define('L_NO_BANISHED', 'User %s is moderator or administrator and can\'t be banished.'); define('L_BANISHED', 'User %s has successfully been banished.'); define('L_SVR_TIME', 'Server time: '); define('L_NO_SAVE', 'No message to save!'); - define('L_NO_ADMIN', 'Only the administrator can use this command.'); define('L_ANNOUNCE', 'ANNOUNCE'); define('L_INVITE', '%s suggest you to join her/him into the <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a> room.'); --- 163,180 ---- // input frame define('L_HLP', 'Help'); + define('L_NO_RIGHT', 'The right level you\'re granted isn\'t high enough to run this command.'); define('L_BAD_CMD', 'ÀÒÀÒÓÄÁÖËÉ ÁÒÞÀÍÄÁÀ !'); ! define('L_CANT_PROMOTE', 'The right level you\'re granted isn\'t high enough to promote %s.'); ! define('L_PROMOTED', '%s is now %s.'); define('L_MODERATOR', '%s is now moderator for this room.'); define('L_NONEXIST_USER', 'User %s isn\'t in the current room.'); define('L_NONREG_USER', 'User %s isn\'t registered.'); define('L_NONREG_USER_IP', 'His IP is: %s.'); ! define('L_CANT_KICK', 'The right level you\'re granted isn\'t high enough to kick away %s.'); define('L_KICKED', 'User %s has successfully been kicked away.'); ! define('L_CANT_BANISH', 'The right level you\'re granted isn\'t high enough to banish %s.'); define('L_BANISHED', 'User %s has successfully been banished.'); define('L_SVR_TIME', 'Server time: '); define('L_NO_SAVE', 'No message to save!'); define('L_ANNOUNCE', 'ANNOUNCE'); define('L_INVITE', '%s suggest you to join her/him into the <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a> room.'); *************** *** 262,267 **** define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Regular visitor in your current room'); ! define('L_RIGHT_1', 'Member in your current room'); define('L_RIGHT_0', 'Visitor'); --- 261,266 ---- define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Experienced member'); ! define('L_RIGHT_1', 'Member'); define('L_RIGHT_0', 'Visitor'); |
From: Lo?c C. <lo...@us...> - 2001-12-05 19:32:11
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/estonian In directory usw-pr-cvs1:/tmp/cvs-serv469/chat/localization/estonian Modified Files: chat.loc Log Message: new strings to use with the new privileges system Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/estonian/chat.loc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** chat.loc 2001/12/04 19:59:41 1.12 --- chat.loc 2001/12/05 19:32:06 1.13 *************** *** 156,174 **** // input frame define('L_HLP', 'Abi'); define('L_BAD_CMD', 'See käsk ei ole õige!'); ! define('L_ADMIN', '%s on juba administraator!'); ! define('L_IS_MODERATOR', '%s on juba moderaator!'); ! define('L_NO_MODERATOR', 'Ainult toa moderator saab kasutada seda käsku.'); define('L_MODERATOR', '%s on nüüd selle toa moderaator.'); define('L_NONEXIST_USER', 'Kasutaja %s ei ole selles toas.'); define('L_NONREG_USER', 'Kasutaja %s ei ole registereeritud.'); define('L_NONREG_USER_IP', 'Tema IP on: %s.'); ! define('L_NO_KICKED', 'Kasutaja %s on moderaator või administraator ja teda ei saa välja visata.'); define('L_KICKED', 'Kasutaja %s visati edukalt toast välja.'); ! define('L_NO_BANISHED', 'Kasutaja %s on moderaator või administraator ja teda ei saa blokeerida.'); define('L_BANISHED', 'Kasutaja %s blokeeriti edukalt.'); define('L_SVR_TIME', 'Serveri aeg: '); define('L_NO_SAVE', 'Pole sõnumeid, mida salvestada!'); - define('L_NO_ADMIN', 'Ainult administraator saab seda käsku kasutada.'); define('L_ANNOUNCE', 'TEADE'); define('L_INVITE', '%s palub sind enda juurde <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a> tuppa.'); --- 156,173 ---- // input frame define('L_HLP', 'Abi'); + define('L_NO_RIGHT', 'The right level you\'re granted isn\'t high enough to run this command.'); define('L_BAD_CMD', 'See käsk ei ole õige!'); ! define('L_CANT_PROMOTE', 'The right level you\'re granted isn\'t high enough to promote %s.'); ! define('L_PROMOTED', '%s is now %s.'); define('L_MODERATOR', '%s on nüüd selle toa moderaator.'); define('L_NONEXIST_USER', 'Kasutaja %s ei ole selles toas.'); define('L_NONREG_USER', 'Kasutaja %s ei ole registereeritud.'); define('L_NONREG_USER_IP', 'Tema IP on: %s.'); ! define('L_CANT_KICK', 'The right level you\'re granted isn\'t high enough to kick away %s.'); define('L_KICKED', 'Kasutaja %s visati edukalt toast välja.'); ! define('L_CANT_BANISH', 'The right level you\'re granted isn\'t high enough to banish %s.'); define('L_BANISHED', 'Kasutaja %s blokeeriti edukalt.'); define('L_SVR_TIME', 'Serveri aeg: '); define('L_NO_SAVE', 'Pole sõnumeid, mida salvestada!'); define('L_ANNOUNCE', 'TEADE'); define('L_INVITE', '%s palub sind enda juurde <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a> tuppa.'); *************** *** 250,255 **** define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Regular visitor in your current room'); ! define('L_RIGHT_1', 'Member in your current room'); define('L_RIGHT_0', 'Visitor'); --- 249,254 ---- define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Experienced member'); ! define('L_RIGHT_1', 'Member'); define('L_RIGHT_0', 'Visitor'); |
From: Lo?c C. <lo...@us...> - 2001-12-05 19:32:11
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/greek In directory usw-pr-cvs1:/tmp/cvs-serv469/chat/localization/greek Modified Files: chat.loc Log Message: new strings to use with the new privileges system Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/greek/chat.loc,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** chat.loc 2001/12/04 19:59:41 1.16 --- chat.loc 2001/12/05 19:32:07 1.17 *************** *** 157,175 **** // input frame define('L_HLP', 'ÂïÞèåéá'); define('L_BAD_CMD', 'ÌÞ åðéôñåðôÞ åíôïëÞ !'); ! define('L_ADMIN', 'Ï/Ç %s åßíáé Þäç äéá÷åéñéóôÞò!'); ! define('L_IS_MODERATOR', 'Ï/Ç %s åßíáé Þäç óõíôïíéóôÞò!'); ! define('L_NO_MODERATOR', 'Ìüíï ï óõíôïíéóôÞò ôçò áßèïõóáò ìðïñåß íá ÷ñçóéìïðïéÞóåé áýôç ôçí åíôïëÞ.'); define('L_MODERATOR', 'Ï/Ç %s åßíáé ôþñá óõíôïíéóôÞò ôçò áßèïõóáò.'); define('L_NONEXIST_USER', 'Ï/Ç %s äåí âñßóêåôáé óå áõôÞ ôçí áßèïõóá.'); define('L_NONREG_USER', 'Ï/Ç %s äåí Ý÷åé åããñáöÞ.'); define('L_NONREG_USER_IP', 'Ôï IP åßíáé %s.'); ! define('L_NO_KICKED', 'Ï/Ç %s åßíáé óõíôïíéóôÞò Þ äéá÷åéñéóôÞò êáé äåí ìðïñåß íá åêäéù÷èåß.'); define('L_KICKED', 'Ï/Ç %s åêäéþ÷èçêå åðéôõ÷þò.'); ! define('L_NO_BANISHED', 'Ï/Ç %s åßíáé óõíôïíéóôÞò Þ äéá÷åéñéóôÞò êáé äåí ìðïñåß íá åîïñéóôåß.'); define('L_BANISHED', 'Ï/Ç %s åîïñßóôéêå åðéôõ÷þò.'); define('L_SVR_TIME', '¿ñá server: '); define('L_NO_SAVE', 'Áíýðáñêôï ìÞíõìá!'); - define('L_NO_ADMIN', 'Ìüíï ï äéá÷åéñéóôÞò ìðïñåß íá ÷ñçóéìïðïéÞóåé áõôÞ ôçí åíôïëÞ.'); define('L_ANNOUNCE', 'ÁÍÁÊÏÉÍÙÓÇ'); define('L_INVITE', 'Ï/Ç %s óïõ ðñïôåßíåé íá óõíáíôçèåßôå óôçí áßèïõóá <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a>.'); --- 157,174 ---- // input frame define('L_HLP', 'ÂïÞèåéá'); + define('L_NO_RIGHT', 'The right level you\'re granted isn\'t high enough to run this command.'); define('L_BAD_CMD', 'ÌÞ åðéôñåðôÞ åíôïëÞ !'); ! define('L_CANT_PROMOTE', 'The right level you\'re granted isn\'t high enough to promote %s.'); ! define('L_PROMOTED', '%s is now %s.'); define('L_MODERATOR', 'Ï/Ç %s åßíáé ôþñá óõíôïíéóôÞò ôçò áßèïõóáò.'); define('L_NONEXIST_USER', 'Ï/Ç %s äåí âñßóêåôáé óå áõôÞ ôçí áßèïõóá.'); define('L_NONREG_USER', 'Ï/Ç %s äåí Ý÷åé åããñáöÞ.'); define('L_NONREG_USER_IP', 'Ôï IP åßíáé %s.'); ! define('L_CANT_KICK', 'The right level you\'re granted isn\'t high enough to kick away %s.'); define('L_KICKED', 'Ï/Ç %s åêäéþ÷èçêå åðéôõ÷þò.'); ! define('L_CANT_BANISH', 'The right level you\'re granted isn\'t high enough to banish %s.'); define('L_BANISHED', 'Ï/Ç %s åîïñßóôéêå åðéôõ÷þò.'); define('L_SVR_TIME', '¿ñá server: '); define('L_NO_SAVE', 'Áíýðáñêôï ìÞíõìá!'); define('L_ANNOUNCE', 'ÁÍÁÊÏÉÍÙÓÇ'); define('L_INVITE', 'Ï/Ç %s óïõ ðñïôåßíåé íá óõíáíôçèåßôå óôçí áßèïõóá <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a>.'); *************** *** 251,256 **** define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Regular visitor in your current room'); ! define('L_RIGHT_1', 'Member in your current room'); define('L_RIGHT_0', 'Visitor'); --- 250,255 ---- define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Experienced member'); ! define('L_RIGHT_1', 'Member'); define('L_RIGHT_0', 'Visitor'); |
From: Lo?c C. <lo...@us...> - 2001-12-05 19:32:11
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/danish In directory usw-pr-cvs1:/tmp/cvs-serv469/chat/localization/danish Modified Files: chat.loc Log Message: new strings to use with the new privileges system Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/danish/chat.loc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** chat.loc 2001/12/04 19:59:40 1.15 --- chat.loc 2001/12/05 19:32:06 1.16 *************** *** 157,175 **** // input frame define('L_HLP', 'Hjælp'); define('L_BAD_CMD', 'Kommandoen er ugyldig.'); ! define('L_ADMIN', '%s er allerede administrator !'); ! define('L_IS_MODERATOR', '%s er allerede moderator!'); ! define('L_NO_MODERATOR', 'Kun moderator af dette rum kan bruge denne kommando.'); define('L_MODERATOR', '%s er nu moderator for dette rum.'); 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.'); ! define('L_NO_BANISHED', 'Bruger %s er moderator eller administrator og kan derfor ikke afvises.'); define('L_BANISHED', 'Bruger %s er nu blevet afvist.'); define('L_SVR_TIME', 'Server tid: '); define('L_NO_SAVE', 'Ingen beskeder at gemme!'); - define('L_NO_ADMIN', 'Kun administrator kan bruge denne kommando.'); define('L_ANNOUNCE', 'Annonce'); define('L_INVITE', '%s invitere dig til at tilslutte dig hos ham/hende i <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a> rummet.'); --- 157,174 ---- // input frame define('L_HLP', 'Hjælp'); + define('L_NO_RIGHT', 'The right level you\'re granted isn\'t high enough to run this command.'); define('L_BAD_CMD', 'Kommandoen er ugyldig.'); ! define('L_CANT_PROMOTE', 'The right level you\'re granted isn\'t high enough to promote %s.'); ! define('L_PROMOTED', '%s is now %s.'); define('L_MODERATOR', '%s er nu moderator for dette rum.'); 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_CANT_KICK', 'The right level you\'re granted isn\'t high enough to kick away %s.'); define('L_KICKED', 'Bruger %s er nu blevet sparket ud.'); ! define('L_CANT_BANISH', 'The right level you\'re granted isn\'t high enough to banish %s.'); define('L_BANISHED', 'Bruger %s er nu blevet afvist.'); define('L_SVR_TIME', 'Server tid: '); define('L_NO_SAVE', 'Ingen beskeder at gemme!'); define('L_ANNOUNCE', 'Annonce'); define('L_INVITE', '%s invitere dig til at tilslutte dig hos ham/hende i <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a> rummet.'); *************** *** 252,257 **** define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Regular visitor in your current room'); ! define('L_RIGHT_1', 'Member in your current room'); define('L_RIGHT_0', 'Visitor'); --- 251,256 ---- define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Experienced member'); ! define('L_RIGHT_1', 'Member'); define('L_RIGHT_0', 'Visitor'); |
From: Lo?c C. <lo...@us...> - 2001-12-05 19:32:10
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/german In directory usw-pr-cvs1:/tmp/cvs-serv469/chat/localization/german Modified Files: chat.loc Log Message: new strings to use with the new privileges system Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/german/chat.loc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** chat.loc 2001/12/04 19:59:41 1.13 --- chat.loc 2001/12/05 19:32:07 1.14 *************** *** 162,180 **** // input frame define('L_HLP', 'Hilfe'); define('L_BAD_CMD', 'Dies ist kein gültiger Befehl!'); ! define('L_ADMIN', '%s ist bereits Administrator!'); ! define('L_IS_MODERATOR', '%s ist bereits Moderator!'); ! define('L_NO_MODERATOR', 'Nur der Moderator dieses Raums darf diesen Befehl verwenden.'); define('L_MODERATOR', '%s ist nun Moderator für diesen Raum.'); define('L_NONEXIST_USER', 'Benutzer %s ist nicht in diesem Raum'); define('L_NONREG_USER', 'Benutzer %s ist nicht angemeldet.'); define('L_NONREG_USER_IP', 'Seine IP ist: %s.'); ! define('L_NO_KICKED', 'Der Benutzer %s ist Moderator oder Administrator und kann nicht gekickt werden.'); define('L_KICKED', 'Der Benutzer %s wurde erfolgreich gekickt.'); ! define('L_NO_BANISHED', 'Der Benutzer %s ist Moderator oder Administrator und kann nicht verbannt werden.'); define('L_BANISHED', 'Der Benutzer %s wurde erfolgreich verbannt.'); define('L_SVR_TIME', 'Server Zeit: '); define('L_NO_SAVE', 'Keine Nachricht zum Speichern!'); - define('L_NO_ADMIN', 'Nur der Administrator kann diesen Befehl verwenden.'); define('L_ANNOUNCE', 'ANKÜNDIGUNG'); define('L_INVITE', '%s lädt Dich in den Raum <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a> ein.'); --- 162,179 ---- // input frame define('L_HLP', 'Hilfe'); + define('L_NO_RIGHT', 'The right level you\'re granted isn\'t high enough to run this command.'); define('L_BAD_CMD', 'Dies ist kein gültiger Befehl!'); ! define('L_CANT_PROMOTE', 'The right level you\'re granted isn\'t high enough to promote %s.'); ! define('L_PROMOTED', '%s is now %s.'); define('L_MODERATOR', '%s ist nun Moderator für diesen Raum.'); define('L_NONEXIST_USER', 'Benutzer %s ist nicht in diesem Raum'); define('L_NONREG_USER', 'Benutzer %s ist nicht angemeldet.'); define('L_NONREG_USER_IP', 'Seine IP ist: %s.'); ! define('L_CANT_KICK', 'The right level you\'re granted isn\'t high enough to kick away %s.'); define('L_KICKED', 'Der Benutzer %s wurde erfolgreich gekickt.'); ! define('L_CANT_BANISH', 'The right level you\'re granted isn\'t high enough to banish %s.'); define('L_BANISHED', 'Der Benutzer %s wurde erfolgreich verbannt.'); define('L_SVR_TIME', 'Server Zeit: '); define('L_NO_SAVE', 'Keine Nachricht zum Speichern!'); define('L_ANNOUNCE', 'ANKÜNDIGUNG'); define('L_INVITE', '%s lädt Dich in den Raum <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a> ein.'); *************** *** 257,262 **** define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Regular visitor in your current room'); ! define('L_RIGHT_1', 'Member in your current room'); define('L_RIGHT_0', 'Visitor'); --- 256,261 ---- define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); ! define('L_RIGHT_2', 'Experienced member'); ! define('L_RIGHT_1', 'Member'); define('L_RIGHT_0', 'Visitor'); |
From: Lo?c C. <lo...@us...> - 2001-12-05 19:32:10
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/french In directory usw-pr-cvs1:/tmp/cvs-serv469/chat/localization/french Modified Files: chat.loc Log Message: new strings to use with the new privileges system Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/french/chat.loc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** chat.loc 2001/12/04 19:59:41 1.11 --- chat.loc 2001/12/05 19:32:07 1.12 *************** *** 159,176 **** define('L_NO_RIGHT', 'Vous ne disposez pas des droits nécessaires à l\'exécution de cette commande.'); define('L_BAD_CMD', 'Commande invalide !'); ! define('L_ADMIN', '%s est déjà administrateur !'); ! define('L_IS_MODERATOR', '%s est déjà modérateur !'); ! define('L_NO_MODERATOR', 'Cette commande est réservée au(x) modérateur(s) de ce salon.'); define('L_MODERATOR', '%s est maintenant modérateur pour ce salon.'); define('L_NONEXIST_USER', 'Pas d\'utilisateur %s dans le salon courant.'); define('L_NONREG_USER', '%s n\'est pas un utilisateur enregistré.'); define('L_NONREG_USER_IP', 'Son adresse IP est : %s.'); ! define('L_NO_KICKED', 'L\'utilisateur %s est modérateur ou administrateur et ne peut être éjecté.'); define('L_KICKED', 'L\'utilisateur %s a été éjecté.'); ! define('L_NO_BANISHED', 'L\'utilisateur %s est modérateur ou administrateur et ne peut être banni.'); define('L_BANISHED', 'L\'utilisateur %s a été banni.'); define('L_SVR_TIME', 'Heure serveur : '); define('L_NO_SAVE', 'Aucun message à sauvegarder !'); - define('L_NO_ADMIN', 'Cette commande est réservée à l\'administrateur.'); define('L_ANNOUNCE', 'ANNONCE'); define('L_INVITE', '%s vous suggère de la/le rejoindre dans le salon <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a>.'); --- 159,174 ---- define('L_NO_RIGHT', 'Vous ne disposez pas des droits nécessaires à l\'exécution de cette commande.'); define('L_BAD_CMD', 'Commande invalide !'); ! define('L_CANT_PROMOTE', 'Vous ne disposez pas des droits nécessaires pour promouvoir %s.'); ! define('L_PROMOTED', '%s est maintenant %s.'); define('L_MODERATOR', '%s est maintenant modérateur pour ce salon.'); define('L_NONEXIST_USER', 'Pas d\'utilisateur %s dans le salon courant.'); define('L_NONREG_USER', '%s n\'est pas un utilisateur enregistré.'); define('L_NONREG_USER_IP', 'Son adresse IP est : %s.'); ! define('L_CANT_KICK', 'Vous ne disposez pas des droits nécessaires pour éjecter %s.'); define('L_KICKED', 'L\'utilisateur %s a été éjecté.'); ! define('L_CANT_BANISH', 'Vous ne disposez pas des droits nécessaires pour bannir %s.'); define('L_BANISHED', 'L\'utilisateur %s a été banni.'); define('L_SVR_TIME', 'Heure serveur : '); define('L_NO_SAVE', 'Aucun message à sauvegarder !'); define('L_ANNOUNCE', 'ANNONCE'); define('L_INVITE', '%s vous suggère de la/le rejoindre dans le salon <a href="%s" target="_parent" onclick="window.parent.pmcRunCmd(\'%s\', \'%s\'); return false">%s</a>.'); *************** *** 252,257 **** define('L_RIGHT_4', '<i>Modérateur de niveau 4 pour votre salon courant</i>'); define('L_RIGHT_3', '<i>Modérateur de niveau 3 pour votre salon courant</i>'); ! define('L_RIGHT_2', 'Utilisateur averti dans votre salon courant'); ! define('L_RIGHT_1', 'Membre dans votre salon courant'); define('L_RIGHT_0', 'Visiteur'); --- 250,255 ---- define('L_RIGHT_4', '<i>Modérateur de niveau 4 pour votre salon courant</i>'); define('L_RIGHT_3', '<i>Modérateur de niveau 3 pour votre salon courant</i>'); ! define('L_RIGHT_2', 'Utilisateur averti'); ! define('L_RIGHT_1', 'Membre'); define('L_RIGHT_0', 'Visiteur'); |
From: Lo?c C. <lo...@us...> - 2001-12-05 19:25:18
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv30964/chat/lib/index_libs Modified Files: start_page.lib.js msg_validation.lib.js Log Message: Fixed a js bug with NS3 Index: start_page.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/start_page.lib.js,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** start_page.lib.js 2001/11/29 23:01:50 1.14 --- start_page.lib.js 2001/12/05 19:25:15 1.15 *************** *** 227,235 **** var pswdField = document.forms['startingForm'].elements['pmcPassword']; var roomToCreate = document.forms['startingForm'].elements['createRoomName']; ! var reNick = /\\|,| /; ! var reRoom = /\\|,/; // Brief nick validation ! if (nickField.value.replace(/ /g, '') == '') // nick is empty { nickField.value = ''; --- 227,236 ---- var pswdField = document.forms['startingForm'].elements['pmcPassword']; var roomToCreate = document.forms['startingForm'].elements['createRoomName']; ! var reEmpty = new RegExp(' ', 'g'); ! var reNick = new RegExp('\\|,| '); ! var reRoom = new RegExp('\\|,'); // Brief nick validation ! if (nickField.value.replace(reEmpty, '') == '') // nick is empty { nickField.value = ''; *************** *** 247,252 **** // Brief password validation if (doCheckPswd ! && pswdField.value.replace(/ /g, '') == '') // registration is required ! { // but password is empty pswdField.value = ''; pswdField.focus(); --- 248,253 ---- // Brief password validation if (doCheckPswd ! && pswdField.value.replace(reEmpty, '') == '') // registration is required ! { // but password is empty pswdField.value = ''; pswdField.focus(); *************** *** 257,261 **** // Ensure there is a password if the user wants to create room if (typeof(roomToCreate) != 'undefined' && roomToCreate.value != '' ! && pswdField.value.replace(/ /g, '') == '') { pswdField.focus(); --- 258,262 ---- // Ensure there is a password if the user wants to create room if (typeof(roomToCreate) != 'undefined' && roomToCreate.value != '' ! && pswdField.value.replace(reEmpty, '') == '') { pswdField.focus(); *************** *** 267,271 **** if (typeof(roomToCreate) != 'undefined' && roomToCreate != '') { ! if (roomToCreate.value.replace(/ /g, '') == '') // only space chars { roomToCreate.value = ''; --- 268,272 ---- if (typeof(roomToCreate) != 'undefined' && roomToCreate != '') { ! if (roomToCreate.value.replace(reEmpty, '') == '') // only space chars { roomToCreate.value = ''; Index: msg_validation.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/msg_validation.lib.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** msg_validation.lib.js 2001/06/10 14:57:48 1.4 --- msg_validation.lib.js 2001/12/05 19:25:15 1.5 *************** *** 27,53 **** var validCmds = new Array; ! validCmds[0] = /^\/!$/; ! validCmds[1] = /^\/announce (.+)$/i; ! validCmds[2] = /^\/away( (.+))?$/i; ! validCmds[3] = /^\/ban (\* )?(.{1,30})$/i; ! validCmds[4] = (jsIsVersion4) ? /^\/clear$/i : ''; ! validCmds[5] = /^\/(help|\?)$/i; ! validCmds[6] = /^\/ignore( -)?( (.+))?$/i; ! validCmds[7] = /^\/img$/i; ! validCmds[8] = /^\/invite( (.+))+$/i; ! validCmds[9] = /^\/join ((0|1) )?#(.{1,30})$/i; ! validCmds[10] = /^\/kick (.{1,30})$/i; ! validCmds[11] = /^\/me (.+)$/i; ! validCmds[12] = /^\/(msg|to) ([^ ]{1,30}) (.+)$/i; ! validCmds[13] = /^\/notify$/i; ! validCmds[14] = (jsIsVersion4) ? '' : /^\/order$/i; ! validCmds[15] = /^\/profile$/i; ! validCmds[16] = /^\/promote (.{1,30})$/i; ! validCmds[17] = /^\/(quit|exit|bye)( (.+))?$/i; ! validCmds[18] = /^\/refresh( ([0-9]*))?$/i; ! validCmds[19] = /^\/save( ([0-9]*))?$/i; ! validCmds[20] = /^\/(show|last)( ([0-9]+))?$/i; ! validCmds[21] = /^\/timestamp$/i; ! validCmds[22] = /^\/whois (.{1,30})$/i; --- 27,53 ---- var validCmds = new Array; ! validCmds[0] = new RegExp('^\/!$'); ! validCmds[1] = new RegExp('^\/announce (.+)$', 'i'); ! validCmds[2] = new RegExp('^\/away( (.+))?$', 'i'); ! validCmds[3] = new RegExp('^\/ban (\\* )?(.{1,30})$', 'i'); ! validCmds[4] = (jsIsVersion4) ? new RegExp('^\/clear$', 'i') : ''; ! validCmds[5] = new RegExp('^\/(help|\\?)$', 'i'); ! validCmds[6] = new RegExp('^\/ignore( -)?( (.+))?$', 'i'); ! validCmds[7] = new RegExp('^\/img$', 'i'); ! validCmds[8] = new RegExp('^\/invite( (.+))+$', 'i'); ! validCmds[9] = new RegExp('^\/join ((0|1) )?#(.{1,30})$', 'i'); ! validCmds[10] = new RegExp('^\/kick (.{1,30})$', 'i'); ! validCmds[11] = new RegExp('^\/me (.+)$', 'i'); ! validCmds[12] = new RegExp('^\/(msg|to) ([^ ]{1,30}) (.+)$', 'i'); ! validCmds[13] = new RegExp('^\/notify$', 'i'); ! validCmds[14] = (jsIsVersion4) ? '' : new RegExp('^\/order$', 'i'); ! validCmds[15] = new RegExp('^\/profile$', 'i'); ! validCmds[16] = new RegExp('^\/promote (.{1,30})$', 'i'); ! validCmds[17] = new RegExp('^\/(quit|exit|bye)( (.+))?$', 'i'); ! validCmds[18] = new RegExp('^\/refresh( ([0-9]*))?$', 'i'); ! validCmds[19] = new RegExp('^\/save( ([0-9]*))?$', 'i'); ! validCmds[20] = new RegExp('^\/(show|last)( ([0-9]+))?$', 'i'); ! validCmds[21] = new RegExp('^\/timestamp$', 'i'); ! validCmds[22] = new RegExp('^\/whois (.{1,30})$', 'i'); *************** *** 92,100 **** var isCmd = (msgBox.value.substring(0,1) == '/'); // RegExp for some perticular command ! var reHist = /^\/!$/; ! var reHelp = /^\/(\?|help)$/i; // Ensure the message box isn't empty ! if (msgBox.value.replace(/ /g, '') == '') { return false; --- 92,101 ---- var isCmd = (msgBox.value.substring(0,1) == '/'); // RegExp for some perticular command ! var reEmpty = new RegExp(' ', 'g'); ! var reHist = new RegExp('^\/!$'); ! var reHelp = new RegExp('^\/(\\?|help)$', 'i'); // Ensure the message box isn't empty ! if (msgBox.value.replace(reEmpty, '') == '') { return false; |
From: Lo?c C. <lo...@us...> - 2001-12-05 19:25:18
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv30964/chat/lib Modified Files: profile_work.lib.js login.lib.js Log Message: Fixed a js bug with NS3 Index: profile_work.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/profile_work.lib.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** profile_work.lib.js 2001/06/10 14:57:48 1.5 --- profile_work.lib.js 2001/12/05 19:25:15 1.6 *************** *** 52,60 **** var emailField = document.forms[formName].elements['pmcProfEmail']; ! var reNick = /\\|,| /; ! var reEmail = /^([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)?)$/i; // Brief nick validation ! if (nickField.value.replace(/ /g, '') == '') // nick is empty { nickField.value = ''; --- 52,61 ---- var emailField = document.forms[formName].elements['pmcProfEmail']; ! var reEmpty = new RegExp(' ', 'g'); ! var reNick = new RegExp('\\|,| '); ! var reEmail = new RegExp('^([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)?)$', 'i'); // Brief nick validation ! if (nickField.value.replace(reEmpty, '') == '') // nick is empty { nickField.value = ''; *************** *** 72,76 **** // Brief password validation if (!jsIsMailValid ! && pswdField.value.replace(/ /g, '') == '') // password is empty { pswdField.value = ''; --- 73,77 ---- // Brief password validation if (!jsIsMailValid ! && pswdField.value.replace(reEmpty, '') == '') // password is empty { pswdField.value = ''; *************** *** 81,85 **** // Brief first and last name validation ! if (fNameField.value.replace(/ /g, '') == '') // first name is empty { fNameField.value = ''; --- 82,86 ---- // Brief first and last name validation ! if (fNameField.value.replace(reEmpty, '') == '') // first name is empty { fNameField.value = ''; *************** *** 88,92 **** return false; } ! if (lNameField.value.replace(/ /g, '') == '') // last name is empty { lNameField.value = ''; --- 89,93 ---- return false; } ! if (lNameField.value.replace(reEmpty, '') == '') // last name is empty { lNameField.value = ''; *************** *** 97,101 **** // Brief email validation ! if (emailField.value.replace(/ /g, '') == '') // email is empty { emailField.value = ''; --- 98,102 ---- // Brief email validation ! if (emailField.value.replace(reEmpty, '') == '') // email is empty { emailField.value = ''; *************** *** 127,133 **** var nickField = document.forms[formName].elements['pmcProfNick']; ! var reNick = /\\|,| /; ! if (nickField.value.replace(/ /g, '') == '') // nick is empty { nickField.value = ''; --- 128,135 ---- var nickField = document.forms[formName].elements['pmcProfNick']; ! var reEmpty = new RegExp(' ', 'g'); ! var reNick = new RegExp('\\|,| '); ! if (nickField.value.replace(reEmpty, '') == '') // nick is empty { nickField.value = ''; Index: login.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/login.lib.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** login.lib.js 2001/06/10 14:57:48 1.4 --- login.lib.js 2001/12/05 19:25:15 1.5 *************** *** 35,42 **** var nickField = document.forms['loginForm'].elements['pmcAuthUsername']; var pswdField = document.forms['loginForm'].elements['pmcAuthPassword']; ! var re = /\\|,| /; // Brief nick validation ! if (nickField.value.replace(/ /g, '') == '') // nick is empty { nickField.value = ''; --- 35,43 ---- var nickField = document.forms['loginForm'].elements['pmcAuthUsername']; var pswdField = document.forms['loginForm'].elements['pmcAuthPassword']; ! var reEmpty = new RegExp(' ', 'g'); ! var re = new RegExp('\\|,| '); // Brief nick validation ! if (nickField.value.replace(reEmpty, '') == '') // nick is empty { nickField.value = ''; *************** *** 53,57 **** // Brief password validation ! if (pswdField.value.replace(/ /g, '') == '') // password is empty { pswdField.value = ''; --- 54,58 ---- // Brief password validation ! if (pswdField.value.replace(reEmpty, '') == '') // password is empty { pswdField.value = ''; |
From: Lo?c C. <lo...@us...> - 2001-12-05 19:23:13
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv30028/chat/lib Modified Files: release.lib.php3 Log Message: Updated the release number ***** Bogus filespec: - ***** Bogus filespec: 0.14/chat/lib Index: release.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib/release.lib.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** release.lib.php3 2001/07/02 19:39:16 1.10 --- release.lib.php3 2001/12/05 19:23:09 1.11 *************** *** 1,4 **** <?php define("APP_NAME", "phpMyChat"); // Application name ! define("APP_VERSION", "0.14.5"); // Application version number ?> --- 1,4 ---- <?php define("APP_NAME", "phpMyChat"); // Application name ! define("APP_VERSION", "0.14.6-dev"); // Application version number ?> |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:16:47
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/docs In directory usw-pr-cvs1:/tmp/cvs-serv19143/docs Modified Files: changes.txt Log Message: Begin right levels improvement Index: changes.txt =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/docs/changes.txt,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** changes.txt 2001/12/04 18:44:13 1.13 --- changes.txt 2001/12/04 20:16:43 1.14 *************** *** 13,18 **** TABLES HAVE BEEN UPDATED !!! ENHANCEMENT : available languages now cached on a one hour timeout basis instead of ! being computed on each request ENHANCEMENT : a custom database driven session system has been added to enforce security and also to beautify the script ;) --- 13,19 ---- TABLES HAVE BEEN UPDATED !!! + ENHANCEMENT : up to 10 different user status are available ENHANCEMENT : available languages now cached on a one hour timeout basis instead of ! being computed on each request. ENHANCEMENT : a custom database driven session system has been added to enforce security and also to beautify the script ;) *************** *** 20,24 **** 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 : password are no long crypted and a password reminder has been added (if --- 21,25 ---- 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 then should also with Netscape 6). ENHANCEMENT : password are no long crypted and a password reminder has been added (if |
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands In directory usw-pr-cvs1:/tmp/cvs-serv15026/chat/lib/commands Modified Files: announce.cmd.php3 banish.cmd.php3 join.cmd.php3 kick.cmd.php3 promote.cmd.php3 whois.cmd.php3 Log Message: Begin right levels improvement Index: announce.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/announce.cmd.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** announce.cmd.php3 2001/06/10 14:57:48 1.10 --- announce.cmd.php3 2001/12/04 20:01:33 1.11 *************** *** 36,79 **** /** ! * The current user is administrator -> insert the message in the 'messages' ! * table */ ! if ($dbSessionVars['status'] == 10) { ! // Format original message and set enhanced one (with graphical smilies) ! $originalMessage = formatMessage($cmd[1]); ! $enhancedMessage = $originalMessage; ! if (C_MAX_GSMILIES) ! { ! include('./lib/smilies.lib.' . C_EXTENSION); ! pmcCheckForSmilies($enhancedMessage); ! unset($smilies); ! } ! ! // Put the message in the 'messages' table ! $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' ! . '(room, username, latin1, m_time, color, msg_original, msg_enhanced) ' ! . 'VALUES (' ! . "'\\\*\\\', " ! . "'SYS announce', " ! . $latin1 . ', ' ! . time() . ', ' ! . '\'' . $color . '\', ' ! . '\'' . pmcSlashSingleQuotes($originalMessage) . '\', ' ! . '\'' . pmcSlashSingleQuotes($enhancedMessage) . '\'' ! . ')'; ! $dbLink->query($msgQuery); ! ! $isCommand = true; ! $doRefreshMessages = true; } ! /** ! * The current user is not adminsitrator -> set an error message ! */ ! else ! { ! $error = L_NO_ADMIN; ! } ?> --- 36,67 ---- /** ! * Insert the message in the 'messages' table */ ! // Format original message and set enhanced one (with graphical smilies) ! $originalMessage = formatMessage($cmd[1]); ! $enhancedMessage = $originalMessage; ! if (C_MAX_GSMILIES) { ! include('./lib/smilies.lib.' . C_EXTENSION); ! pmcCheckForSmilies($enhancedMessage); ! unset($smilies); } ! // Put the message in the 'messages' table ! $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' ! . '(room, username, latin1, m_time, color, msg_original, msg_enhanced) ' ! . 'VALUES (' ! . "'\\\*\\\', " ! . "'SYS announce', " ! . $latin1 . ', ' ! . time() . ', ' ! . '\'' . $color . '\', ' ! . '\'' . pmcSlashSingleQuotes($originalMessage) . '\', ' ! . '\'' . pmcSlashSingleQuotes($enhancedMessage) . '\'' ! . ')'; ! $dbLink->query($msgQuery); ! ! $isCommand = true; ! $doRefreshMessages = true; ?> Index: banish.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/banish.cmd.php3,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** banish.cmd.php3 2001/06/10 14:57:48 1.12 --- banish.cmd.php3 2001/12/04 20:01:34 1.13 *************** *** 44,55 **** /** - * Ensure the current user is allowed to use the 'banish' command - */ - else if ($dbSessionVars['status'] < 5) - { - $error = L_NO_MODERATOR; - } - - /** * Ensure the current user is allowed to 'banish' the target user before doing * the work --- 44,47 ---- *************** *** 64,68 **** // Define an additional condition for moderators so they can only banish an // user from their current room ! $queryRoomPart = ($dbSessionVars['status'] == 5) ? 'room = \'' . $slashedCurrentRoomName . '\' AND ' : ''; --- 56,60 ---- // Define an additional condition for moderators so they can only banish an // user from their current room ! $queryRoomPart = ($dbSessionVars['status'] < $rightLevels['cmd_banish_adv']) ? 'room = \'' . $slashedCurrentRoomName . '\' AND ' : ''; *************** *** 89,93 **** { $targetCurrentRoom = pmcHandleMagicQuotes($targetCurrentRoom, '', 1, 'del'); ! if ($cmd[1] == '* ' && $dbSessionVars['status'] < 10) { $cmd[1] = ''; --- 81,85 ---- { $targetCurrentRoom = pmcHandleMagicQuotes($targetCurrentRoom, '', 1, 'del'); ! if ($cmd[1] == '* ' && $dbSessionVars['status'] < $rightLevels['cmd_banish_adv']) { $cmd[1] = ''; Index: join.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/join.cmd.php3,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** join.cmd.php3 2001/11/29 22:00:56 1.13 --- join.cmd.php3 2001/12/04 20:01:34 1.14 *************** *** 151,155 **** // 3. Ensure the user is not banished from the room he wants to enter in ! if (empty($error) && C_BANISH && $dbSessionVars['status'] < 10) { if (!function_exists('pmcCheckBanish')) --- 151,155 ---- // 3. Ensure the user is not banished from the room he wants to enter in ! if (empty($error) && C_BANISH && $dbSessionVars['status'] < 7) { if (!function_exists('pmcCheckBanish')) Index: kick.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/kick.cmd.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** kick.cmd.php3 2001/06/10 14:57:48 1.6 --- kick.cmd.php3 2001/12/04 20:01:34 1.7 *************** *** 44,56 **** /** - * Ensure the current user is allowed to use the 'kick' command - */ - else if ($dbSessionVars['status'] < 5) - { - $error = L_NO_MODERATOR; - } - - - /** * Ensure the current user is allowed to 'kick' the target user before doing * the work --- 44,47 ---- *************** *** 65,69 **** // Define an additional condition for moderators so they can only kick an // user from their current room ! $queryRoomPart = ($dbSessionVars['status'] == 5) ? 'room = \'' . $slashedCurrentRoomName . '\' AND ' : ''; --- 56,60 ---- // Define an additional condition for moderators so they can only kick an // user from their current room ! $queryRoomPart = ($dbSessionVars['status'] < $rightLevels['cmd_kick_adv']) ? 'room = \'' . $slashedCurrentRoomName . '\' AND ' : ''; Index: promote.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/promote.cmd.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** promote.cmd.php3 2001/06/10 14:57:48 1.7 --- promote.cmd.php3 2001/12/04 20:01:34 1.8 *************** *** 45,57 **** /** - * Ensure the current user is allowed to use the 'promote' command - */ - else if ($dbSessionVars['status'] < 5) - { - $error = L_NO_MODERATOR; - } - - - /** * Ensure the target user can be promoted before doing the work * --- 45,48 ---- Index: whois.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/whois.cmd.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** whois.cmd.php3 2001/06/10 14:57:48 1.10 --- whois.cmd.php3 2001/12/04 20:01:34 1.11 *************** *** 60,64 **** if (!$isProfile) { ! if ($dbSessionVars['status'] == 10 || $dbSessionVars['nick'] == $cmd[1]) { $dbLink->query("SELECT ip FROM " . C_USR_TBL . " WHERE username='" . $slashedTarget . "' LIMIT 1"); --- 60,65 ---- if (!$isProfile) { ! if ($dbSessionVars['status'] >= $rightLevels['cmd_whois_ip'] ! || $dbSessionVars['nick'] == $cmd[1]) { $dbLink->query("SELECT ip FROM " . C_USR_TBL . " WHERE username='" . $slashedTarget . "' LIMIT 1"); |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:01:08
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv14795/chat/lib/index_libs Modified Files: do_enter_db_work.lib.php3 do_enter_js_work.lib.php3 index_validation.lib.php3 main_index.lib.php3 Log Message: Begin right levels improvement Index: do_enter_db_work.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/do_enter_db_work.lib.php3,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** do_enter_db_work.lib.php3 2001/11/29 22:00:56 1.26 --- do_enter_db_work.lib.php3 2001/12/04 20:01:04 1.27 *************** *** 102,109 **** * (password are no long crypted) */ ! if ($isRegUser) { $slashedPswd = pmcSlashSingleQuotes(str_replace('\\', '\\\\', $pmcPassword)); ! $dbLink->query("UPDATE " . C_REG_TBL . " SET passwd = '$slashedPswd', reg_time = $currentTime, ip = '$ip' WHERE username = '$slashedNick'"); } --- 102,109 ---- * (password are no long crypted) */ ! if ($isRegUser && empty($reloading)) { $slashedPswd = pmcSlashSingleQuotes(str_replace('\\', '\\\\', $pmcPassword)); ! $dbLink->query("UPDATE " . C_REG_TBL . " SET passwd = '$slashedPswd', reg_time = $currentTime, ip = '$ip', log_times = $regUserLogTimes WHERE username = '$slashedNick'"); } *************** *** 123,131 **** if ($wasInRoom != '') { ! // 1.a ...in the same room -> updates his last loggin time and his IP ! // address; if ($targetRoom == $wasInRoom) { ! $dbLink->query("UPDATE " . C_USR_TBL . " SET u_time = $currentTime, ip = '$ip', away = 0 WHERE session_id = '$dbSessionId'"); } --- 123,131 ---- if ($wasInRoom != '') { ! // 1.a ...in the same room -> updates his last loggin time, right_level, ip ! // and away status; if ($targetRoom == $wasInRoom) { ! $dbLink->query("UPDATE " . C_USR_TBL . " SET u_time = $currentTime, status = $status, ip = '$ip', away = 0 WHERE session_id = '$dbSessionId'"); } 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.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** do_enter_js_work.lib.php3 2001/11/30 19:30:35 1.16 --- do_enter_js_work.lib.php3 2001/12/04 20:01:04 1.17 *************** *** 78,82 **** <script type="text/javascript" language="javascript1.1"> <!-- ! var jsIsModerator = <?php echo(($status >= 5) ? 1 : 0); ?>; // --> </script> --- 78,82 ---- <script type="text/javascript" language="javascript1.1"> <!-- ! var jsIsModerator = <?php echo(($status >= 3) ? 1 : 0); ?>; // --> </script> Index: index_validation.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/index_validation.lib.php3,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** index_validation.lib.php3 2001/11/26 22:16:08 1.15 --- index_validation.lib.php3 2001/12/04 20:01:04 1.16 *************** *** 40,43 **** --- 40,44 ---- * @param string previous id of the user whith the same nick * @param string name of the room the user was chatting into + * @param integer the number of times the user logged in * * @return string error number (empty if no error) *************** *** 52,56 **** * @access public */ ! function pmcValidateNickAndPaswd(&$isRegNick, &$loggedInId, &$loggedInRoom) { global $isJsValidated; --- 53,57 ---- * @access public */ ! function pmcValidateNickAndPaswd(&$isRegNick, &$loggedInId, &$loggedInRoom, &$logTimes) { global $isJsValidated; *************** *** 63,150 **** $requireReg = C_REQUIRE_REGISTER; ! // 1. Ensures invalid characters/words aren't in use for the nick ! // Ensures a nick has been submitted ! if (!$isJsValidated && $pmcNick == '') { ! $error1 = L_ERR_USR_2; ! } ! // Checks for invalid characters or empty nick ! else if (!$isJsValidated && ! (trim($pmcNick) == '' || ereg('[\, ]', $pmcNick))) ! { ! $error1 = L_ERR_USR_16; ! } ! // Checks for swear words in the nick ! else if (C_NO_SWEAR) ! { ! if (checkWords($pmcNick, true)) { ! $error1 = L_ERR_USR_18; } ! } ! // end of the 1st stage (character validation inside the nick) ! // 2. If the nick is currently in use, gets the corresponding room name and ! // sets the $requireReg variable to true ! if ($error1 == '') { ! $dbLink->query("SELECT session_id, room FROM " . C_USR_TBL . " WHERE username = '$slashedNick' LIMIT 1"); ! $isLoggedIn = (list($loggedInId, $loggedInRoom) = $dbLink->nextRecord()); ! if ($isLoggedIn) { ! $loggedInRoom = pmcHandleMagicQuotes($loggedInRoom, '', 1, 'del'); ! $requireReg = true; } ! } ! // end of the 2nd stage (checking if the nick is already in use) ! ! // 3. If registration is required but no password has been submitted ! // -> deny access ! if ($error1 == '' && !$isJsValidated && $requireReg) ! { ! if ($pmcPassword == '') { ! $error1 = ($isLoggedIn) ? L_ERR_USR_1 : L_ERR_USR_14; } ! } ! // end of the 3rd stage (a password has been submitted if required) ! ! // 4. Ensure a valid password has been submitted if the nick is a ! // registered one ! if ($error1 == '') ! { ! $dbLink->query("SELECT passwd FROM " . C_REG_TBL . " WHERE username = '$slashedNick' LIMIT 1"); ! $isRegNick = (list($regUserPassword) = $dbLink->nextRecord()); ! if ($isRegNick) { ! $regUserPassword = pmcHandleMagicQuotes($regUserPassword, '', 1, 'del'); } ! $dbLink->cleanResults(); ! // Nick isn't a registered one but registration is required ! if (!$isRegNick && $requireReg) ! { ! $error1 = L_ERR_USR_14; } ! // Skip the validation of the password when it has already be done before ! // the 'main_index.lib.php3' is ran ! else if (!isset($GLOBALS['$exitMessage']) && $isRegNick) { ! // Reserved nick but no password submitted -> deny access ! if (!$isJsValidated && $pmcPassword == '') { ! $error1 = L_ERR_USR_3; } ! // Validates the password submitted (compare also its md5 hash for ! // compatibility with old releases) ! else if ($regUserPassword != $pmcPassword && $regUserPassword != md5($pmcPassword)) { ! $isRegNick = false; ! $pmcPassword = ''; ! $error1 = L_ERR_USR_4; } } ! } ! // end of the 4th stage (validation of the password) return $error1; --- 64,175 ---- $requireReg = C_REQUIRE_REGISTER; ! // Light validation if the user is relogging ! if (!empty($GLOBALS['reloading'])) { ! $isRegNick = (dbSessionIsRegistered('status') && $GLOBALS['dbSessionVars']['status'] > 0); ! if ($GLOBALS['reloading'] == 'joinLink') { ! $dbLink->query('SELECT log_times FROM ' . C_REG_TBL . " WHERE username = '$slashedNick' LIMIT 1"); ! list($logTimes) = $dbLink->nextRecord(); ! $dbLink->cleanResults(); ! if ($logTimes < C_EXPERIENCED_LOGIN_TIMES) ! { ! $logTimes++; ! } } ! } // end of light validation ! // Full validation ! else { ! // 1. Ensures invalid characters/words aren't in use for the nick ! // Ensures a nick has been submitted ! if (!$isJsValidated && $pmcNick == '') { ! $error1 = L_ERR_USR_2; } ! // Checks for invalid characters or empty nick ! else if (!$isJsValidated && ! (trim($pmcNick) == '' || ereg('[\, ]', $pmcNick))) { ! $error1 = L_ERR_USR_16; } ! // Checks for swear words in the nick ! else if (C_NO_SWEAR) { ! if (checkWords($pmcNick, true)) ! { ! $error1 = L_ERR_USR_18; ! } } ! // end of the 1st stage (character validation inside the nick) ! // 2. If the nick is currently in use, gets the corresponding room name ! // and sets the $requireReg variable to true ! if ($error1 == '') ! { ! $dbLink->query("SELECT session_id, room FROM " . C_USR_TBL . " WHERE username = '$slashedNick' LIMIT 1"); ! $isLoggedIn = (list($loggedInId, $loggedInRoom) = $dbLink->nextRecord()); ! if ($isLoggedIn) ! { ! $loggedInRoom = pmcHandleMagicQuotes($loggedInRoom, '', 1, 'del'); ! $requireReg = true; ! } } ! // end of the 2nd stage (checking if the nick is already in use) ! ! // 3. If registration is required but no password has been submitted ! // -> deny access ! if ($error1 == '' && !$isJsValidated && $requireReg) { ! if ($pmcPassword == '') ! { ! $error1 = ($isLoggedIn) ? L_ERR_USR_1 : L_ERR_USR_14; ! } ! } ! // end of the 3rd stage (a password has been submitted if required) ! ! // 4. Ensure a valid password has been submitted if the nick is a ! // registered one ! if ($error1 == '') ! { ! $dbLink->query("SELECT passwd, log_times FROM " . C_REG_TBL . " WHERE username = '$slashedNick' LIMIT 1"); ! $isRegNick = (list($regUserPassword, $logTimes) = $dbLink->nextRecord()); ! if ($isRegNick) ! { ! $regUserPassword = pmcHandleMagicQuotes($regUserPassword, '', 1, 'del'); ! if ($logTimes < C_EXPERIENCED_LOGIN_TIMES) ! { ! $logTimes++; ! } ! } ! $dbLink->cleanResults(); ! ! // Nick isn't a registered one but registration is required ! if (!$isRegNick && $requireReg) { ! $error1 = L_ERR_USR_14; } ! // Skip the validation of the password when it has already be done ! // before the 'main_index.lib.php3' is ran ! else if (!isset($GLOBALS['$exitMessage']) && $isRegNick) { ! // Reserved nick but no password submitted -> deny access ! if (!$isJsValidated && $pmcPassword == '') ! { ! $error1 = L_ERR_USR_3; ! } ! // Validates the password submitted (compare also its md5 hash ! // for compatibility with old releases) ! else if ($regUserPassword != $pmcPassword && $regUserPassword != md5($pmcPassword)) ! { ! $isRegNick = false; ! $pmcPassword = ''; ! $error1 = L_ERR_USR_4; ! } } } ! // end of the 4th stage (validation of the password) ! } // end of full validation return $error1; *************** *** 162,165 **** --- 187,191 ---- * @global string the slashed nick of the user who wants to enter the chat * @global boolean whether this nick is a registered one or not + * @global integer the number of times the user logged in * @global boolean whether the room has to be trully created or not * @global string the name of the room to create *************** *** 176,179 **** --- 202,206 ---- global $slashedNick; global $isRegUser; + global $regUserLogTimes; global $isCreateRoom; global $targetRoom, $roomType; *************** *** 187,190 **** --- 214,225 ---- $error2 = L_ERR_USR_13; } + // Not an experienced user and this is required -> deny room creation + else if ($rightLevels['create_room'] > 1 + && !((dbSessionIsRegistered('status') && $GLOBALS['dbSessionVars']['status'] > 6) + || $regUserLogTimes > C_EXPERIENCED_LOGIN_TIMES)) + { + $error2 = L_ERR_USR_22; + } + // Checks for invalid characters or empty room name else if (!$isJsValidated Index: main_index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -r1.46 -r1.47 *** main_index.lib.php3 2001/12/01 11:16:36 1.46 --- main_index.lib.php3 2001/12/04 20:01:04 1.47 *************** *** 61,69 **** * in the 'chat/lib/common.lib.php3' library. */ ! $retVar = array($defaultChatRooms, $defaultPrivateRooms); $toGrab = array('%GET', '%POST', '%COOKIE'); pmcGrabGlobals($toGrab); $defaultChatRooms = $retVar[0]; $defaultPrivateRooms = $retVar[1]; unset($retVar); --- 61,70 ---- * in the 'chat/lib/common.lib.php3' library. */ ! $retVar = array($defaultChatRooms, $defaultPrivateRooms, $rightLevels); $toGrab = array('%GET', '%POST', '%COOKIE'); pmcGrabGlobals($toGrab); $defaultChatRooms = $retVar[0]; $defaultPrivateRooms = $retVar[1]; + $rightLevels = $retVar[2]; unset($retVar); *************** *** 337,340 **** --- 338,342 ---- $wasInRoom = ''; $previousId = ''; + $regUserLogTimes = 0; $isCreateRoom = FALSE; *************** *** 410,425 **** * also the convenient password has been submitted. * - * This part of the script is skipped if the frameset is reloaded because - * of the NS4+ resize bug or because the user has clicked on a room name at - * the 'users' frame. - * In these cases, the nick and the password have already been validated. - * * The function 'pmcValidateNickAndPaswd()' is defined inside the * 'chat/lib/index_validation.lib.php3' library */ ! if (empty($error) && empty($reloading)) { ! $error = pmcValidateNickAndPaswd($isRegUser, $previousId, $wasInRoom); ! if ($error == '') { // Puts the nick in a cookie that will expire in one year --- 412,422 ---- * also the convenient password has been submitted. * * The function 'pmcValidateNickAndPaswd()' is defined inside the * 'chat/lib/index_validation.lib.php3' library */ ! if (empty($error)) { ! $error = pmcValidateNickAndPaswd($isRegUser, $previousId, $wasInRoom, $regUserLogTimes); ! if ($error == '' && empty($reloading)) { // Puts the nick in a cookie that will expire in one year *************** *** 446,453 **** else { ! $dbLink->query("SELECT COUNT(*) FROM " . C_RIGHT_TBL . " WHERE username = '$slashedNick' AND right_level > 9 LIMIT 1"); list($isAdmin) = $dbLink->nextRecord(); $dbLink->cleanResults(); ! $dbSessionVars['status'] = ($isAdmin) ? 10 : ''; } } --- 443,450 ---- else { ! $dbLink->query("SELECT right_level FROM " . C_RIGHT_TBL . " WHERE username = '$slashedNick' AND right_level > 6 LIMIT 1"); list($isAdmin) = $dbLink->nextRecord(); $dbLink->cleanResults(); ! $dbSessionVars['status'] = ($isAdmin) ? $isAdmin : ''; } } *************** *** 466,470 **** if (empty($error) && C_MAX_USERS && empty($reloading) && empty($wasInRoom) ! && !(dbSessionIsRegistered('status') && intval($dbSessionVars['status']) > 9)) { $dbLink->query('SELECT COUNT(*) FROM ' . C_USR_TBL); --- 463,467 ---- if (empty($error) && C_MAX_USERS && empty($reloading) && empty($wasInRoom) ! && !(dbSessionIsRegistered('status') && intval($dbSessionVars['status']) > 6)) { $dbLink->query('SELECT COUNT(*) FROM ' . C_USR_TBL); *************** *** 491,495 **** { if (C_BANISH ! && !(dbSessionIsRegistered('status') && intval($dbSessionVars['status']) > 9) && pmcCheckBanish()) { --- 488,492 ---- { if (C_BANISH ! && !(dbSessionIsRegistered('status') && intval($dbSessionVars['status']) > 6) && pmcCheckBanish()) { *************** *** 524,536 **** { $slashedTargetRoomName = pmcSlashSingleQuotes($targetRoom); ! if (!isset($reloading)) ! { ! $status = pmcRightLevel(); ! } ! else if ($reloading != 'nsResize') { - $isRegUser = ($dbSessionVars['status'] > 0); $status = pmcRightLevel(); - $isRegUser = FALSE; } else --- 521,527 ---- { $slashedTargetRoomName = pmcSlashSingleQuotes($targetRoom); ! if (!isset($reloading) || $reloading != 'nsResize') { $status = pmcRightLevel(); } else |
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv14795/chat Modified Files: handle_input.php3 input.php3 users.php3 users_low.php3 users_popup.php3 users_popup_low.php3 whois_popup.php3 Log Message: Begin right levels improvement Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** handle_input.php3 2001/06/10 14:56:06 1.32 --- handle_input.php3 2001/12/04 20:01:03 1.33 *************** *** 48,56 **** * defined in the 'chat/lib/common.lib.php3' library. */ ! $retVar = array($defaultChatRooms, $defaultPrivateRooms); $toGrab = array('dbSessionId', '%POST', 'cookieColor'); pmcGrabGlobals($toGrab); $defaultChatRooms = $retVar[0]; $defaultPrivateRooms = $retVar[1]; unset($retVar); if (!empty($msgTo)) --- 48,57 ---- * defined in the 'chat/lib/common.lib.php3' library. */ ! $retVar = array($defaultChatRooms, $defaultPrivateRooms, $rightLevels); $toGrab = array('dbSessionId', '%POST', 'cookieColor'); pmcGrabGlobals($toGrab); $defaultChatRooms = $retVar[0]; $defaultPrivateRooms = $retVar[1]; + $rightLevels = $retVar[2]; unset($retVar); if (!empty($msgTo)) *************** *** 116,120 **** // Red colors are reserved to the admin or a moderator for the current room if (ereg('#(FF0000|fc403f|fc4b34|fa582a|f66421|f27119|ec7e11|ec117f|f21971|f62164|fa2a58|fc344b)', $color) ! && $dbSessionVars['status'] < 5) { $color = '#000000'; --- 117,121 ---- // Red colors are reserved to the admin or a moderator for the current room if (ereg('#(FF0000|fc403f|fc4b34|fa582a|f66421|f27119|ec7e11|ec117f|f21971|f62164|fa2a58|fc344b)', $color) ! && $dbSessionVars['status'] < 3) { $color = '#000000'; *************** *** 294,298 **** . '?' . dbSessionSID() . $pmcQueryArgSeparator . 'dummy=' . uniqid(''); ! if ($dbSessionVars['status'] >= 5) { echo("\n"); --- 295,299 ---- . '?' . dbSessionSID() . $pmcQueryArgSeparator . 'dummy=' . uniqid(''); ! if ($dbSessionVars['status'] >= 3) { echo("\n"); Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -r1.40 -r1.41 *** input.php3 2001/06/16 10:20:14 1.40 --- input.php3 2001/12/04 20:01:03 1.41 *************** *** 48,56 **** * defined in the 'chat/lib/common.lib.php3' library. */ ! $retVar = array($defaultChatRooms, $defaultPrivateRooms); $toGrab = array('dbSessionId', '%POST', 'cookieColor'); pmcGrabGlobals($toGrab); $defaultChatRooms = $retVar[0]; $defaultPrivateRooms = $retVar[1]; unset($retVar); if (!empty($msgTo)) --- 48,57 ---- * defined in the 'chat/lib/common.lib.php3' library. */ ! $retVar = array($defaultChatRooms, $defaultPrivateRooms, $rightLevels); $toGrab = array('dbSessionId', '%POST', 'cookieColor'); pmcGrabGlobals($toGrab); $defaultChatRooms = $retVar[0]; $defaultPrivateRooms = $retVar[1]; + $rightLevels = $retVar[2]; unset($retVar); if (!empty($msgTo)) *************** *** 123,127 **** // Red colors are reserved to the admin or a moderator for the current room if (ereg('#(FF0000|fc3f40|fc4b34|fa582a|f66421|f27119|ec7e11|ec117f|f21971|f62164|fa2a58|fc344b)', $color) ! && $dbSessionVars['status'] < 5) { $color = '#000000'; --- 124,128 ---- // Red colors are reserved to the admin or a moderator for the current room if (ereg('#(FF0000|fc3f40|fc4b34|fa582a|f66421|f27119|ec7e11|ec117f|f21971|f62164|fa2a58|fc344b)', $color) ! && $dbSessionVars['status'] < 3) { $color = '#000000'; *************** *** 271,275 **** // Red color is reserved to the admin or a moderator for the current room if ($colorCode == '#FF0000' ! && $dbSessionVars['status'] < 5) { continue; --- 272,276 ---- // Red color is reserved to the admin or a moderator for the current room if ($colorCode == '#FF0000' ! && $dbSessionVars['status'] < 3) { continue; *************** *** 398,402 **** <!-- // Buffer the color picker ! window.parent.jsIsModerator = <?php echo(($dbSessionVars['status'] >= 5) ? 1 : 0); ?>; window.parent.pmcSetColorPicker('<?php echo($color); ?>'); --- 399,403 ---- <!-- // Buffer the color picker ! window.parent.jsIsModerator = <?php echo(($dbSessionVars['status'] >= 3) ? 1 : 0); ?>; window.parent.pmcSetColorPicker('<?php echo($color); ?>'); Index: users.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users.php3,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -r1.28 -r1.29 *** users.php3 2001/11/29 22:10:35 1.28 --- users.php3 2001/12/04 20:01:03 1.29 *************** *** 137,141 **** $tagsOpen = ''; $tagsClose = ''; ! if (intval($theStatus) >= 5) { $tagsOpen = '<i>'; --- 137,141 ---- $tagsOpen = ''; $tagsClose = ''; ! if (intval($theStatus) >= 3) { $tagsOpen = '<i>'; Index: users_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_low.php3,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** users_low.php3 2001/11/29 22:10:35 1.23 --- users_low.php3 2001/12/04 20:01:03 1.24 *************** *** 138,142 **** $tagsOpen = ''; $tagsClose = ''; ! if (intval($theStatus) >= 5) { $tagsOpen = '<i>'; --- 138,142 ---- $tagsOpen = ''; $tagsClose = ''; ! if (intval($theStatus) >= 3) { $tagsOpen = '<i>'; Index: users_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup.php3,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** users_popup.php3 2001/11/30 19:30:35 1.23 --- users_popup.php3 2001/12/04 20:01:03 1.24 *************** *** 158,162 **** function pmcFormatUsername($theUsername, $isUnLatin1, $theStatus) { ! $tagOpen = (intval($theStatus) >= 5) ? '<i>' : ''; $tagClose = ($tagOpen != '') ? '</i>' : ''; $theUsername = $tagOpen --- 158,162 ---- function pmcFormatUsername($theUsername, $isUnLatin1, $theStatus) { ! $tagOpen = (intval($theStatus) >= 3) ? '<i>' : ''; $tagClose = ($tagOpen != '') ? '</i>' : ''; $theUsername = $tagOpen Index: users_popup_low.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/users_popup_low.php3,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** users_popup_low.php3 2001/11/29 22:10:35 1.18 --- users_popup_low.php3 2001/12/04 20:01:03 1.19 *************** *** 159,163 **** function pmcFormatUsername($theUsername, $isUnLatin1, $theStatus) { ! $tagOpen = (intval($theStatus) >= 5) ? '<i>' : ''; $tagClose = ($tagOpen != '') ? '</i>' : ''; $theUsername = $tagOpen --- 159,163 ---- function pmcFormatUsername($theUsername, $isUnLatin1, $theStatus) { ! $tagOpen = (intval($theStatus) >= 3) ? '<i>' : ''; $tagClose = ($tagOpen != '') ? '</i>' : ''; $theUsername = $tagOpen Index: whois_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** whois_popup.php3 2001/06/12 19:46:55 1.18 --- whois_popup.php3 2001/12/04 20:01:04 1.19 *************** *** 46,53 **** * 'chat/lib/common.lib.php3' library. */ ! $retVar = array($defaultChatRooms, $defaultPrivateRooms); pmcGrabGlobals('%GET'); $defaultChatRooms = $retVar[0]; $defaultPrivateRooms = $retVar[1]; unset($retVar); $whoisTarget = pmcHandleMagicQuotes($whoisTarget, '1', '', 'del'); --- 46,54 ---- * 'chat/lib/common.lib.php3' library. */ ! $retVar = array($defaultChatRooms, $defaultPrivateRooms, $rightLevels); pmcGrabGlobals('%GET'); $defaultChatRooms = $retVar[0]; $defaultPrivateRooms = $retVar[1]; + $rightLevels = $retVar[2]; unset($retVar); $whoisTarget = pmcHandleMagicQuotes($whoisTarget, '1', '', 'del'); *************** *** 87,111 **** * Define the level of information the current user is allowed to see */ ! $whoisDbLnk = new pmcDB; ! if ($dbSessionVars['nick'] == $whoisTarget) { ! $power = 'high'; } ! else if ($dbSessionVars['status'] == 10) // administrator { ! $power = 'high'; } ! else if ($dbSessionVars['status'] >= 5) // moderators { ! $whoisDbLnk->query("SELECT COUNT(*) FROM " . C_USR_TBL . " WHERE username = '$slashedWhoisTarget' AND room = '" . pmcSlashSingleQuotes($dbSessionVars['currentRoom']) . "'"); ! list($isInCurrentRoom) = $whoisDbLnk->nextRecord(); $whoisDbLnk->cleanResults(); ! $power = ($isInCurrentRoom) ? 'medium' : 'weak'; } ! else // simple user { ! $power = 'weak'; } /** * Get the target user profile and define his/her permission level --- 88,165 ---- * Define the level of information the current user is allowed to see */ ! $slashedUser = pmcSlashSingleQuotes($dbSessionVars['nick']); ! $whoisDbLnk = new pmcDB; ! // Self whois or ownner ! if ($dbSessionVars['nick'] == $whoisTarget ! || $dbSessionVars['status'] == 9) { ! $power = 'high'; } ! // Super-moderator or administrator ! else if ($dbSessionVars['status'] > 5) { ! if ($dbSessionVars['status'] < $rightLevels['cmd_whois_ip']) ! { ! $power = 'low'; ! } ! else ! { ! $whoisDbLnk->query("SELECT COUNT(*) FROM " . C_RIGHT_TBL . " WHERE username = '$slashedWhoisTarget' AND right_level < " . $dbSessionVars['status']); ! list($isHigh) = $whoisDbLnk->nextRecord(); ! $whoisDbLnk->cleanResults(); ! $power = ($isHigh) ? 'high' : 'low'; ! } } ! // Registered user ! else if ($dbSessionVars['status'] > 0 && $rightLevels['cmd_whois_ip'] < 6) { ! $whoisDbLnk->query("SELECT room, status FROM " . C_USR_TBL . " WHERE username = '$slashedWhoisTarget'"); ! list($whoisTargetRoom, $whoisTargetStatus) = $whoisDbLnk->nextRecord(); $whoisDbLnk->cleanResults(); ! // 1. Target user is chatting... ! if (!empty($whoisTargetRoom)) ! { ! $whoisTargetRoom = pmcHandleMagicQuotes($firstname, '', '1', 'del'); ! // 1.1 ... in the current room ! if ($dbSessionVars['currentRoom'] == $whoisTargetRoom) ! { ! $power = ($dbSessionVars['status'] >= $rightLevels['cmd_whois_ip'] && $dbSessionVars['status'] > $whoisTargetStatus) ! ? 'high' ! : 'low'; ! } ! // 1.2 ... in an other room ! else ! { ! $toCheck = max($whoisTargetStatus + 0 , $rightLevels['cmd_whois_ip'] - 1); ! $whoisDbLnk->query("SELECT COUNT(*) FROM " . C_RIGHT_TBL . " WHERE username = '$slashedUser' AND room = '" . pmcSlashSingleQuotes($whoisTargetRoom) . "' AND right_level > " . $toCheck); ! list($isHigh) = $whoisDbLnk->nextRecord(); ! $whoisDbLnk->cleanResults(); ! $power = ($isHigh) ? 'high' : 'low'; ! } ! } ! //2. Target user isn't chating ! else ! { ! if ($dbSessionVars['status'] < $rightLevels['cmd_whois_ip']) ! { ! $power = 'low'; ! } ! else ! { ! $slashedCurrentRoom = pmcSlashSingleQuotes($dbSessionVars['currentRoom']); ! $whoisDbLnk->query("SELECT COUNT(*) FROM " . C_RIGHT_TBL . " WHERE username = '$slashedWhoisTarget' AND room = '$slashedCurrentRoom' AND right_level < " . $dbSessionVars['status']); ! list($isHigh) = $whoisDbLnk->nextRecord(); ! $whoisDbLnk->cleanResults(); ! $power = ($isHigh) ? 'high' : 'low'; ! } ! } } ! // Simple user ! else { ! $power = 'low'; } + /** * Get the target user profile and define his/her permission level *************** *** 125,151 **** $country = pmcHandleMagicQuotes($country, '', '1', 'del'); ! $tagOpen = ''; ! $tagClose = ''; ! if ($whoisTargetPerms == 10) // administrator ! { ! $perms = '<i>' . L_WHOIS_ADMIN . '</i>'; ! $tagOpen = '<i>'; ! $tagClose = '</i>'; ! // Do not allow moderators to see some of the administrator ! // informations (ip and e-mail) ! if ($power == 'medium') ! { ! $power = 'weak'; ! } ! } ! else if ($whoisTargetPerms >= 5) // moderators ! { ! $perms = '<i>' . L_WHOIS_MODER . '</i>'; ! $tagOpen = '<i>'; ! $tagClose = '</i>'; ! } ! else // simple user { ! $perms = L_WHOIS_USER; } --- 179,217 ---- $country = pmcHandleMagicQuotes($country, '', '1', 'del'); ! switch ($whoisTargetPerms) { ! case 0: ! $perms = L_RIGHT_0; ! break; ! case 1: ! $perms = L_RIGHT_1; ! break; ! case 2: ! $perms = L_RIGHT_2; ! break; ! case 3: ! $perms = L_RIGHT_3; ! break; ! case 4: ! $perms = L_RIGHT_4; ! break; ! case 5: ! $perms = L_RIGHT_5; ! break; ! case 6: ! $perms = L_RIGHT_6; ! break; ! case 7: ! $perms = L_RIGHT_7; ! break; ! case 8: ! $perms = L_RIGHT_8; ! break; ! case 9: ! $perms = L_RIGHT_9; ! break; ! default: ! $perms = L_RIGHT_0; ! break; } *************** *** 194,198 **** <p class="title"> ! <?php echo($tagOpen . pmcSpecialChars($whoisTarget, $latin1) . $tagClose . "\n"); ?> </p> <p></p> --- 260,264 ---- <p class="title"> ! <?php echo(pmcSpecialChars($whoisTarget, $latin1) . "\n"); ?> </p> <p></p> *************** *** 231,235 **** echo("\n"); ! if ($showemail || $power != 'weak') { ?> --- 297,301 ---- echo("\n"); ! if ($showemail || $power == 'high') { ?> *************** *** 254,258 **** echo("\n"); ! if ($power != 'weak') { $ipProxyStr = ''; --- 320,324 ---- echo("\n"); ! if ($power == 'high') { $ipProxyStr = ''; *************** *** 285,289 **** <br /> ! <span class="whois"><?php echo('> ' . $tagOpen . $perms . $tagClose . ' <'); ?></span> </center> --- 351,355 ---- <br /> ! <span class="whois"><?php echo('> ' . $perms . ' <'); ?></span> </center> |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:01:07
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/install/database In directory usw-pr-cvs1:/tmp/cvs-serv14795/chat/install/database Modified Files: mysql.sql pgsql.sql Log Message: Begin right levels improvement Index: mysql.sql =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/install/database/mysql.sql,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** mysql.sql 2001/11/29 22:00:56 1.12 --- mysql.sql 2001/12/04 20:01:04 1.13 *************** *** 60,73 **** ip varchar(16) NOT NULL DEFAULT '' , gender tinyint(1) unsigned NOT NULL DEFAULT '0' , PRIMARY KEY (username), INDEX idx1 (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 # --- 60,79 ---- ip varchar(16) NOT NULL DEFAULT '' , gender tinyint(1) unsigned NOT NULL DEFAULT '0' , + log_times smallint(3) unsigned NOT NULL DEFAULT '0' , PRIMARY KEY (username), INDEX idx1 (reg_time) ); ! INSERT INTO pmc_reg_users VALUES('owner', '', 'owner', '', '', '', '', '', 0, '', '', '', 0); # # Table structure for table 'pmc_rights' ! # default right_levels are : 9 = owner, ! # 8,7 = administrators, ! # 6 = super-moderators, ! # 5,4,3 = moderators, ! # 2 = experienced user, ! # 1 = registered user, ! # 0 = visitor # *************** *** 76,84 **** username varchar(30) NOT NULL DEFAULT '' , room varchar(30) NOT NULL DEFAULT '' , ! right_level tinyint(2) unsigned NOT NULL DEFAULT '5' , PRIMARY KEY (username, room), INDEX idx1 (room) ); ! INSERT INTO pmc_rights VALUES('admin', '', 10); --- 82,90 ---- username varchar(30) NOT NULL DEFAULT '' , room varchar(30) NOT NULL DEFAULT '' , ! right_level tinyint(1) unsigned NOT NULL DEFAULT '5' , PRIMARY KEY (username, room), INDEX idx1 (room) ); ! INSERT INTO pmc_rights VALUES('owner', '', 9); *************** *** 93,96 **** --- 99,104 ---- last_user_modif int(11) unsigned NOT NULL DEFAULT '0' , PRIMARY KEY (room_name) + # INDEX idx1 (room_type) , + # INDEX idx2 (last_user_modify) ); *************** *** 122,126 **** username varchar(30) NOT NULL DEFAULT '' , latin1 tinyint(1) unsigned NOT NULL DEFAULT '0' , ! status char(2) NOT NULL DEFAULT '0' , ip varchar(16) NOT NULL DEFAULT '' , away tinyint(1) unsigned NOT NULL DEFAULT '0' , --- 130,134 ---- username varchar(30) NOT NULL DEFAULT '' , latin1 tinyint(1) unsigned NOT NULL DEFAULT '0' , ! status char(1) NOT NULL DEFAULT '0' , ip varchar(16) NOT NULL DEFAULT '' , away tinyint(1) unsigned NOT NULL DEFAULT '0' , *************** *** 128,130 **** --- 136,139 ---- INDEX idx1 (u_time, status), INDEX idx2 (session_id) + # INDEX idx3 (room) ); Index: pgsql.sql =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/install/database/pgsql.sql,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** pgsql.sql 2001/11/29 22:00:56 1.9 --- pgsql.sql 2001/12/04 20:01:04 1.10 *************** *** 3,7 **** # ----------------------------------------- # ! # Please note that this model is a bit theorical: we don't test it yet. # If you face some problems with it or have some suggestions to improve it # please send us an e-mail. --- 3,7 ---- # ----------------------------------------- # ! # Please note that this model is a bit theorical: we can't fully test it yet. # If you face some problems with it or have some suggestions to improve it # please send us an e-mail. *************** *** 62,75 **** 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 # --- 62,81 ---- ip varchar(16) NOT NULL DEFAULT '' , gender int2 NOT NULL DEFAULT '0' , + log_times int2 unsigned NOT NULL DEFAULT '0' , PRIMARY KEY (username) ); CREATE INDEX idx1 ON pmc_reg_users (reg_time); ! INSERT INTO pmc_reg_users VALUES('owner', '', 'owner', '', '', '', '', '', 0, '', '', '', 0); # # Table structure for table 'pmc_rights' ! # default right_levels are : 9 = owner, ! # 8,7 = administrators, ! # 6 = super-moderators, ! # 5,4,3 = moderators, ! # 2 = experienced user, ! # 1 = registered user, ! # 0 = visitor # *************** *** 81,85 **** ); CREATE INDEX idx1 ON pmc_rights (room); ! INSERT INTO pmc_rights VALUES('admin', '', 10); --- 87,91 ---- ); CREATE INDEX idx1 ON pmc_rights (room); ! INSERT INTO pmc_rights VALUES('owner', '', 9); *************** *** 94,97 **** --- 100,105 ---- PRIMARY KEY (room_name) ); + # CREATE INDEX idx1 ON pmc_rooms (room_type): + # CREATE INDEX idx2 ON pmc_rooms (last_user_modify); *************** *** 120,124 **** 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' , --- 128,132 ---- username varchar(30) NOT NULL DEFAULT '' , latin1 int2 NOT NULL DEFAULT '0' , ! status char(1) NOT NULL DEFAULT '0' , ip varchar(16) NOT NULL DEFAULT '' , away int2 NOT NULL DEFAULT '0' , *************** *** 127,128 **** --- 135,138 ---- CREATE INDEX idx1 ON pmc_users (u_time, status); CREATE INDEX idx2 ON pmc_users (session_id); + # CREATE INDEX idx3 ON pmc_users (room); + |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:01:07
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv14795/chat/lib Modified Files: commands.lib.php3 format_messages.lib.php3 get_user_infos.lib.php3 Log Message: Begin right levels improvement Index: commands.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands.lib.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** commands.lib.php3 2001/06/10 14:57:47 1.10 --- commands.lib.php3 2001/12/04 20:01:04 1.11 *************** *** 41,142 **** && !empty($prevMessage)) { ! include('./lib/commands/history.cmd.' . C_EXTENSION); } else if (eregi('^\/announce[[:space:]](.+)$', $message, $cmd)) { ! include('./lib/commands/announce.cmd.' . C_EXTENSION); } else if (eregi('^\/away([[:space:]](.+))?$', $message, $cmd)) { ! include('./lib/commands/away.cmd.' . C_EXTENSION); } else if (C_BANISH && eregi('^\/ban[[:space:]](\*[[:space:]])?(.{1,30})$', $message, $cmd)) { ! include('./lib/commands/banish.cmd.' . C_EXTENSION); } else if (strcasecmp('/clear', $message) == 0 && $dbSessionVars['jsVersion'] == 'high') { ! include('./lib/commands/clear.cmd.' . C_EXTENSION); } else if ('/?' == $message || strcasecmp('/help', $message) == 0) { ! include('./lib/commands/help.cmd.' . C_EXTENSION); } else if (eregi('^\/ignore([[:space:]]\\-)?([[:space:]](.+))?$', $message, $cmd)) { ! include('./lib/commands/ignore.cmd.' . C_EXTENSION); } else if (strcasecmp('/img', $message) == 0) { ! include('./lib/commands/img.cmd.' . C_EXTENSION); } else if (eregi('^\/invite([[:space:]](.+))+$', $message, $cmd)) { ! include('./lib/commands/invite.cmd.' . C_EXTENSION); } else if (0 < C_VERSION && eregi('^\/join[[:space:]]((0|1)[[:space:]])?#(.{1,30})$', $message, $cmd)) { ! include('./lib/commands/join.cmd.' . C_EXTENSION); } else if (eregi('^\/kick[[:space:]](.{1,30})$', $message, $cmd)) { ! include('./lib/commands/kick.cmd.' . C_EXTENSION); } else if (eregi('^\/me[[:space:]](.+)$', $message, $cmd)) { ! include('./lib/commands/me.cmd.' . C_EXTENSION); } else if (eregi('^\/(msg|to)[[:space:]]([^[:space:]]{1,30})[[:space:]](.+)$', $message, $cmd)) { ! include('./lib/commands/priv_msg.cmd.' . C_EXTENSION); } else if (strcasecmp('/notify', $message) == 0) { ! include('./lib/commands/notify.cmd.' . C_EXTENSION); } else if (strcasecmp('/order', $message) == 0 && $dbSessionVars['jsVersion'] != 'high') { ! include('./lib/commands/order.cmd.' . C_EXTENSION); } else if (strcasecmp('/profile', $message) == 0) { ! include('./lib/commands/profile.cmd.' . C_EXTENSION); } else if (eregi('^\/promote[[:space:]](.{1,30})$', $message, $cmd)) { ! include('./lib/commands/promote.cmd.' . C_EXTENSION); } else if (eregi('^\/(quit|exit|bye)([[:space:]](.+))?$', $message, $cmd)) { ! include('./lib/commands/quit.cmd.' . C_EXTENSION); } else if (eregi('^\/refresh([[:space:]]([[:digit:]]*))?$', $message, $cmd)) { ! include('./lib/commands/refresh.cmd.' . C_EXTENSION); } else if ('0' != C_SAVE && eregi('^\/save([[:space:]]([[:digit:]]*))?$', $message, $cmd) ! && ($cmd[2] == '' OR $cmd[2] > 0)) { ! include('./lib/commands/save.cmd.' . C_EXTENSION); } else if (eregi('^\/(show|last)([[:space:]]([[:digit:]]+))?$', $message, $cmd)) { ! include('./lib/commands/show.cmd.' . C_EXTENSION); } else if (strcasecmp('/timestamp', $message) == 0) { ! include('./lib/commands/timestamp.cmd.' . C_EXTENSION); } else if (eregi('^\/whois[[:space:]](.{1,30})$', $message, $cmd)) { ! include('./lib/commands/whois.cmd.' . C_EXTENSION); } if (!$isCommand && empty($error)) { --- 41,168 ---- && !empty($prevMessage)) { ! $cmdLib = 'history'; } else if (eregi('^\/announce[[:space:]](.+)$', $message, $cmd)) { ! $cmdLib = 'announce'; } else if (eregi('^\/away([[:space:]](.+))?$', $message, $cmd)) { ! $cmdLib = 'away'; } else if (C_BANISH && eregi('^\/ban[[:space:]](\*[[:space:]])?(.{1,30})$', $message, $cmd)) { ! $cmdLib = 'banish'; } else if (strcasecmp('/clear', $message) == 0 && $dbSessionVars['jsVersion'] == 'high') { ! $cmdLib = 'clear'; } else if ('/?' == $message || strcasecmp('/help', $message) == 0) { ! $cmdLib = 'help'; } else if (eregi('^\/ignore([[:space:]]\\-)?([[:space:]](.+))?$', $message, $cmd)) { ! $cmdLib = 'ignore'; } else if (strcasecmp('/img', $message) == 0) { ! $cmdLib = 'img'; } else if (eregi('^\/invite([[:space:]](.+))+$', $message, $cmd)) { ! $cmdLib = 'invite'; } else if (0 < C_VERSION && eregi('^\/join[[:space:]]((0|1)[[:space:]])?#(.{1,30})$', $message, $cmd)) { ! $cmdLib = 'join'; } else if (eregi('^\/kick[[:space:]](.{1,30})$', $message, $cmd)) { ! $cmdLib = 'kick'; } else if (eregi('^\/me[[:space:]](.+)$', $message, $cmd)) { ! $cmdLib = 'me'; } else if (eregi('^\/(msg|to)[[:space:]]([^[:space:]]{1,30})[[:space:]](.+)$', $message, $cmd)) { ! $cmdLib = 'priv_msg'; } else if (strcasecmp('/notify', $message) == 0) { ! $cmdLib = 'notify'; } else if (strcasecmp('/order', $message) == 0 && $dbSessionVars['jsVersion'] != 'high') { ! $cmdLib = 'order'; } else if (strcasecmp('/profile', $message) == 0) { ! $cmdLib = 'profile'; } else if (eregi('^\/promote[[:space:]](.{1,30})$', $message, $cmd)) { ! $cmdLib = 'promote'; } else if (eregi('^\/(quit|exit|bye)([[:space:]](.+))?$', $message, $cmd)) { ! $cmdLib = 'quit'; } else if (eregi('^\/refresh([[:space:]]([[:digit:]]*))?$', $message, $cmd)) { ! $cmdLib = 'refresh'; } else if ('0' != C_SAVE && eregi('^\/save([[:space:]]([[:digit:]]*))?$', $message, $cmd) ! && ($cmd[2] == '' || $cmd[2] > 0)) { ! $cmdLib = 'save'; } else if (eregi('^\/(show|last)([[:space:]]([[:digit:]]+))?$', $message, $cmd)) { ! $cmdLib = 'show'; } else if (strcasecmp('/timestamp', $message) == 0) { ! $cmdLib = 'timestamp'; } else if (eregi('^\/whois[[:space:]](.{1,30})$', $message, $cmd)) { ! $cmdLib = 'whois'; } + else + { + $cmdLib = ''; + } + + + /** + * If the submission is a command, ensure the right level of the current user + * is high enough then include the corresponding library + */ + if (!empty($cmdLib)) + { + if (!empty($rightLevels['cmd_' . $cmdLib]) + && $dbSessionVars['status'] < $rightLevels['cmd_'. $cmdLib]) + { + $error = L_NO_RIGHT; + } + else + { + include('./lib/commands/' . $cmdLib . '.cmd.' . C_EXTENSION); + } + } + + /** + * If the submission is a invalid command or no error message is set, do it + */ if (!$isCommand && empty($error)) { Index: format_messages.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/format_messages.lib.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** format_messages.lib.php3 2001/06/10 14:57:47 1.11 --- format_messages.lib.php3 2001/12/04 20:01:04 1.12 *************** *** 42,46 **** // Red colors are reserved to the admin or a moderator for the current room if ((ereg('#(FF0000|fc403f|fc4b34|fa582a|f66421|f27119|ec7e11|ec117f|f21971|f62164|fa2a58|fc344b)', $theColor)) ! && $dbSessionVars['status'] < 5) { $theColor = '#000000'; --- 42,46 ---- // Red colors are reserved to the admin or a moderator for the current room if ((ereg('#(FF0000|fc403f|fc4b34|fa582a|f66421|f27119|ec7e11|ec117f|f21971|f62164|fa2a58|fc344b)', $theColor)) ! && $dbSessionVars['status'] < 3) { $theColor = '#000000'; Index: get_user_infos.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/get_user_infos.lib.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** get_user_infos.lib.php3 2001/11/29 22:00:56 1.5 --- get_user_infos.lib.php3 2001/12/04 20:01:04 1.6 *************** *** 205,208 **** --- 205,209 ---- * @global array the session data * @global boolean whether the user is a registered one or not + * @global integer the number of times the user logged in * @global string the slashed nick of the user * @global boolean whether the room has to be trully created or not *************** *** 217,220 **** --- 218,222 ---- global $dbSessionVars; global $isRegUser; + global $regUserLogTimes; global $slashedNick; global $isCreateRoom; *************** *** 228,236 **** return 0; } ! // 2. The user is the administrator else if ((dbSessionIsRegistered('nick') && $dbSessionVars['nick'] == $GLOBALS['pmcNick']) ! && (dbSessionIsRegistered('status') && $dbSessionVars['status'] == 10)) { ! return 10; } // 3. Other cases --- 230,238 ---- return 0; } ! // 2. The user is super-moderator, administrator or the owner else if ((dbSessionIsRegistered('nick') && $dbSessionVars['nick'] == $GLOBALS['pmcNick']) ! && (dbSessionIsRegistered('status') && $dbSessionVars['status'] > 5)) { ! return $dbSessionVars['status']; } // 3. Other cases *************** *** 250,254 **** else if (!$isCreateRoom) { ! return 1; } // end of 3.1 --- 252,256 ---- else if (!$isCreateRoom) { ! return ($regUserLogTimes > C_EXPERIENCED_LOGIN_TIMES) ? 2 : 1; } // end of 3.1 *************** *** 263,267 **** $dbLink->query("SELECT COUNT(*) FROM " . C_MSG_TBL . " WHERE room = '$slashedTargetRoomName' AND username NOT LIKE 'SYS %' LIMIT 1"); list($isTrueMsg) = $dbLink->nextRecord(); ! $tmpUserPerm = ($isTrueMsg == 0) ? 5 : 1; $dbLink->cleanResults(); if (!$isTrueMsg) --- 265,276 ---- $dbLink->query("SELECT COUNT(*) FROM " . C_MSG_TBL . " WHERE room = '$slashedTargetRoomName' AND username NOT LIKE 'SYS %' LIMIT 1"); list($isTrueMsg) = $dbLink->nextRecord(); ! if ($isTrueMsg == 0) ! { ! $tmpUserPerm = 4; ! } ! else ! { ! $tmpUserPerm = ($regUserLogTimes > C_EXPERIENCED_LOGIN_TIMES) ? 2 : 1; ! } $dbLink->cleanResults(); if (!$isTrueMsg) *************** *** 269,273 **** $dbLink->query("SELECT COUNT(*) FROM " . C_USR_TBL . " WHERE room = '$slashedTargetRoomName' AND username != '$slashedNick' LIMIT 1"); list($isAnybody) = $dbLink->nextRecord(); ! $tmpUserPerm = ($isAnybody == 0) ? 5 : 1; $dbLink->cleanResults(); } // end of true new room --- 278,289 ---- $dbLink->query("SELECT COUNT(*) FROM " . C_USR_TBL . " WHERE room = '$slashedTargetRoomName' AND username != '$slashedNick' LIMIT 1"); list($isAnybody) = $dbLink->nextRecord(); ! if ($isAnybody == 0) ! { ! $tmpUserPerm = 4; ! } ! else ! { ! $tmpUserPerm = ($regUserLogTimes > C_EXPERIENCED_LOGIN_TIMES) ? 2 : 1; ! } $dbLink->cleanResults(); } // end of true new room *************** *** 275,282 **** // The user will be moderator for this room -> update tables (note // that older moderators becomes 'simple users' for the target room) ! if ($tmpUserPerm == 5) { $dbLink->query("DELETE FROM " . C_RIGHT_TBL . " WHERE room = '$slashedTargetRoomName'"); ! $dbLink->query("INSERT INTO " . C_RIGHT_TBL . " (username, room, right_level) VALUES ('$slashedNick', '$slashedTargetRoomName', 5)"); } // end of updating the right level table --- 291,298 ---- // The user will be moderator for this room -> update tables (note // that older moderators becomes 'simple users' for the target room) ! if ($tmpUserPerm == 4) { $dbLink->query("DELETE FROM " . C_RIGHT_TBL . " WHERE room = '$slashedTargetRoomName'"); ! $dbLink->query("INSERT INTO " . C_RIGHT_TBL . " (username, room, right_level) VALUES ('$slashedNick', '$slashedTargetRoomName', 4)"); } // end of updating the right level table |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:01:06
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/config In directory usw-pr-cvs1:/tmp/cvs-serv14795/chat/config Modified Files: config.lib.php3 Log Message: Begin right levels improvement Index: config.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/config/config.lib.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** config.lib.php3 2001/06/13 18:05:53 1.10 --- config.lib.php3 2001/12/04 20:01:04 1.11 *************** *** 77,80 **** --- 77,95 ---- define('C_SAVE', '*'); + // Right levels definition + define('C_EXPERIENCED_LOGIN_TIMES', 100); + $rightLevels['create_room'] = 2; + $rightLevels['cmd_announce'] = 7; + $rightLevels['cmd_banish'] = 4; + $rightLevels['cmd_banish_adv'] = 6; + $rightLevels['cmd_kick'] = 4; + $rightLevels['cmd_kick_adv'] = 6; + $rightLevels['cmd_promote'] = 4; + $rightLevels['cmd_whois_ip'] = 6; + $rightLevels['adm_reg_users'] = 7; + $rightLevels['adm_ban_users'] = 7; + $rightLevels['adm_clean_rooms'] = 7; + $rightLevels['adm_send_mail'] = 7; + // Messages enhancements define('C_MAX_GSMILIES', 2); |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:19
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/danish In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/danish Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/danish/chat.loc,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** chat.loc 2001/07/01 10:38:45 1.14 --- chat.loc 2001/12/04 19:59:40 1.15 *************** *** 245,248 **** --- 245,258 ---- define('L_WHOIS_MODER', 'Moderator'); define('L_WHOIS_USER', 'Bruger'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit *************** *** 250,251 **** --- 260,262 ---- define('L_EXIT_ROM', '%s har afsluttet chatten'); define('L_WELCOME', 'Velkommen til chatten. Oprethold venligst en sober tone mens du chatter: <i>forsøg at være venlig, rar og imødekommende</i>.'); + ?> \ No newline at end of file |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:18
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/dutch In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/dutch Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/dutch/chat.loc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** chat.loc 2001/07/01 10:38:45 1.11 --- chat.loc 2001/12/04 19:59:40 1.12 *************** *** 245,248 **** --- 245,258 ---- define('L_WHOIS_MODER', 'Supervisor'); define('L_WHOIS_USER', 'Gebruikers'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/czech In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/czech Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/czech/chat.loc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** chat.loc 2001/07/05 14:15:47 1.12 --- chat.loc 2001/12/04 19:59:40 1.13 *************** *** 244,247 **** --- 244,257 ---- define('L_WHOIS_MODER', 'Moderátor'); define('L_WHOIS_USER', 'U¾ivatel'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/croatian In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/croatian Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/croatian/chat.loc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** chat.loc 2001/07/01 10:38:45 1.11 --- chat.loc 2001/12/04 19:59:39 1.12 *************** *** 244,247 **** --- 244,257 ---- define('L_WHOIS_MODER', 'Moderator'); define('L_WHOIS_USER', 'Korisnik'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/catalan In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/catalan Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/catalan/chat.loc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** chat.loc 2001/07/01 10:38:45 1.11 --- chat.loc 2001/12/04 19:59:39 1.12 *************** *** 243,246 **** --- 243,256 ---- define('L_WHOIS_MODER', 'Moderador'); define('L_WHOIS_USER', 'Usuari'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/chinese_traditional In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/chinese_traditional Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/chinese_traditional/chat.loc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** chat.loc 2001/07/01 10:38:45 1.10 --- chat.loc 2001/12/04 19:59:39 1.11 *************** *** 246,249 **** --- 246,259 ---- define('L_WHOIS_MODER', '²á¤Ñ«Ç¥D¤H'); define('L_WHOIS_USER', '¤@¯ë¨Ï¥ÎªÌ'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:16
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/bosnian In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/bosnian Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/bosnian/chat.loc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** chat.loc 2001/07/01 10:38:45 1.11 --- chat.loc 2001/12/04 19:59:38 1.12 *************** *** 244,247 **** --- 244,257 ---- define('L_WHOIS_MODER', 'Moderator'); define('L_WHOIS_USER', 'Korisnik'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:16
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/chinese_simplified In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/chinese_simplified Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/chinese_simplified/chat.loc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** chat.loc 2001/07/01 10:38:45 1.10 --- chat.loc 2001/12/04 19:59:39 1.11 *************** *** 245,248 **** --- 245,258 ---- define('L_WHOIS_MODER', 'Moderator'); define('L_WHOIS_USER', 'User'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit |
From: Lo?c C. <lo...@us...> - 2001-12-04 20:00:15
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/azerbaijani In directory usw-pr-cvs1:/tmp/cvs-serv13959/chat/localization/azerbaijani Modified Files: chat.loc Log Message: Begin right levels improvement Index: chat.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/azerbaijani/chat.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** chat.loc 2001/11/30 19:29:26 1.2 --- chat.loc 2001/12/04 19:59:38 1.3 *************** *** 250,253 **** --- 250,263 ---- define('L_WHOIS_MODER', 'Moderator'); define('L_WHOIS_USER', 'İstifadəçi'); + define('L_RIGHT_9', '<i>Webmaster</i>'); + define('L_RIGHT_8', '<i>Level 8 administrator</i>'); + define('L_RIGHT_7', '<i>Level 7 administrator</i>'); + define('L_RIGHT_6', '<i>Super moderator</i>'); + define('L_RIGHT_5', '<i>Level 5 moderator for your current room</i>'); + define('L_RIGHT_4', '<i>Level 4 moderator for your current room</i>'); + define('L_RIGHT_3', '<i>Level 3 moderator for your current room</i>'); + define('L_RIGHT_2', 'Regular visitor in your current room'); + define('L_RIGHT_1', 'Member in your current room'); + define('L_RIGHT_0', 'Visitor'); // Notification messages of user entrance/exit |