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-05-06 17:04:45
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat/localization/russian In directory usw-pr-cvs1:/tmp/cvs-serv18979 Modified Files: localized.tutorial.php3 localized.chat.php3 localized.admin.php3 Log Message: Updated translation ***** Bogus filespec: - ***** Bogus filespec: 0.14/chat/localization/russian Index: localized.tutorial.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/localization/russian/localized.tutorial.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** localized.tutorial.php3 2001/04/11 21:12:11 1.3 --- localized.tutorial.php3 2001/05/06 17:04:42 1.4 *************** *** 1,5 **** <?php // File : russian.tutorial.php3 ! // Translation by Dim Zegebart <ke...@rb...> // Get the names and values for vars sent by the script that called this one --- 1,5 ---- <?php // File : russian.tutorial.php3 ! // Translation by Dim Zegebart <ke...@rb...> & Arsen <ar...@be...> [...1063 lines suppressed...] </BODY> ! </HTML> \ No newline at end of file --- 624,638 ---- <P> ! <FONT SIZE="+1"><A NAME="promote"><B>Ïðåäîñòàâëåíèå ïðàâ ìîäåðàòîðà:</B></A></FONT> <P> ! Ìîäåðàòîð è àäìèíèñòðàòîð ìîãóò ïðåäîñòàâèòü ïðàâà ìîäåðàòîðà äðóãîìó ïîëüçîâàòåëþ ñ ïîìîùüþ êîìàíäû <B>promote</B>. <P> ! <I>Íàïðèìåð</I>, åñëè Äæåê - èìÿ ïîëüçîâàòåëÿ, êîòîðîìó ïîâûøàþòñÿ ïðàâà:<I> /promote Äæåê</I> <P> ! Òîëüêî àäìèíèñòðàòîð ìîæåò ñäåëàòü îáðàòíóþ îïåðàöèþ è ëèøèòü ïðàâà ìîäåðàîòðà êîìíàòû (óñòàíîâèòü ïðàâà ïîëüçîâàòåëÿ). Êîìàíäû äëÿ ýòîãî íåò. ! <BR><P ALIGN="right"><A HREF="#top">Íàçàä, ê Ñîäåðæàíèþ</A></P> <P> </BODY> ! </HTML> Index: localized.chat.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/localization/russian/localized.chat.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** localized.chat.php3 2001/04/11 21:13:15 1.4 --- localized.chat.php3 2001/05/06 17:04:42 1.5 *************** *** 1,6 **** <?php // File : russian.lang.php3 ! // Translation by Alexei Shalin <hap...@to...> ! // & Dim Zegebart <ke...@rb...> // extra header for charset --- 1,6 ---- <?php // File : russian.lang.php3 ! // Translation by Alexei Shalin <hap...@to...>, ! // Dim Zegebart <ke...@rb...> & Arsen <ar...@be...> // extra header for charset *************** *** 13,24 **** define("L_TUTORIAL", "Èíñòðóêöèÿ ê ÷àòó"); ! define("L_WEL_1", "Ñîîáùåíèÿ áóäóò óäàëåíû ïîñëå"); ! define("L_WEL_2", "÷àñîâ è èìåíà ïîëüçîâàòåëåé ïîñëå"); define("L_WEL_3", "ìèíóò ..."); define("L_CUR_1", "Ñåé÷àñ"); define("L_CUR_2", "â ñèñòåìå."); ! define("L_CUR_3", "Ïîëüçîâàòåëåé ñåé÷àñ â êàíàëàõ"); ! define("L_CUR_4", "ïîëüçîâàòåëåé â ÷àñòíûõ êàíàëàõ"); define("L_SET_1", "Ïîæàëóéñòà óñòàíîâèòå ..."); --- 13,24 ---- define("L_TUTORIAL", "Èíñòðóêöèÿ ê ÷àòó"); ! define("L_WEL_1", "Ñîîáùåíèÿ áóäóò óäàëåíû ÷åðåç"); ! define("L_WEL_2", "÷àñîâ è èìåíà ïîëüçîâàòåëåé ÷åðåç"); define("L_WEL_3", "ìèíóò ..."); define("L_CUR_1", "Ñåé÷àñ"); define("L_CUR_2", "â ñèñòåìå."); ! define("L_CUR_3", "Ïîëüçîâàòåëåé ñåé÷àñ â êîìíàòàõ"); ! define("L_CUR_4", "ïîëüçîâàòåëåé â ïðèâàòíûõ êîìíàòàõ"); define("L_SET_1", "Ïîæàëóéñòà óñòàíîâèòå ..."); *************** *** 26,37 **** define("L_SET_3", "×èñëî ïîêàçûâàåìûõ ñîîáùåíèé"); define("L_SET_4", "Âðåìÿ ìåæäó îáíîâëåíèÿìè"); ! define("L_SET_5", "Âûáåðèòå êàíàë ..."); ! define("L_SET_6", "Êàíàëû ïî óìîë÷àíèþ"); define("L_SET_7", "Âûáåðèòå ..."); ! define("L_SET_8", "Îáùåäîñòóïíûå êàíàëû ñîçäàííûå ïîëüçîâàòåëåì"); ! define("L_SET_9", "Ñîçäàéòå âàø ñîáñòâåííûé"); ! define("L_SET_10", "îáùåäîñòóïíûé"); ! define("L_SET_11", "÷àñòíûé"); ! define("L_SET_12", "êàíàë"); define("L_SET_13", "À òåïåðü"); define("L_SET_14", "÷àò"); --- 26,37 ---- define("L_SET_3", "×èñëî ïîêàçûâàåìûõ ñîîáùåíèé"); define("L_SET_4", "Âðåìÿ ìåæäó îáíîâëåíèÿìè"); ! define("L_SET_5", "Âûáåðèòå êîìíàòó ..."); ! define("L_SET_6", "Êîìíàòà ïî óìîë÷àíèþ"); define("L_SET_7", "Âûáåðèòå ..."); ! define("L_SET_8", "Îáùåäîñòóïíûå êîìíàòû, ñîçäàííûå ïîëüçîâàòåëåì"); ! define("L_SET_9", "Ñîçäàéòå âàøó ñîáñòâåííóþ"); ! define("L_SET_10", "îáùåäîñòóïíóþ"); ! define("L_SET_11", "ïðèâàòíóþ"); ! define("L_SET_12", "êîìíàòó"); define("L_SET_13", "À òåïåðü"); define("L_SET_14", "÷àò"); *************** *** 59,63 **** define("L_REG_13", "Óäàëåíèå ïîëüçîâàòåëÿ"); define("L_REG_14", "Âõîä"); ! define("L_REG_15", "Âîøëè"); define("L_REG_16", "Èçìåíèòü"); define("L_REG_17", "Èíôîðìàöèÿ áûëà óñïåøíî èçìåíåíà."); --- 59,63 ---- define("L_REG_13", "Óäàëåíèå ïîëüçîâàòåëÿ"); define("L_REG_14", "Âõîä"); ! define("L_REG_15", "Âõîäèì"); define("L_REG_16", "Èçìåíèòü"); define("L_REG_17", "Èíôîðìàöèÿ áûëà óñïåøíî èçìåíåíà."); *************** *** 75,134 **** define("L_REG_35", "Àäìèíèñòðàöèÿ"); define("L_REG_36", "Íà êàêèõ ÿçûêàõ ãîâîðèòå"); ! define("L_REG_37", "Ïîëÿ ñ <span class=\"error\">*</span> äîëæíû ïðèñóòñòâîâàòü."); ! define("L_REG_39", "Êîìíàòà â êîòîðîâûé íàõîäèëèñü áûëà óäàëåíà àäìèíèñòðàòîðîì."); define("L_REG_45", "Ïîë"); ! define("L_REG_46", "ïàðåíü"); ! define("L_REG_47", "äåâóøêà"); // e-mail validation stuff define("L_EMAIL_VAL_1", "Âàøè óñòàíîâêè äëÿ ÷àòà"); ! define("L_EMAIL_VAL_2", "Äîáðî Ïîæàëîâàòü ê íàì â ãîñòè."); define("L_EMAIL_VAL_Err", "Âíóòðåííÿÿ îøèáêà, ñâÿæèòåñü ñ àäìèíèñòðàòîðîì: <a href=\"mailto:%s\">%s</a>."); ! define("L_EMAIL_VAL_Done", "Âàø ïàðîëü áûë îòïðàâëåí Âàì ïî÷òå."); // admin stuff ! define("L_ADM_1", "%s, à Âû óæå íå ìîäåðàòîð."); define("L_ADM_2", "Âû íå çàðåãèñòðèðîâàííûé ïîëüçîâàòåëü."); //error messages ! define("L_ERR_USR_1", "Èìÿ ïîëüçîâàòåëÿ óæå èñïîëüçóåòñÿ ïîæàëóéñòà âûáåðèòå äðóãîå."); define("L_ERR_USR_2", "Âû ìîæåòå âûáðàòü èìÿ ïîëüçîâàòåëÿ."); ! define("L_ERR_USR_3", "Âûáðàííîå Âàìè èìÿ óæå çàðåãèñòðèðîâàííî. Ââåäèòå ïàðîëü è èñïîëüçóéòå äðóãîå èìÿ."); define("L_ERR_USR_4", "Âû îøèáëèñü ñ ïàðîëåì."); define("L_ERR_USR_5", "Âû äîëæíû óêàçàòü Íèê."); define("L_ERR_USR_6", "Âû äîëæíû óêàçàòü ïàðîëü."); define("L_ERR_USR_7", "Âû äîëæíû óêàçàòü ñâîé e-mail."); ! define("L_ERR_USR_8", "Âû äîëæíû ïðàâèëüíî íàïèñàòü email."); define("L_ERR_USR_9", "Ýòîò Íèê óæå èñïîëüçóåòñÿ."); define("L_ERR_USR_10", "Íåïðàâèëüíûé íèê èëè ïàðîëü."); define("L_ERR_USR_11", "Âû äîëæíû áûòü àäìèíèñòðàòîðîì."); ! define("L_ERR_USR_12", "Âû àäìèíèñòðàòîð, è íå ìîæåòå ñåáÿ óäàëèòü."); define("L_ERR_USR_13", "Äëÿ ñîçäàíèÿ êîìíàòû Âû äîëæíû çàðåãèñòðîâàòüñÿ."); define("L_ERR_USR_14", "Âû äîëæíû çàðåãèñòðèðîâàòüñÿ, ÷òîáû âîéòè â ÷àò."); ! define("L_ERR_USR_15", "Âû äîëæíû óêàçàòü Ô.È."); ! define("L_ERR_USR_16", "Âàø íèê íå ìîæåò ñîäåðæàòü ïðîáåëû, çàïÿòûå è ñëåøè (\\)."); define("L_ERR_USR_17", "Ýòî êîìíàòà íå ñóùåñòâóåò è Âû íå ìîæåòå ñîçäàòü äðóãóþ."); ! define("L_ERR_USR_18", "Ðóãàòåëüñòâî â âàøåì èìåíè."); define("L_ERR_USR_19", "Âû íå ìîæåòå ïðèñóòñòâîâàòü áîëüøå ÷åì â îäíîé êîìíàòå"); define("L_ERR_USR_20", "Âû áûëè âûñëàíû èç äàííîé êîìíàòû èëè ÷àòà."); ! define("L_ERR_ROM_1", "Íàçâàíèå êîìíàòû íå ìîæåò ñîäåðæàòü òî÷êó èëè áàêñëåø (\\)."); ! define("L_ERR_ROM_2", "Ðóãàòåëüñòâî â íàçâàíèè êîìíàòû íå äîïóñòèìî."); ! define("L_ERR_ROM_3", "Ýòî êîìíàòà óæå ñóùåñòâóåò, êàê îäíà èç îáùåäîñòóïíûõ."); ! define("L_ERR_ROM_4", "Íå ïðàâèëüíîå èìÿ êîìíàòû."); // users frame or popup define("L_EXIT", "Âûéòè"); ! define("L_DETACH", "Îòñîåäèíèòü"); define("L_EXPCOL_ALL", "Ðàçâåðíóòü/Ñâåðíóòü âñå"); define("L_CONN_STATE", "Ñòàòóñ Ñîåäèíåíèÿ"); define("L_CHAT", "÷àò"); define("L_USER", "ïîëüçîâàòåëü"); ! define("L_USERS", "ïîëüçîâàòåëÿ(åé)"); define("L_NO_USER", "Íåò ïîëüçîâàòåëÿ"); ! define("L_ROOM", "êàíàë"); ! define("L_ROOMS", "êàíàëîâ"); define("L_EXPCOL", "Ðàçâåðíóòü/Ñâåðíóòü êîìíàòó"); ! define("L_BEEP", "Çâóê/íåò çâóêà ïðè âõîäå ÷àòëàíà"); ! define("L_PROFILE", "Ïîêàçàòü ïðîôèëü"); define("L_NO_PROFILE", "No profile"); --- 75,134 ---- define("L_REG_35", "Àäìèíèñòðàöèÿ"); define("L_REG_36", "Íà êàêèõ ÿçûêàõ ãîâîðèòå"); ! define("L_REG_37", "Ïîëÿ ñ ïîìåòêîé <span class=\"error\">*</span> äîëæíû áûòü çàïîëíåíû."); ! define("L_REG_39", "Êîìíàòà, â êîòîðîé âû íàõîäèëèñü, áûëà î÷èùåíà àäìèíèñòðàòîðîì."); define("L_REG_45", "Ïîë"); ! define("L_REG_46", "ìóæñêîé"); ! define("L_REG_47", "æåíñêèé"); // e-mail validation stuff define("L_EMAIL_VAL_1", "Âàøè óñòàíîâêè äëÿ ÷àòà"); ! define("L_EMAIL_VAL_2", "Äîáðî ïîæàëîâàòü ê íàì â ãîñòè."); define("L_EMAIL_VAL_Err", "Âíóòðåííÿÿ îøèáêà, ñâÿæèòåñü ñ àäìèíèñòðàòîðîì: <a href=\"mailto:%s\">%s</a>."); ! define("L_EMAIL_VAL_Done", "Âàø ïàðîëü áûë îòïðàâëåí Âàì ïî e-mail."); // admin stuff ! define("L_ADM_1", "%s, Âû óæå íå ìîäåðàòîð."); define("L_ADM_2", "Âû íå çàðåãèñòðèðîâàííûé ïîëüçîâàòåëü."); //error messages ! define("L_ERR_USR_1", "Èìÿ ïîëüçîâàòåëÿ óæå èñïîëüçóåòñÿ, ïîæàëóéñòà âûáåðèòå äðóãîå."); define("L_ERR_USR_2", "Âû ìîæåòå âûáðàòü èìÿ ïîëüçîâàòåëÿ."); ! define("L_ERR_USR_3", "Âûáðàííîå Âàìè èìÿ óæå çàðåãèñòðèðîâàííî. Ââåäèòå ïàðîëü èëè èñïîëüçóéòå äðóãîå èìÿ."); define("L_ERR_USR_4", "Âû îøèáëèñü ñ ïàðîëåì."); define("L_ERR_USR_5", "Âû äîëæíû óêàçàòü Íèê."); define("L_ERR_USR_6", "Âû äîëæíû óêàçàòü ïàðîëü."); define("L_ERR_USR_7", "Âû äîëæíû óêàçàòü ñâîé e-mail."); ! define("L_ERR_USR_8", "Âû äîëæíû ïðàâèëüíî íàïèñàòü e-mail."); define("L_ERR_USR_9", "Ýòîò Íèê óæå èñïîëüçóåòñÿ."); define("L_ERR_USR_10", "Íåïðàâèëüíûé íèê èëè ïàðîëü."); define("L_ERR_USR_11", "Âû äîëæíû áûòü àäìèíèñòðàòîðîì."); ! define("L_ERR_USR_12", "Âû àäìèíèñòðàòîð è íå ìîæåòå ñåáÿ óäàëèòü."); define("L_ERR_USR_13", "Äëÿ ñîçäàíèÿ êîìíàòû Âû äîëæíû çàðåãèñòðîâàòüñÿ."); define("L_ERR_USR_14", "Âû äîëæíû çàðåãèñòðèðîâàòüñÿ, ÷òîáû âîéòè â ÷àò."); ! define("L_ERR_USR_15", "Âû äîëæíû óêàçàòü ôàìèëèþ è èìÿ."); ! define("L_ERR_USR_16", "Âàø íèê íå ìîæåò ñîäåðæàòü ïðîáåëû, çàïÿòûå è ñëýø (\\)."); define("L_ERR_USR_17", "Ýòî êîìíàòà íå ñóùåñòâóåò è Âû íå ìîæåòå ñîçäàòü äðóãóþ."); ! define("L_ERR_USR_18", "Çàïðåùåííîå ñëîâî â âàøåì èìåíè."); define("L_ERR_USR_19", "Âû íå ìîæåòå ïðèñóòñòâîâàòü áîëüøå ÷åì â îäíîé êîìíàòå"); define("L_ERR_USR_20", "Âû áûëè âûñëàíû èç äàííîé êîìíàòû èëè ÷àòà."); ! define("L_ERR_ROM_1", "Íàçâàíèå êîìíàòû íå ìîæåò ñîäåðæàòü òî÷êó èëè ñëýø (\\)."); ! define("L_ERR_ROM_2", "Çàïðåùåííûå ñëîâà â íàçâàíèè êîìíàòû íå äîïóñêàþòñÿ."); ! define("L_ERR_ROM_3", "Ýòà êîìíàòà óæå ñóùåñòâóåò, êàê îäíà èç îáùåäîñòóïíûõ."); ! define("L_ERR_ROM_4", "Íåïðàâèëüíîå èìÿ êîìíàòû."); // users frame or popup define("L_EXIT", "Âûéòè"); ! define("L_DETACH", "Ñïèñîê â îòäåëüíîå îêíî"); define("L_EXPCOL_ALL", "Ðàçâåðíóòü/Ñâåðíóòü âñå"); define("L_CONN_STATE", "Ñòàòóñ Ñîåäèíåíèÿ"); define("L_CHAT", "÷àò"); define("L_USER", "ïîëüçîâàòåëü"); ! define("L_USERS", "ïîëüçîâàòåëåé"); define("L_NO_USER", "Íåò ïîëüçîâàòåëÿ"); ! define("L_ROOM", "êîìíàòà"); ! define("L_ROOMS", "êîìíàòû"); define("L_EXPCOL", "Ðàçâåðíóòü/Ñâåðíóòü êîìíàòó"); ! define("L_BEEP", "Çâóê/íåò_çâóêà ïðè âõîäå ïîëüçîâàòåëÿ"); ! define("L_PROFILE", "Ïîêàçàòü ïðîôàéë"); define("L_NO_PROFILE", "No profile"); *************** *** 136,198 **** 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", "Âðåìÿ íà ñåðâåðå: "); define("L_NO_SAVE", "Íåò ñîîáùåíèé äëÿ ñîõðàíåíèÿ!"); ! define("L_NO_ADMIN", "Òîëüêî àäìèí ìîæåò èñïîëüçîâàòü ýòó êîìàíäó."); define("L_ANNOUNCE", "Îáúÿâëåíèå"); ! define("L_INVITE", "%s ê Âàì ïðèøëî ïðèãëàøåíèÿ ïîäêëþ÷èòüñÿ ê <a href=\"#\" onclick=\"parent.runCmd('%s','%s')\">%s</a> êîìíòå."); ! define("L_INVITE_REG", " Âû äîëæíû çàðåãåñòðèðîâàòüñÿ äëÿ âõîäà â ýòó êîìíàòó."); define("L_INVITE_DONE", "Âàøå ïðèãëàøåíèå áûëî îòïðàâëåíî %s."); define("L_OK", "Îòïðàâèòü"); // help popup ! define("L_HELP_TIT_1", "Ñìàéëû"); define("L_HELP_TIT_2", "Ôîðìàòèðîâàíèå òåêñòà äëÿ ñîîáùåíèé"); ! define("L_HELP_FMT_1", "Âû ìîæåòå ñäåëàòü øðèôò æèðíûì, íàêëîííûì èëè ïîä÷åðêíóòü çàìåíÿÿ <B> </B>, <I> </I> or <U> </U> òåãè.<BR>Ïðèìåð, <B>ÒÅÊÑÒ</B> ðàâíîçíà÷íî <B>ÒÅÊÑÒ</B>."); ! define("L_HELP_FMT_2", "Äëÿ ñîçäàíèÿ ãèïåðññûëêè (e-mail or ÓÐË) â âàøåì ñîîáùåíèè, ïðîñòî íàïèøè ýòî áåç òàãîâ. Ãèïåðññûëêà ñîçäàòüñÿ àâòîìàòè÷åñêè."); define("L_HELP_TIT_3", "Êîìàíäû"); define("L_HELP_USR", "ïîëüçîâàòåëü"); define("L_HELP_MSG", "ñîîáùåíèÿ"); ! define("L_HELP_ROOM", "êàíàë"); define("L_HELP_CMD_0", "{} äëÿ îáÿçàòåëüíûõ ïàðàìåòðîâ, [] äëÿ íåîáÿçàòåëüíûõ ïàðàìåòðîâ."); ! define("L_HELP_CMD_1", "Óñòàíîâèòü ÷èñëî ïîêàçûâàåìûõ ñîîáùåíèé, íå ìåíåå 5."); ! define("L_HELP_CMD_1a", "Ñêîëüêî ñîîáùåíèé ïîêàçûâàòü, ìèíèìàëüíî 5."); ! define("L_HELP_CMD_1b", "Îáíîâèòü ôðåéì ñ ñîîáùåíèÿìè ÷åðåç n ñåê. Ìèíèìàëüíî 5 ñåê."); ! define("L_HELP_CMD_2a", "Èçìåíèòü âðåìÿ îáíîâëåíèÿ ñïèñêà ñîîáùåíèé (â ñåêóíäàõ).<BR>Åñëè n íå óêàçàíî èëè ìåíåå 3, ïåðåêëþ÷àåò ìåæäó ðåæèìàìè \"Íå îáíîâëÿòü\" è \"Îáíîâëåíèå - 10 ñåêóíä\"."); ! define("L_HELP_CMD_2b", "Îáíîâèòü ñîîáùåíèÿ è ñïèñîê ÷àòëàíîâ (â ñåê.).<BR>Åñëè n íå óñòàíîâëåíî èëè ìåíüøå 3. Òî àâòîìàòè÷åñêè óñòàíàâëèâàåòñÿ 10"); define("L_HELP_CMD_3", "Èçìåíèòü ïîðÿäîê ñîðòèðîâêè ñîîáùåíèé íà îáðàòíûé."); ! define("L_HELP_CMD_4", "Ïîäêëþ÷èòüñÿ ê äðóãîìó êàíàëó, ñîçäàòü, åñëè åãî íå ñóùåñòâóåò è âû èìååòå íà ýòî ïðàâî.<BR>Ïàðàìåòð n ðàâåí 0 äëÿ ÷àñòíîãî è 1 äëÿ îáùåäîñòóïíîãî, ïî óìîë÷àíèþ 1 åñëè íå óêàçàíî."); define("L_HELP_CMD_5", "Âûéòè èç ÷àòà, íàïèñàâ ñîîáùåíèå (îïöèîíàëüíî)."); ! define("L_HELP_CMD_6", "Íå ïîêàçûâàòü ñîîáùåíèÿ îò ïîëüçîâàòåëÿ (nick), åñëè nick óêàçàí.<BR>Ïîêàçûâàòü ñîîáùåíèÿ îò ïîëüçîâàòåëÿ åñëè ïàðàìåòðû nick è - óêàçàíû.<BR>Ïîêàçûâàòü ñîîáùåíèÿ îò âñåõ ïîëüçîâàòåëåé, êîãäà óêàçàí òîëüêî -.<BR>Áåç ïàðàìåòðîâ ýòà êîìàíäà ïîêàçûâàåò îêíî ñî âñåìè nick, ñîîáùåíèÿ îò êîòîðûõ íå ïîêàçûâàþòñÿ."); ! define("L_HELP_CMD_7", "Âûçâàòü ðàíåå ââåäåííóþ ñòðîêó (êîìàíäó èëè ñîîáùåíèå)."); define("L_HELP_CMD_8", "Ïîêàçûâàòü/Ïðÿòàòü âðåìÿ ïåðåä ñîîáùåíèåì."); ! define("L_HELP_CMD_9", "Þçåðû ïîêèäàþò ÷àò. Êîìàíäà äîñòóïíà òîëüêî àäìèíó."); define("L_HELP_CMD_10", "Îòïðàâêà ñîîáùåíèÿ â ïðèâàò."); ! define("L_HELP_CMD_11", "Ïîêàçàòü èíôîðìàöèþ îá îïðåäåëåííîì ïîëüçîâàòåëå."); define("L_HELP_CMD_12", "Âûñêàêèâàþùåå ìåíþ ðåäàêòèðîâàíèÿ ïðîôàéëà."); ! define("L_HELP_CMD_13", "Ïîêàçûâàòü ñîîáùåíèå î òîì, ÷òî êòî çàîøåë â ÷àò èëè âûøåë."); ! define("L_HELP_CMD_14", "Ïîçâîëÿåò àäìèíèñòðàòîðó èëè ìîäåðàòîðó(àì) äàííîé êîìíàòû äàâàòü ïðàâà ìîäåðàòîðà äðóãîìó çàðåãèñòðèðîâàííîìó ïîëüçîâàòåëþ â ýòîé æå êîìíàòå."); ! define("L_HELP_CMD_15", "Î÷èñòèòü ôðåéì ñîîáùåíèé è ïîêàçàòü òîëêüî 5 ïîñëåäíèõ."); ! define("L_HELP_CMD_16", "Ñîõðàíèòü n ïîñëåäíèõ ñîîáùåíèé â HTML ôàéë. Åñëè n íå óêàçàíî, âñå ñîîáùåíèÿ áóäó ! ñîõðàíåíû."); ! define("L_HELP_CMD_17", "Âîçâîëÿåò àäìèíó ðàññûëàòü îáúÿâëåíèÿ âñåì ÷àòëàíàì â êîìíàòå."); ! define("L_HELP_CMD_18", "Ïðåäëîæèòå äóðãîìó ÷àòëàíó, ïðèñîåäèòñÿ ê âàì."); ! define("L_HELP_CMD_19", "Ïîçâîëÿåò ìîäåðàòîðàì èëè àäìèíàì ÷àòà áàíèòü \"banish\" ÷àòëàí.<BR>Ïîçäíåå ìîæíî çàáàíèòü ýòîãî ÷àòëàíà ïî âñåõ êîìíàòàõ óêàçàâ '<B> * </B>'."); ! define("L_HELP_CMD_20", "Êîðîòêî î ñåáå."); // message frame define("L_NO_MSG", "Çäåñü ïîêà íåò ñîîáùåíèé ..."); ! define("L_TODAY_DWN", "Ïîñëåäíèè ñîîáùåíèÿ íà÷èíàþòñÿ ñíèçó"); ! define("L_TODAY_UP", "Ïîñëåäíèè ñîîáùåíèÿ íà÷èíàþòñÿ ñâåðõó"); // message colors --- 136,197 ---- 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", "Âðåìÿ íà ñåðâåðå: "); define("L_NO_SAVE", "Íåò ñîîáùåíèé äëÿ ñîõðàíåíèÿ!"); ! define("L_NO_ADMIN", "Òîëüêî àäìèíèñòðàòîð ìîæåò èñïîëüçîâàòü ýòó êîìàíäó."); define("L_ANNOUNCE", "Îáúÿâëåíèå"); ! define("L_INVITE", "%s ïðèãëàøàåò Âàñ â êîìíàòó <A HREF=\"#\" onClick=\"window.parent.runCmd('%s','%s')\">%s</A>."); ! define("L_INVITE_REG", " Âû äîëæíû áûòü çàðåãèñòðèðîâàíû â ÷àòå, ÷òîáû âîéòòè â ýòó êîìíàòó."); define("L_INVITE_DONE", "Âàøå ïðèãëàøåíèå áûëî îòïðàâëåíî %s."); define("L_OK", "Îòïðàâèòü"); // help popup ! define("L_HELP_TIT_1", "Ñìàéëèêû"); define("L_HELP_TIT_2", "Ôîðìàòèðîâàíèå òåêñòà äëÿ ñîîáùåíèé"); ! define("L_HELP_FMT_1", "Âû ìîæåòå ñäåëàòü øðèôò æèðíûì, íàêëîííûì èëè ïîä÷åðêíóòûì, èñïîëüçóÿ òýãè <B> </B>, <I> </I> èëè <U> </U>.<BR>Íàïðèìåð, <B>ÒÅÊÑÒ</B> ðàâíîçíà÷íî <B>ÒÅÊÑÒ</B>."); ! define("L_HELP_FMT_2", "Äëÿ ñîçäàíèÿ ãèïåðññûëêè (e-mail or URL) â âàøåì ñîîáùåíèè ïðîñòî íàïèøèòå àäðåñ áåç òýãîâ. Ãèïåðññûëêà ñîçäàòüñÿ àâòîìàòè÷åñêè."); define("L_HELP_TIT_3", "Êîìàíäû"); define("L_HELP_USR", "ïîëüçîâàòåëü"); define("L_HELP_MSG", "ñîîáùåíèÿ"); ! define("L_HELP_ROOM", "êîìíàòà"); define("L_HELP_CMD_0", "{} äëÿ îáÿçàòåëüíûõ ïàðàìåòðîâ, [] äëÿ íåîáÿçàòåëüíûõ ïàðàìåòðîâ."); ! define("L_HELP_CMD_1", "Óñòàíîâèòü ÷èñëî ïîêàçûâàåìûõ ñîîáùåíèé (íå ìåíåå 5)."); ! define("L_HELP_CMD_1a", "Ñêîëüêî ñîîáùåíèé ïîêàçûâàòü (ìèíèìóì 5)."); ! define("L_HELP_CMD_1b", "Îáíîâëÿòü îêíî ÷àòà ñ ñîîáùåíèÿìè ÷åðåç n ñåê. (Ìèíèìóì 5 ñåê.)"); ! define("L_HELP_CMD_2a", "Èçìåíèòü âðåìÿ îáíîâëåíèÿ îêíà ÷àòà (â ñåêóíäàõ).<BR>Åñëè n íå óêàçàíî èëè ìåíåå 3, ïåðåêëþ÷àåò ìåæäó ðåæèìàìè \"Íå îáíîâëÿòü\" è \"Îáíîâëåíèå - 10 ñåêóíä\"."); ! define("L_HELP_CMD_2b", "Îáíîâèòü ñîîáùåíèÿ è ñïèñîê ïîëüçîâàòåëåé (â ñåê.).<BR>Åñëè n íå óñòàíîâëåíî èëè ìåíüøå 3. Òî àâòîìàòè÷åñêè óñòàíàâëèâàåòñÿ 10"); define("L_HELP_CMD_3", "Èçìåíèòü ïîðÿäîê ñîðòèðîâêè ñîîáùåíèé íà îáðàòíûé."); ! define("L_HELP_CMD_4", "Âîéòè â äðóãóþ êîìíàòó, ñîçäàòü, åñëè åå íå ñóùåñòâóåò è âû èìååòå íà ýòî ïðàâî.<BR>Ïàðàìåòð n ðàâåí 0 äëÿ ïðèâàòíîé è 1 äëÿ îáùåäîñòóïíîé êîìíàòû (ïî óìîë÷àíèþ 1)."); define("L_HELP_CMD_5", "Âûéòè èç ÷àòà, íàïèñàâ ñîîáùåíèå (îïöèîíàëüíî)."); ! define("L_HELP_CMD_6", "Íå ïîêàçûâàòü ñîîáùåíèÿ îò ïîëüçîâàòåëÿ (íèê), åñëè íèê óêàçàí.<BR>Ïîêàçûâàòü ñîîáùåíèÿ îò ïîëüçîâàòåëÿ, åñëè óêàçàíû èìÿ è ïàðàìåòð '-'.<BR>Ïîêàçûâàòü ñîîáùåíèÿ îò âñåõ ïîëüçîâàòåëåé, åñëè óêàçàí òîëüêî '-'.<BR>Áåç ïàðàìåòðîâ ýòà êîìàíäà ïîêàçûâàåò îêíî ñî âñåìè íèêàìè, ñîîáùåíèÿ îò êîòîðûõ èãíîðèðóþòñÿ."); ! define("L_HELP_CMD_7", "Âûçâàòü ïðåäûäóùóþ ñòðîêó (êîìàíäó èëè ñîîáùåíèå)."); define("L_HELP_CMD_8", "Ïîêàçûâàòü/Ïðÿòàòü âðåìÿ ïåðåä ñîîáùåíèåì."); ! define("L_HELP_CMD_9", "Âûêèíóòü ïîëüçîâàòåëÿ èç êîìíàòû. Êîìàíäà äîñòóïíà òîëüêî àäìèíèñòðàòîðó."); define("L_HELP_CMD_10", "Îòïðàâêà ñîîáùåíèÿ â ïðèâàò."); ! define("L_HELP_CMD_11", "Ïîêàçàòü èíôîðìàöèþ î ïîëüçîâàòåëå."); define("L_HELP_CMD_12", "Âûñêàêèâàþùåå ìåíþ ðåäàêòèðîâàíèÿ ïðîôàéëà."); ! define("L_HELP_CMD_13", "Ïîêàçûâàòü/íå_ïîêàçûââàòü ñîîáùåíèå î âõîäå è âûõîäå ïîëüçîâàòåëåé."); ! define("L_HELP_CMD_14", "Ïîçâîëÿåò àäìèíèñòðàòîðó èëè ìîäåðàòîðó êîìíàòû äàâàòü ïðàâà ìîäåðàòîðà ýòîé êîìíàòû äðóãîìó çàðåãèñòðèðîâàííîìó ïîëüçîâàòåëþ."); ! define("L_HELP_CMD_15", "Î÷èñòèòü îêíî ÷àòà è ïîêàçàòü 5 ïîñëåäíèõ ñîîáùåíèé."); ! define("L_HELP_CMD_16", "Ñîõðàíèòü n ïîñëåäíèõ ñîîáùåíèé â HTML ôàéë. Åñëè n íå óêàçàíî, âñå ñîîáùåíèÿ áóäóò ñîõðàíåíû."); ! define("L_HELP_CMD_17", "Ïîçâîëÿåò àäìèíèñòðàòîðó ïîñëàòü îáúÿâëåíèå âñåì ïîëüçîâàòåëÿì, íåçàâèñèìî îò òîãî, â êàêîé êîìíàòå îíè íàõîäÿòñÿ.."); ! define("L_HELP_CMD_18", "Ïðèãëàñèòü ïîëüçîâàòåëÿ èç äðóãîé êîìíàòû ïðèñîåäèíèòüñÿ ê Âàì."); ! define("L_HELP_CMD_19", "Ïîçâîëÿåò ìîäåðàòîðó êîìíàòû èëè àäìèíèñòðàòîðó \"âûêèíóòü\" ïîëüçîâàòåëÿ èç êîìíàòû íà îïðåäåëåííîå àäìèíèìòðàòîðîì âðåìÿ.<BR>Ýòîò ïîëüçîâàòåëü íå ñìîæåò ïîïàñòü äàæå â äðóãóþ êîìíàòó, à ñ ïîìîùüþ îïöèè '<B> * </B>' ìîæíî óäàëèòü \"íàâñåãäà\"."); ! define("L_HELP_CMD_20", "Äåéñòâèå èëè ñîîáøåíèå îò òðåòüåãî ëèöà."); // message frame define("L_NO_MSG", "Çäåñü ïîêà íåò ñîîáùåíèé ..."); ! define("L_TODAY_DWN", "Ñîîáùåíèÿ, ïîñëàííûå ñåãîäíÿ, íà÷èíàþòñÿ íèæå"); ! define("L_TODAY_UP", "Ñîîáùåíèÿ, ïîñëàííûå ñåãîäíÿ, íà÷èíàþòñÿ âûøå"); // message colors *************** *** 219,223 **** // Notification messages of user entrance/exit ! define("L_ENTER_ROM", "%s ïðèâåòñâóåò Âàñ !"); ! define("L_EXIT_ROM", "%s ïðîùàåòñÿ ñ Âàìè!"); ?> --- 218,222 ---- // Notification messages of user entrance/exit ! define("L_ENTER_ROM", "%s âõîäèò â êîìíàòó"); ! define("L_EXIT_ROM", "%s âûõîäèò èç êîìíàòû"); ?> Index: localized.admin.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/localization/russian/localized.admin.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** localized.admin.php3 2001/03/27 19:32:32 1.3 --- localized.admin.php3 2001/05/06 17:04:42 1.4 *************** *** 1,6 **** <?php // File : russian.lang.php3 ! // Translation by Alexei Shalin <hap...@to...> ! // & Dim Zegebart <ke...@rb...> // extra header for charset --- 1,6 ---- <?php // File : russian.lang.php3 ! // Translation by Alexei Shalin <hap...@to...>, ! // Dim Zegebart <ke...@rb...> & Arsen <ar...@be...> // extra header for charset *************** *** 11,31 **** // Top frame ! define("A_MENU_0", "Àäìèíèñòðèðîâàíèå %s"); ! define("A_MENU_1", "Çàðåãèñòðèðîâàííûå ÷àòëàíå"); ! define("A_MENU_2", "Çàáàíåííûå ÷àòëàíå"); define("A_MENU_3", "Î÷èñòèòü êîìíàòû"); define("A_MENU_4", "Ïîñëàòü ïèñüìà"); // Frame for registered users ! define("A_SHEET1_1", "Ñïèñîê çàðåãèñòðèðîâàííûõ ÷àòëàíîâ è èõ ïðàâà"); define("A_SHEET1_2", "Íèê"); ! define("A_SHEET1_3", "Ïðàâà è îáÿçàííîñòè"); ! define("A_SHEET1_4", "Êîìíàòû ñ ìîäåðàòîðàìè"); ! define("A_SHEET1_5", "Ìîäåðèðóåìû êîìíàòû ïåðå÷åñëÿþòñÿ ÷åðåç (,) áåç ïðîáåëîâ."); ! define("A_SHEET1_6", "Óäàëåíèå ïðîâåðåíî"); define("A_SHEET1_7", "Èçìåíèòü"); ! define("A_SHEET1_8", "Çàðåãèñòðèðîâàííûõ ÷àòëàíîâ íåò, íó êðîìå Âàñ."); ! define("A_SHEET1_9", "Âûñëàòü ïðîâåðåííûå ïðîôàéëû"); ! define("A_SHEET1_10", "Äëÿ îáíîâëåíèÿ ïåðåéäèòå íà ñòðàíèöó çàáàíåíûõ ïîëüçîâàòåëåé."); define("A_SHEET1_11", "Ïîñëåäíåå ñîåäèíåíèå"); define("A_USER", "Ïîëüçîâàòåëü"); --- 11,31 ---- // Top frame ! define("A_MENU_0", "Àäìèíèñòðèðîâàíèå: %s"); ! define("A_MENU_1", "Çàðåãèñòðèðîâàííûå ïîëüçîâàòåëè"); ! define("A_MENU_2", "Óáèòûå ïîëüçîâàòåëè"); define("A_MENU_3", "Î÷èñòèòü êîìíàòû"); define("A_MENU_4", "Ïîñëàòü ïèñüìà"); // Frame for registered users ! define("A_SHEET1_1", "Ñïèñîê çàðåãèñòðèðîâàííûõ ïîëüçîâàòåëåé è èõ ñòàòóñ"); define("A_SHEET1_2", "Íèê"); ! define("A_SHEET1_3", "ñòàòóñ"); ! define("A_SHEET1_4", "Ìîäåðèðóåìûå êîìíàòû"); ! define("A_SHEET1_5", "Ìîäåðèðóåìûå êîìíàòû ïåðå÷åñëÿþòñÿ ÷åðåç çàïÿòóþ, áåç ïðîáåëîâ."); ! define("A_SHEET1_6", "Óäàëèòü îòìå÷åííûå ïðîôàéëû"); define("A_SHEET1_7", "Èçìåíèòü"); ! define("A_SHEET1_8", "Çàðåãèñòðèðîâàííûõ ïîëüçîâàòåëåé, êðîìå Âàñ, íåò."); ! define("A_SHEET1_9", "Óáèòü îòìå÷åííûå ïðîôàéëû"); ! define("A_SHEET1_10", "Äëÿ îáíîâëåíèÿ ïåðåéäèòå íà ñòðàíèöó óáèòûõ ïîëüçîâàòåëåé."); define("A_SHEET1_11", "Ïîñëåäíåå ñîåäèíåíèå"); define("A_USER", "Ïîëüçîâàòåëü"); *************** *** 34,50 **** // Frame for banished users ! define("A_SHEET2_1", "Ñïèñîê çàáàííåõ ÷àòëàíîâ è èíòåðåñóþùèå Âàñ êîìíàòû"); define("A_SHEET2_2", "IP"); ! define("A_SHEET2_3", "Èíòåðåñóþùèå Âàñ êîìíàòû"); ! define("A_SHEET2_4", "Ïîêà "); ! define("A_SHEET2_5", "íå êîíåö"); ! define("A_SHEET2_6", "êîìíàòû óêàçûâàþòñÿ ÷åðåç (,)åñëè èõ áîëüøå 4, èíà÷å åñëè '<B> * </B>' òî <BR>áàíèì âî âñåõ êîìíàòàõ."); ! define("A_SHEET2_7", "Óäàëèòü áàí ñ ïîëüçîâàòåëÿ(åé)"); ! define("A_SHEET2_8", "Áàííåíûõ ïîëüçîâàòåëåé íåò."); // Frame for cleaning rooms define("A_SHEET3_1", "Ñïèñîê ñóùåñòâóþùèõ êîìíàò"); ! define("A_SHEET3_2", "Î÷èñòêà \"non-default\" êîìíàòû ïðèâåäåò ê óäàëåíèþ ìîäåðàòîðîâ <BR>â ýòîé êîìíàòå."); ! define("A_SHEET3_3", "Î÷èñòèòü âûáðàííóþ êîìíàòó"); define("A_SHEET3_4", "Çäåñü íå÷åãî ÷èñòèòü."); --- 34,50 ---- // Frame for banished users ! define("A_SHEET2_1", "Ñïèñîê óáèòûõ ïîëüçîâàòåëåé è ñîîòâåòñòâóþùèå êîìíàòû"); define("A_SHEET2_2", "IP"); ! define("A_SHEET2_3", "Óáèò â êîìíàòàõ"); ! define("A_SHEET2_4", "Óáèò äî"); ! define("A_SHEET2_5", "íàâñåãäà"); ! define("A_SHEET2_6", "êîìíàòû óêàçûâàþòñÿ ÷åðåç çàïÿòóþ, åñëè èõ áîëüøå 4, åñëè óêàçàòü '<B> * </B>' òî <BR>óáèò âî âñåõ êîìíàòàõ."); ! define("A_SHEET2_7", "Âîññòàíîâèòü îòìåí÷åííûõ ïîëüçîâàòåëåé"); ! define("A_SHEET2_8", "Óáèòûõ ïîëüçîâàòåëåé íåò."); // Frame for cleaning rooms define("A_SHEET3_1", "Ñïèñîê ñóùåñòâóþùèõ êîìíàò"); ! define("A_SHEET3_2", "Î÷èñòêà ëþáîé êîìíàòû, êðîìå êîìíàòû \"ïî óìîë÷àíèþ\",<BR> ïðèâåäåò ê óäàëåíèþ ìîäåðàòîðîâ â ýòîé êîìíàòå."); ! define("A_SHEET3_3", "Î÷èñòèòü âûáðàííûå êîìíàòû"); define("A_SHEET3_4", "Çäåñü íå÷åãî ÷èñòèòü."); *************** *** 55,62 **** define("A_SHEET4_3", "Âûáðàòü âñåõ"); define("A_SHEET4_4", "Òåìà:"); ! define("A_SHEET4_5", "Ñîîáùåíèÿ:"); define("A_SHEET4_6", "Íà÷àòü îòïðàâêó"); ! define("A_SHEET4_7", "Âñå ïèñüìà áûëè îòïðàâëåíû."); ! define("A_SHEET4_8", "Âîçíèêëà âíóòðåííÿ îøèáêà ïðè îòïðàâêå ïî÷òû."); define("A_SHEET4_9", "Ïðîâåðüòå íàëè÷èå àäðåñà, òåìû è ñîîáùåíèÿ !"); ?> --- 55,62 ---- define("A_SHEET4_3", "Âûáðàòü âñåõ"); define("A_SHEET4_4", "Òåìà:"); ! define("A_SHEET4_5", "Ñîîáùåíèå:"); define("A_SHEET4_6", "Íà÷àòü îòïðàâêó"); ! define("A_SHEET4_7", "Âñå ïèñüìà îòïðàâëåíû."); ! define("A_SHEET4_8", "Âîçíèêëà âíóòðåííÿÿ îøèáêà ïðè îòïðàâêå ïî÷òû."); define("A_SHEET4_9", "Ïðîâåðüòå íàëè÷èå àäðåñà, òåìû è ñîîáùåíèÿ !"); ?> |
From: Lo?c C. <lo...@us...> - 2001-05-06 16:59:13
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv18311/chat/lib Modified Files: release.lib.php3 Log Message: Updated the release tag to beta3 ***** 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.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** release.lib.php3 2001/04/29 14:28:26 1.5 --- release.lib.php3 2001/05/06 16:59:11 1.6 *************** *** 1,4 **** <?php define("APP_NAME", "phpMyChat"); // Application name ! define("APP_VERSION", "0.14.3 - beta 2"); // Application version number ?> --- 1,4 ---- <?php define("APP_NAME", "phpMyChat"); // Application name ! define("APP_VERSION", "0.14.3 - beta 3"); // Application version number ?> |
From: Lo?c C. <lo...@us...> - 2001-05-06 16:47:54
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv16582/chat/lib/index_libs Modified Files: do_enter_js_work.lib.php3 Added Files: connect_status.lib.js Log Message: The (in)famous IE4 javascript bug is fixed :))) --- NEW FILE --- // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | Set of JavaScript functions used to handle the connection state for the | // | 'standard' version of phpMyChat (the JavaScript loader is used). | // | | // | This library is called by the 'chat/lib/index_libs/main_index.lib.php3' | // | script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: connect_status.lib.js,v 1.1 2001/05/06 16:47:51 loic1 Exp $ // // Handle the connection state for the 'standard' version of phpMyChat. // var jsImgConnectOff = new Image(13,13); jsImgConnectOff.src = jsChatPath + 'images/connect_off.gif'; var jsImgConnectOn = new Image(13,13); jsImgConnectOn.src = jsChatPath + 'images/connect_on.gif'; var jsImgConnectErr = new Image(13,13); jsImgConnectErr.src = jsChatPath + 'images/connect_error.gif'; var jsImgConnect = new Image(13,13); var jsLeaveChat = false; var jsConnect = 0; var jsIsConnecting = null; var jsIsInitLoad = 1; var jsLastLoadedMsgTime = 0; var jsLastCheckedUserTime = 0; /** * Tries to connect twice if necessary and sets the icon for connection status * at the 'exit' frame * * @param numTry number of connection tries */ function pmcConnecting(numTry) { if (jsIsConnecting) clearTimeout(jsIsConnecting); jsConnect = numTry; var exitFrm = window.frames['exit']; if (typeof(exitFrm.document) == 'undefined') return; if (numTry == 1 || numTry == 2) { jsImgConnect.src = jsImgConnectOn.src; } else if (numTry == 3) { jsImgConnect.src = jsImgConnectErr.src; } if (jsIsDOM) { exitFrm.document.getElementById('imgConState').src = jsImgConnect.src; } else if (jsIsIE4) { exitFrm.document.all['imgConState'].src = jsImgConnect.src; } else if (jsIsNS4) { exitFrm.document.images['imgConState'].src = jsImgConnect.src; } if (numTry < 3) { numTry = numTry + 1; jsIsConnecting = setTimeout('pmcConnecting(' + numTry + ')', 30000); } else { clearTimeout(jsIsConnecting); jsConnect = 0; } return true; } // end of the 'pmcConnecting()' function /** * Kills the timeout defined in the 'pmcConnecting()' function to reconnect once * if the first connection failed, and sets the connection status icon to * 'done' in the exit frame */ function pmcConnectDone() { var exitFrm = window.frames['exit']; jsConnect = 0; if (jsIsConnecting) clearTimeout(jsIsConnecting); if (jsIsDOM) { if (typeof(exitFrm.document.getElementById('imgConState')) != 'undefined') exitFrm.document.getElementById('imgConState').src = jsImgConnectOff.src; } else if (jsIsIE4) { if (typeof(exitFrm.document.all['imgConState']) != 'undefined') exitFrm.document.all['imgConState'].src = jsImgConnectOff.src; } else if (jsIsNS4) { if (typeof(exitFrm.document.images['imgConState']) != 'undefined') exitFrm.document.images['imgConState'].src = jsImgConnectOff.src; } else return; } // end of the 'pmcConnectDone()' function /** * Refreshes the 'loader' frame */ function pmcDoRefreshLoader() { var jsLoaderUrl = 'loader.' + jsPhpExt + '?' + jsDbSessionSID + jsQueryArgSeparator + 'isInitLoad=' + jsIsInitLoad + jsQueryArgSeparator + 'lastMsgLoad=' + jsLastLoadedMsgTime + jsQueryArgSeparator + 'lastUsrCheck=' + jsLastCheckedUserTime; window.frames['loader'].window.location.replace(jsLoaderUrl); } // end of the 'pmcDoRefreshLoader()' function /** * Enforces a new connection try (used when the user click on the 'connection * status' icon at the exit frame) */ function pmcReConnect() { if (jsConnect != 1 && jsConnect != 2) { pmcConnecting(1); pmcDoRefreshLoader(); var inputForm = pmcGetInputForm(); if (inputForm != null) { inputForm.elements['sent'].value = '0'; if (typeof(inputForm.elements['submitType'].disabled) != 'undefined') inputForm.elements['submitType'].disabled = false; } } } // end of the 'pmcReConnect()' function 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.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** do_enter_js_work.lib.php3 2001/05/04 09:26:43 1.10 --- do_enter_js_work.lib.php3 2001/05/06 16:47:51 1.11 *************** *** 102,108 **** { ?> ! <!-- Gets the libraries for collapsible list and connection state --> <script src="<?php echo(_CHAT_PATH); ?>lib/index_libs/users.lib.js" type="text/javascript" language="javascript1.2"></script> ! <script src="<?php echo(_CHAT_PATH); ?>lib/index_libs/connect_state.lib.js" type="text/javascript" language="javascript1.2"></script> <?php } // end of the DHTML enabled browser case --- 102,108 ---- { ?> ! <!-- Gets the libraries for collapsible list and connection status --> <script src="<?php echo(_CHAT_PATH); ?>lib/index_libs/users.lib.js" type="text/javascript" language="javascript1.2"></script> ! <script src="<?php echo(_CHAT_PATH); ?>lib/index_libs/connect_status.lib.js" type="text/javascript" language="javascript1.2"></script> <?php } // end of the DHTML enabled browser case |
From: Lo?c C. <lo...@us...> - 2001-05-06 16:47:53
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv16582/chat Modified Files: loader.php3 input.php3 Log Message: The (in)famous IE4 javascript bug is fixed :))) Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** loader.php3 2001/04/24 09:07:51 1.17 --- loader.php3 2001/05/06 16:47:51 1.18 *************** *** 126,130 **** . 'WHERE ' . 'm_time > ' . $lastUsrCheck . ' AND ' ! . 'username IN (\'SYS enter\', \'SYS exit\', \'SYS promote\') AND ' . '(type = 1' . (($dbSessionVars['roomType'] == 0) --- 126,130 ---- . 'WHERE ' . 'm_time > ' . $lastUsrCheck . ' AND ' ! . 'username IN (\'SYS enter\', \'SYS exit\', \'SYS promote\', \'SYS delreg\') AND ' . '(type = 1' . (($dbSessionVars['roomType'] == 0) *************** *** 304,311 **** <script type="text/javascript" language="javascript"> <!-- - // Emulates replace method for non-js1.1 compliant browsers - if (typeof(location.replace) == 'undefined') - location.replace = location.assign; - // Updates the time for last checked user and the last loaded message, and the // current id --- 304,307 ---- Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** input.php3 2001/05/04 16:26:29 1.32 --- input.php3 2001/05/06 16:47:51 1.33 *************** *** 450,460 **** <script type="text/javascript" language="javascript"> <!-- ! // Refresh the messages frame if necessary ! ! // Emulates replace method for non-js1.1 compliant browsers ! if (typeof(location.replace) == 'undefined') location.replace = location.assign; ! window.parent.frames['messages'].window.location.replace('<?php echo($messagesLowUrl); ?>'); // --> </script> --- 450,466 ---- <script type="text/javascript" language="javascript"> <!-- ! // Emulates replace method for non-js1.1 compliant browsers (NS only) ! if (typeof(location.replace) == 'undefined' && typeof(location.assign) != 'undefined') location.replace = location.assign; ! // Refresh the messages frame ! if (typeof(location.replace) != 'undefined') ! { ! window.parent.frames['messages'].window.location.replace('<?php echo($messagesLowUrl); ?>'); ! } ! else ! { ! window.parent.frames['messages'].window.location.href = '<?php echo($messagesLowUrl); ?>'; ! } // --> </script> |
From: Lo?c C. <lo...@us...> - 2001-05-06 16:46:53
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv16400 Removed Files: connect_state.lib.js Log Message: Renamed to connect_status.lib.php3 --- connect_state.lib.js DELETED --- |
From: Lo?c C. <lo...@us...> - 2001-05-06 16:45:46
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv16200/chat/lib Modified Files: index.lib.php3 Log Message: The (in)famous IE4 javascript bug is fixed :))) ***** Bogus filespec: - ***** Bogus filespec: 0.14/chat/lib Index: index.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib/index.lib.php3,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** index.lib.php3 2001/04/20 17:05:27 1.9 --- index.lib.php3 2001/05/06 16:45:43 1.10 *************** *** 578,584 **** { ?> - // Emulates replace method for non-js1.1 compliant browsers - if (typeof(location.replace)=='undefined') location.replace = location.assign; - // Forced reload of the loader frame, function called by the input frame var time4LastLoadedMsg = null; --- 578,581 ---- |
From: Lo?c C. <lo...@us...> - 2001-05-06 16:45:46
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat In directory usw-pr-cvs1:/tmp/cvs-serv16200/chat Modified Files: loader.php3 Log Message: The (in)famous IE4 javascript bug is fixed :))) ***** Bogus filespec: - ***** Bogus filespec: 0.14/chat Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/loader.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** loader.php3 2001/04/23 18:28:48 1.6 --- loader.php3 2001/05/06 16:45:43 1.7 *************** *** 122,126 **** { $QueryRoom = " AND (type = 1".($T == "0" ? " OR (type = 0 AND room = '$R')" : "").") "; ! $DbLink->query("SELECT DISTINCT m_time FROM ".C_MSG_TBL." WHERE m_time > '$LastCheck' AND username IN ('SYS enter','SYS exit','SYS promote')".$QueryRoom."ORDER BY m_time DESC LIMIT 1"); $Users_Refresh = ($DbLink->num_rows() > 0); if ($Users_Refresh) list($LastCheck) = $DbLink->next_record(); --- 122,126 ---- { $QueryRoom = " AND (type = 1".($T == "0" ? " OR (type = 0 AND room = '$R')" : "").") "; ! $DbLink->query("SELECT DISTINCT m_time FROM ".C_MSG_TBL." WHERE m_time > '$LastCheck' AND username IN ('SYS enter','SYS exit','SYS promote','SYS delreg')".$QueryRoom."ORDER BY m_time DESC LIMIT 1"); $Users_Refresh = ($DbLink->num_rows() > 0); if ($Users_Refresh) list($LastCheck) = $DbLink->next_record(); *************** *** 236,242 **** <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"> <!-- - // Emulates replace method for non-js1.1 compliant browsers - if (typeof(location.replace)=='undefined') location.replace = location.assign; - // Update the time values for last check and last loaded message in the main page window.parent.time4LastLoadedMsg = "<?php echo($LastLoad); ?>"; --- 236,239 ---- |
From: Lo?c C. <lo...@us...> - 2001-05-06 16:45:46
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/docs In directory usw-pr-cvs1:/tmp/cvs-serv16200/docs Modified Files: changes.txt Log Message: The (in)famous IE4 javascript bug is fixed :))) ***** Bogus filespec: - ***** Bogus filespec: 0.14/docs Index: changes.txt =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/docs/changes.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** changes.txt 2001/04/29 14:29:12 1.7 --- changes.txt 2001/05/06 16:45:43 1.8 *************** *** 8,15 **** ! v 0.14.3 - 24/04/2001 """"""""""""""""""""" ! Since Beta1 : fixed a bug with the '/join' command and optimize a bit some SQL queries. ENHANCEMENT : clicking on the connection status button (at the 'exit' frame) if it turns --- 8,16 ---- ! v 0.14.3 - 05/05/2001 """"""""""""""""""""" ! Since Beta2 : the IE4 javascript bug note has been fixed thanks to the hard work of ! Maiwen zhang <zha...@ye...>. ENHANCEMENT : clicking on the connection status button (at the 'exit' frame) if it turns *************** *** 21,24 **** --- 22,27 ---- BUG FIXED : an important security fix has been merged into this release thanks to a contributor we don't know the name. + BUG FIXED : the (in)famous javascript bug with IE4 thanks to + Maiwen zhang <zha...@ye...>. BUG FIXED : overlapped chat name rooms with Netscape 4+. BUG FIXED : the 'refresh' header is not a valid one according to RFC specifications: |
From: Lo?c C. <lo...@us...> - 2001-05-05 21:50:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv5102/chat/lib/index_libs Modified Files: do_enter_db_work.lib.php3 Log Message: Fix the bug of the input frame size when joining another room 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.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** do_enter_db_work.lib.php3 2001/05/04 16:26:28 1.14 --- do_enter_db_work.lib.php3 2001/05/05 21:50:14 1.15 *************** *** 259,262 **** --- 259,269 ---- $keptLang = $dbSessionVars['lang']; $keptFrom = $dbSessionVars['from']; + if (!isset($winWidth) && dbSessionIsRegistered('winWidth')) + { + $winWidth = $dbSessionVars['winWidth']; + $winHeight = $dbSessionVars['winHeight']; + $colWidth = $dbSessionVars['colWidth']; + $rowHeight = $dbSessionVars['rowHeight']; + } unset($dbSessionVars); $dbSessionVars['from'] = $keptFrom; *************** *** 279,283 **** --- 286,292 ---- // some sizes $dbSessionVars['winWidth'] = (isset($winWidth)) ? $winWidth : 800; + $dbSessionVars['winHeight'] = (isset($winHeight)) ? $winHeight : 600; $dbSessionVars['colWidth'] = (isset($colWidth)) ? $colWidth : (L_FONT_SIZE * 0.85); + $dbSessionVars['rowHeight'] = (isset($rowHeight)) ? $rowHeight : ((L_FONT_SIZE * 1.5) + 5); dbSessionSave(); |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:42:58
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/admin In directory usw-pr-cvs1:/tmp/cvs-serv28423/chat/admin Modified Files: admin4.php3 admin3.php3 admin2.php3 Log Message: Ooops, forgot a security fix Index: admin4.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/admin/admin4.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** admin4.php3 2001/05/05 17:26:17 1.1 --- admin4.php3 2001/05/05 17:42:55 1.2 *************** *** 30,33 **** --- 30,42 ---- /** + * Ensure this script is called by the admin frameset (fix a security hole) + */ + if (!isset($dbSessionVars) || empty($dbSessionVars['authUsername'])) + { + exit(); + } + + + /** * The administrator has required an action to be done * Index: admin3.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/admin/admin3.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** admin3.php3 2001/05/05 17:26:17 1.1 --- admin3.php3 2001/05/05 17:42:55 1.2 *************** *** 29,32 **** --- 29,41 ---- /** + * Ensure this script is called by the admin frameset (fix a security hole) + */ + if (!isset($dbSessionVars) || empty($dbSessionVars['authUsername'])) + { + exit(); + } + + + /** * Cleans the messages table from a room * Index: admin2.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/admin/admin2.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** admin2.php3 2001/05/05 17:26:17 1.1 --- admin2.php3 2001/05/05 17:42:55 1.2 *************** *** 30,33 **** --- 30,42 ---- /** + * Ensure this script is called by the admin frameset (fix a security hole) + */ + if (!isset($dbSessionVars) || empty($dbSessionVars['authUsername'])) + { + exit(); + } + + + /** * Removes all banishments for an user * |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:26:20
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/admin_libs In directory usw-pr-cvs1:/tmp/cvs-serv25748/chat/lib/admin_libs Added Files: navigation.lib.php3 Log Message: First draft of the administration sheets --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | This library displays a navigation bar (begin, down, up and end buttons) | // | to move among results of a SQL query. | // | | // | It is called by the 'chat/admin1.php3' and 'chat/admin2.php3' scripts. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: navigation.lib.php3,v 1.1 2001/05/05 17:26:17 loic1 Exp $ // // Navigation among results of a SQL query. // /** * Displays the navigation bar * * @param integer total count of profiles to be displayed * * @global array the session data * @global string the url to use on the click of an arrow * @global string the cell alignment * @global string the opposite cell alignment * @global string the 'to the beginning' arrow gif * @global string the 'next' arrow gif * @global string the 'to the end' arrow gif * @global string the 'previous' arrow gif * @global integer the offset for the last page of data */ function pmcPagesNav($regCnt = 1) { global $dbSessionVars; global $adminBodyNavigUrl; global $cellAlign, $invertCellAlign; global $navBeginImg, $navDownImg, $navEndImg, $navUpImg; global $lastPageOffset; echo("\t\t" . '<table border="0" cellpadding="5" cellspacing="0" class="tableTitle" width="100%">' . "\n"); echo("\t\t\t" . '<tr>' . "\n"); // Links to move some pages down echo("\t\t\t\t" . '<td align="' . $cellAlign . '" valign="middle" width="70" height="20" class="tabTitle">' . "\n"); if ($dbSessionVars['offset'] > 0) { $pageDown = ($dbSessionVars['offset'] - 10 > 0) ? $dbSessionVars['offset'] - 10 : 0; echo("\t\t\t\t\t" . ' <a href="' . $adminBodyNavigUrl . '0"><img src="images/admin_imgs/' . $navBeginImg . '" height="20" width="20" border="0" alt="start"/></a>' . "\n"); echo("\t\t\t\t\t" . ' <a href="' . $adminBodyNavigUrl . $pageDown . '"><img src="images/admin_imgs/' . $navDownImg .'" height="20" width="21" border="0" alt="down" /></a>' . "\n"); } else // the first page is already displayed { echo("\t\t\t\t\t" . ' ' . "\n"); } echo("\t\t\t\t" . '</td>' . "\n"); // Displays the current page number and the pages count $pageNum = ceil(($dbSessionVars['offset'] + 1) / 10); $pagesCnt = ceil($regCnt / 10); echo("\t\t\t\t" . '<td align="center" valign="middle" height="20" class="tabTitle">' . "\n"); echo("\t\t\t\t\t" . '<span class="small">' . sprintf(A_PAGE_CNT, $pageNum, $pagesCnt) . '</span>' . "\n"); echo("\t\t\t\t" . '</td>' . "\n"); // Links to move some pages up echo("\t\t\t\t" . '<td align="' . $invertCellAlign . '" valign="middle" width="70" height="20" class="tabTitle">' . "\n"); if ($dbSessionVars['offset'] < $lastPageOffset) { $pageUp = $dbSessionVars['offset'] + 10; echo("\t\t\t\t\t" . ' <a href="' . $adminBodyNavigUrl . $pageUp . '"><img src="images/admin_imgs/' . $navUpImg .'" height="20" width="20" border="0" alt="up" /></a>' . "\n"); echo("\t\t\t\t\t" . ' <a href="' . $adminBodyNavigUrl . $lastPageOffset . '"><img src="images/admin_imgs/' . $navEndImg . '" height="20" width="21" border="0" alt="end" /></a>' . "\n"); } else // the last page is already displayed { echo("\t\t\t\t\t" . ' ' . "\n"); } echo("\t\t\t\t" . '</td>' . "\n"); echo("\t\t\t" . '</tr>' . "\n"); echo("\t\t\t" . '</table>' . "\n"); } // end of the function 'pmcPagesNav()' ?> |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:26:19
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/admin In directory usw-pr-cvs1:/tmp/cvs-serv25748/chat/admin Added Files: admin_top.php3 admin_body.php3 admin4.php3 admin3.php3 admin2.php3 admin1.php3 Log Message: First draft of the administration sheets --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | This script displays the menu for the administration sheets at the top | // | of the administration webpage. | // | | // | It is called by the 'chat/admin.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: admin_top.php3,v 1.1 2001/05/05 17:26:17 loic1 Exp $ // // Menu for the administration work for phpMyChat. // /** * Displays the webpage * * Uses the 'pmcUrlForStyleSheet()' function defined inside the * 'chat/lib/common.lib.php3' script */ // The url for the style sheet $cssUrl = pmcUrlForStyleSheet('admin', A_CHARSET, (defined('A_FONT_NAME')) ? A_FONT_NAME : '', A_FONT_SIZE); // The url base for thumbnails links $thumbUrl = $dbSessionVars['adminFrom'] . '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'adminSheet='; // Close the db session handler $dbSessionDbLink->close(); unset($dbSessionDbLink); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html dir="<?php echo((A_CHARSET == 'windows-1256') ? 'rtl' : 'ltr'); ?>"> <head> <title><?php echo(APP_NAME); ?></title> <link rel="stylesheet" href="<?php echo($cssUrl); ?>" type="text/css" /> </head> <body> <table align="right" border="0" cellpadding="3" cellspacing="0" class="menu"> <tr> <td align="left" valign="bottom" nowrap="nowrap" class="menuTitle"> <img src="images/sel_color.gif" width="5" alt="" /><?php echo(sprintf(A_MENU_0, APP_NAME) . "\n"); ?> </td> <td align="left" valign="bottom" width="1500" class="menuTitle"> <img src="images/sel_color.gif" width="5" alt="" /> </td> <td align="center" nowrap="nowrap" class="thumbIndex"> <a href="<?php echo($thumbUrl); ?>1" target="_parent"<?php if ($dbSessionVars['adminSheet'] == 1) echo(' class="selected"'); ?>><?php echo(A_MENU_1); ?></a> </td> <td width="1"><img src="images/sel_color.gif" width="1" alt="" /></td> <td align="center" nowrap="nowrap" class="thumbIndex"> <a href="<?php echo($thumbUrl); ?>2" target="_parent"<?php if ($dbSessionVars['adminSheet'] == 2) echo(' class="selected"'); ?>><?php echo(A_MENU_2); ?></a> </td> <td width="1"><img src="images/sel_color.gif" width="1" alt="" /></td> <td align="center" nowrap="nowrap" class="thumbIndex"> <a href="<?php echo($thumbUrl); ?>3" target="_parent"<?php if ($dbSessionVars['adminSheet'] == 3) echo(' class="selected"'); ?>><?php echo(A_MENU_3); ?></a> </td> <?php // Display the thumbnail for the mail work? if (C_MAIL_FUNCTION) { echo("\n"); ?> <td width="1"><img src="images/sel_color.gif" width="1" alt="" /></td> <td align="center" nowrap="nowrap" class="thumbIndex"> <a href="<?php echo($thumbUrl); ?>4" target="_parent"<?php if ($dbSessionVars['adminSheet'] == 4) echo(' class="selected"'); ?>><?php echo(A_MENU_4); ?></a> </td> <?php } echo("\n"); ?> <td width="2"> <img src="images/sel_color.gif" width="2" alt="" /> </td> </tr> </table> </body> </html> <?php ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | This script displays the common part of the administration body, | // | whatever is the sheet to be displayed. | // | Here are defined some common variables, then the sheet corresponding | // | to what the administrator wants to do is included. | // | | // | It is called by the 'chat/admin.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: admin_body.php3,v 1.1 2001/05/05 17:26:17 loic1 Exp $ // // Common part of the administration body for phpMyChat. // /** * Ensure this script is called by the admin frameset (fix a security hole) */ if (!isset($dbSessionVars) || empty($dbSessionVars['authUsername'])) { exit(); } /** * Defines some variables */ // Target URLs for links and forms $adminBodyUrl = $dbSessionVars['adminFrom'] . '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'whichFrame=body'; // Sorting and navigation links (for the 1st and the 2nd sheets) if ($dbSessionVars['adminSheet'] < 3) { $adminBodySortUrl = $adminBodyUrl . $pmcQueryArgSeparator . 'sortBy='; $invertSortOrder = $pmcQueryArgSeparator . 'sortOrder=' . (($dbSessionVars['sortOrder'] == 'ASC') ? 'DESC' : 'ASC'); $adminBodyNavigUrl = $adminBodyUrl . $pmcQueryArgSeparator . 'offset='; } // Horizontal alignement for cells topic and gifs names for the navigation bar if (A_CHARSET == 'windows-1256') // Arabic { $cellAlign = 'right'; $invertCellAlign = 'left'; $navBeginImg = 'end.gif'; $navDownImg = 'up.gif'; $navEndImg = 'begin.gif'; $navUpImg = 'down.gif'; } else { $cellAlign = 'left'; $invertCellAlign = 'right'; $navBeginImg = 'begin.gif'; $navDownImg = 'down.gif'; $navEndImg = 'end.gif'; $navUpImg = 'up.gif'; } // Instantiates a new DB object $dbLink = new pmcDB; /** * Optimizes tables when the script is ran for the first time */ if (dbSessionIsRegistered('adminDoOptimize')) { $dbLink->optimize(C_MSG_TBL); $dbLink->optimize(C_USR_TBL); $dbLink->optimize(C_REG_TBL); $dbLink->optimize(C_BAN_TBL); } /** * Displays the webpage * * Uses the 'pmcUrlForStyleSheet()' function defined inside the * 'chat/lib/common.lib.php3' script */ $cssUrl = pmcUrlForStyleSheet('admin', A_CHARSET, (defined('A_FONT_NAME')) ? A_FONT_NAME : '', A_FONT_SIZE); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html dir="<?php echo((A_CHARSET == 'windows-1256') ? 'rtl' : 'ltr'); ?>"> <head> <title><?php echo(APP_NAME); ?></title> <link rel="stylesheet" href="<?php echo($cssUrl); ?>" type="text/css" /> </head> <body> <center> <?php require('./admin/admin' . $dbSessionVars['adminSheet'] . '.' . C_EXTENSION); ?> </center> </body> </html> <?php // Save session data and kill the db session handler associated to sessions dbSessionSave(); $dbSessionDbLink->close(); unset($dbSessionDbLink); // Kills the opened DB instance (skipped because of Apache) // $dbLink->close(); ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | This is used when the administrator wants to send e-mails to some of the | // | registered users. | // | | // | It is called by the 'chat/admin_body.php3' script and requires the | // | 'chat/lib/admin_libs/admin_mail.lib.php3' library to have been | // | completed. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: admin4.php3,v 1.1 2001/05/05 17:26:17 loic1 Exp $ // // Administration sheet to send e-mails to some of the registered users of // phpMyChat. // /** * The administrator has required an action to be done * * Uses the 'pmcHandleMagicQuotes()' function defined in the * 'chat/lib/common.lib.php3' library */ if (!empty($submitType)) { // Sends the e-mails when an user has been selected at least and subject // and message fields have been filled if (count($sendTo) > 0 && trim($subject) != '' && trim($message) != '') { $subject = pmcHandleMagicQuotes($subject, 1, '', 'del'); $message = pmcHandleMagicQuotes($message, 1, '', 'del'); if (!defined('_LIB_PHPMYMAILER_LOADED')) include('./lib/mailer.lib.' . C_EXTENSION); $mailHandler = new PHPMYMAILER(C_ADM_EMAIL, C_ADM_SENDER); $failedSending = array(); $sendToCnt = count($sendTo); reset($sendTo); for ($j = 0; $j < $sendToCnt; $j++) { $mailTo = $sendTo[$j]; // Get e-mail and nick of each of the selected users $splitted = explode(' ', $mailTo); $splitted[1] = pmcHandleMagicQuotes($splitted[1], 1, '', 'del'); $recipient[$splitted[0]] = array($splitted[1], ''); // Send the e-mail $mailHandler->pmmSendEmail( $recipient, A_CHARSET, $subject, $message, '', $priority); if (!$mailHandler->pmmIsSent) $failedSending[$splitted[1]] = $splitted[0]; unset($recipient); } $warning = (count($failedSending)) ? A_SHEET4_8 : A_SHEET4_7; $warningStyle = (count($failedSending)) ? 'error' : 'success'; unset($mailHandler); } else { $warning = A_SHEET4_9; $warningStyle = 'error'; } unset($sendTo); } /** * Displays the mailing sheet * * Uses the 'pmcHandleMagicQuotes()' and 'pmcSpecialChars()' functions that * are defined inside the 'chat/lib/common.lib.php3' script. */ ?> <p class="title"><?php echo(A_SHEET4_1); ?></p> <?php if (!empty($warning)) echo('<p class="' . $warningStyle . '">' . $warning . '</p><br />'. "\n"); ?> <table class="table"> <?php // Display an error message if the required settings aren't completed inside // the 'chat/config/config.php3' file if (C_ADM_SENDER == '' || C_ADM_EMAIL == '') { ?> <tr> <td align="center" class="error"><?php echo(A_SHEET4_0); ?></td> </tr> <?php } // end of the case where some required settings haven't been completed else { // Ensure at least one registered user exists (except the administrator) // before displaying the mail form $dbLink->query("SELECT COUNT(*) FROM " . C_REG_TBL . " WHERE perms != 'admin' LIMIT 1"); list($regUsersCnt) = $dbLink->nextRecord(); $dbLink->cleanResults(); if ($regUsersCnt != 0) { ?> <!-- Mail form --> <tr> <td align="center"> <form action="<?php echo($adminBodyUrl); ?>" method="post" autocomplete="off" name="adminMailForm"> <table border="0" cellspacing="5" width="100%"> <tr> <!-- Addressees list --> <td valign="top"> <table border="0" width="100%"> <tr> <td align="center"><?php echo(A_SHEET4_2); ?></td> </tr> <tr> <td align="center"> <select name="sendTo[]" multiple="multiple" size="15"> <?php echo("\n"); $dbLink->query("SELECT username, latin1, email FROM " . C_REG_TBL . " WHERE perms != 'admin' ORDER BY username"); while (list($username, $latin1, $email) = $dbLink->nextRecord()) { $username = pmcHandleMagicQuotes($username, '', '1', 'del'); $email = pmcHandleMagicQuotes($email, '', '1', 'del'); echo("\t\t\t\t\t\t\t\t"); echo('<option value="' . $email . ' ' . htmlspecialchars($username) . '">' . pmcSpecialChars($username, $latin1) . '</option>'); echo("\n"); } $dbLink->cleanResults(); ?> </select> </td> </tr> <tr><td> </td></tr> <tr> <td align="center"> <input type="button" value="<?php echo(A_SHEET4_3); ?>" onclick="for (var i = 0; i < document.forms['adminMailForm'].elements['sendTo[]'].options.length; i++) {document.forms['adminMailForm'].elements['sendTo[]'].options[i].selected=true;}" /> </td> </tr> </table> </td> <td> </td> <!-- Subject and message --> <td> <table border="0" width="100%"> <tr> <td valign="center" align="<?php echo($cellAlign); ?>"><?php echo(A_SHEET4_4); ?></td> <td valign="center" align="<?php echo($cellAlign); ?>"> <input type="text" name="subject" size="30" value="<?php echo('[' . APP_NAME . '] '); ?>" /> </td> <td valign="center" align="<?php echo($cellAlign); ?>"> <?php echo(A_SHEET4_10); ?> <select name="priority"> <option value="4"><?php echo(A_SHEET4_11); ?> </option> <option value="3" selected="selected"><?php echo(A_SHEET4_12); ?> </option> <option value="1"><?php echo(A_SHEET4_13); ?> </option> </select> </td> </tr> <tr> <td valign="top" align="<?php echo($cellAlign); ?>"><?php echo(A_SHEET4_5); ?></td> <td valign="middle" align="center" colspan="2"> <textarea name="message" cols="70" rows="14"></textarea> </td> </tr> <tr><td> </td></tr> <tr> <td> </td> <td valign="middle" align="<?php echo($invertCellAlign); ?>"> <input type="submit" name="submitType" value="<?php echo(A_SHEET4_6); ?>" /> </td> </tr> </table> </td> </tr> </table> </form> </td> </tr> <?php } // end of the case where some registered users exist else { ?> <tr> <td align="center" class="error"><?php echo(A_SHEET1_8); ?></td> </tr> <?php } } // end of the case where some required vars have been completed echo("\n"); ?> </table> <?php /** * Display the mail errors */ if (isset($failedSending) && count($failedSending)) { ?> <!-- Mail errors --> <p></p> <hr /> <p class="error"><a name="mailErrors"></a><font size="+1"><?php echo(A_SHEET4_14); ?></font></p> <table border="0" cellpadding="3" class="table"> <tr class="tabTitle"> <td valign="middle" align="center" class="tabTitle"> <?php echo(A_SHEET1_2); ?> </td> <td valign="middle" align="center" class="tabTitle"> <?php echo(A_SHEET4_15); ?> </td> </tr> <?php ksort($failedSending); // sort the array by nicks reset($failedSending); while(list($failedNick, $failedEmail) = each($failedSending)) { echo("\n"); ?> <tr> <td valign="middle" align="<?php echo($cellAlign); ?>"> <?php echo($failedNick . "\n"); ?> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> <?php echo($failedEmail . "\n"); ?> </td> </tr> <?php } echo("\n"); ?> </table> <?php } echo("\n"); ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | This script displays the list of existing rooms and allows to clean the | // | 'messages' table from some of them. | // | A function is defined inside: | // | - cleanRoom() = do clean the messages table from a room | // | | // | This script is called by the 'chat/admin_body.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: admin3.php3,v 1.1 2001/05/05 17:26:17 loic1 Exp $ // // Administration sheet to clean the existing rooms of phpMyChat. // /** * Cleans the messages table from a room * * @global string the room name * @global object the DB object to use * @global string the list of default public chat rooms * @global string the list of default private chat rooms * * @access private */ function cleanRoom() { global $room; global $dbLink; global $defaultChatRooms; global $defaultPrivateRooms; $room = pmcSlashSingleQuotes(pmcHandleMagicQuotes($room, 1, '', 'del')); // Kicks users that are chatting inside the room to be cleaned $dbLink->query("UPDATE " . C_USR_TBL . " SET status = 'd' WHERE room = '$room'"); $isAnybodyIn = 1; $delayTill = time() + 20; // let the time to users to be 'kicked' (max=20 sec) while ($isAnybodyIn != 0 && time() < $delayTill) { $dbLink->query("SELECT COUNT(*) FROM " . C_USR_TBL . " WHERE room = '$room'"); list($isAnybodyIn) = $dbLink->nextRecord(); $dbLink->cleanResults(); if ($isAnybodyIn == 0) sleep(2); } // Removes permissions for that room when it's not a default one (defined // in 'chat/config/config.lib.php3') if (pmcIsInto($room, $defaultChatRooms) == -1 || pmcIsInto($room, $defaultPrivateRooms) == -1) { $dbLink->query("SELECT username, rooms FROM " . C_REG_TBL . " WHERE perms = 'moderator'"); while (list($moderatorUsername, $moderatedRooms) = $dbLink->nextRecord()) { $moderatorUsername = pmcHandleMagicQuotes($moderatorUsername, '', 1, 'del'); $moderatorUsername = pmcSlashSingleQuotes($moderatorUsername); $moderatedRooms = pmcHandleMagicQuotes($moderatedRooms, '', 1, 'del'); $moderatedRooms = pmcSlashSingleQuotes($moderatedRooms); $changed = false; $rooms = explode(',', $moderatedRooms); $roomsCnt = count($rooms); reset($rooms); for ($j = 0; $j < $roomsCnt; $j++) { if (strcasecmp($room, $rooms[$j]) == 0) { $rooms[$j] = ''; $changed = true; break; } } if ($changed) { $moderatedRooms = implode(',', $rooms); $moderatedRooms = ereg_replace('^,|,$', '', $moderatedRooms); $moderatedRooms = str_replace(',,', ',', $moderatedRooms); $dbLink->query("UPDATE " . C_REG_TBL . " SET rooms = '$moderatedRooms' WHERE username = '$moderatorUsername'"); } unset($rooms); } $dbLink->cleanResults(); } // Clean the room; $dbLink->query("DELETE FROM " . C_USR_TBL . " WHERE room = '$room'"); $dbLink->query("DELETE FROM " . C_MSG_TBL . " WHERE room = '$room'"); }// end ot the function 'cleanRoom()' /** * The admin has required some rooms to be cleaned */ if (!empty($submitType)) { $delRoomsCnt = count($delRooms); reset($delRooms); for ($i = 0; $i < $delRoomsCnt; $i++) { $room = trim($delRooms[$i]); cleanRoom(); } // Optimize the messages table when a MySQL DB is used $dbLink->optimize(C_MSG_TBL); unset($delRooms); } // end of the case where the admin has required some rooms to be cleaned /** * Displays the sheet for cleaning rooms */ ?> <p class="title"><?php echo(A_SHEET3_1); ?></p> <table border="0" cellpadding="3" class="table"> <?php // Ensure at least one room can be cleaned before displaying the form to do this $dbLink->query("SELECT COUNT(*) FROM " . C_MSG_TBL . " LIMIT 1"); list($roomsCnt) = $dbLink->nextRecord(); $dbLink->cleanResults(); if ($roomsCnt != 0) { echo("\n"); ?> <!-- Form to clean rooms --> <tr> <td align="center"> <form action="<?php echo($adminBodyUrl); ?>" method="post" autocomplete="off" name="adminForm3"> <table border="0" width="100%"> <tr> <td valign="middle" align="center"> <font size="-1"><?php echo(A_SHEET3_2); ?></font> </td> </tr> <tr> <td align="center"> <select name="delRooms[]" multiple="multiple" size="6"> <?php echo("\n"); $dbLink->query("SELECT DISTINCT room FROM " . C_MSG_TBL . " ORDER BY room"); while (list($room) = $dbLink->nextRecord()) { if (trim($room) == '') continue; $room = pmcHandleMagicQuotes($room, '', 1, 'del'); echo("\t\t\t\t\t\t"); echo('<option value="' . htmlspecialchars($room) . '"'); echo('> ' . $room . ' </option>'); echo("\n"); } $dbLink->cleanResults(); ?> </select> </td> </tr> </table> <p> <input type="submit" name="submitType" value="<?php echo(A_SHEET3_3); ?>" /> </p> </form> </td> </tr> <?php } // end of the case where some rooms exist else { echo("\n"); ?> <tr> <td align="center" class="error"><?php echo(A_SHEET3_4); ?></td> </tr> <?php } echo("\n"); ?> </table> <?php ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | This script displays the list of banished users and allows to act on it | // | (ie remove or modify banishment properties for a profile. | // | Two functions are defined inside: | // | - delBanishment() = do remove all banishments for an user | // | - modifyBanishment() = do modify the banishment properties for an user | // | | // | This script is called by the 'chat/admin_body.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: admin2.php3,v 1.1 2001/05/05 17:26:17 loic1 Exp $ // // Administration sheet for users banished from phpMyChat. // /** * Removes all banishments for an user * * @global string the nick of the user to remove * @global object the DB object to use * * @access private */ function delBanishment() { global $username; global $dbLink; $slashedUsername = pmcSlashSingleQuotes($username); $dbLink->query("DELETE FROM " . C_BAN_TBL . " WHERE username = '$slashedUsername'"); } // end of the 'delBanishment()' function /** * Modifies the list of banished rooms of the ending date of banishment for * an user * * @global string the nick of the user to remove * @global object the DB object to use * @global string the new banishment expire date * @global string the new list of room the user will be banished from * * @access private */ function modifyBanishment() { global $username; global $dbLink; global $newBanishedUntil; global $newBanishedRooms; // Modify banishment properties for an user $untilQuery = ($newBanishedUntil == 'forever') ? ', ban_until = 2147483647' : ''; $slashedUsername = pmcSlashSingleQuotes($username); $dbLink->query("UPDATE " . C_BAN_TBL . " SET rooms = '" . pmcSlashSingleQuotes($newBanishedRooms) . "'$untilQuery WHERE username = '$slashedUsername'"); // Banish the user if he's currently chatting if ($newBanishedRooms == '*') // The user is banished from all rooms { $dbLink->query("UPDATE " . C_USR_TBL . " SET status = 'b' WHERE username = '$slashedUsername'"); } else // Check is the user is chatting inside a room he's now banished from { $dbLink->query("SELECT room FROM " . C_USR_TBL . " WHERE username = '$slashedUsername' LIMIT 1"); $isChatting = (list($targetRoom) = $dbLink->nextRecord()); if ($isChatting) // User is chatting { $targetRoom = pmcHandleMagicQuotes($targetRoom, '', '1', 'del'); $dbLink->cleanResults(); if (pmcIsInto($targetRoom, $newBanishedRooms) >= 0) // User is chatting in a room he's now banished from -> kick him $dbLink->query("UPDATE " . C_USR_TBL . " SET status = 'b' WHERE username = '$slashedUsername'"); } else { $dbLink->cleanResults(); } } } // end of the function 'modifyBanishment()' /** * The admin has required an action to be done * * The 'pmcSlashSingleQuotes()' and 'pmcHandleMagicQuotes()' functions are * defined inside the 'chat/lib/common.lib.php3' library * * @see delBanishment(), modifyBanishment() */ if (!empty($submitType)) { // Some banishments have to been removed ? $deleteMode = (pmcSlashSingleQuotes($submitType) == A_SHEET2_7) ? 1 : 0; // Get the list of the concerned registered users $modifOffset = ($dbSessionVars['offset'] - 5 > 0) ? $dbSessionVars['offset'] - 5 : 0; if (C_DB_TYPE == 'mysql') { $queryLimits = ' LIMIT ' . $modifOffset . ',20'; } else if (C_DB_TYPE == 'pgsql') { $queryLimits = ' LIMIT 20 OFFSET ' . $modifOffset; } else { $queryLimits = ''; } $dbLink->query("SELECT username FROM " . C_BAN_TBL . " ORDER BY " . $dbSessionVars['sortBy'] . " " . $dbSessionVars['sortOrder'] . $queryLimits); $banUsers = array(); while (list($username) = $dbLink->nextRecord()) { $banUsers[] = pmcHandleMagicQuotes($username, '', 1, 'del'); } $dbLink->cleanResults(); for (reset($banUsers); $username = current($banUsers); next($banUsers)) { $encodedUsername = urlencode($username); $varName = 'user_' . $encodedUsername; if (!isset($$varName)) continue; // Current user wasn't in the list displayed // Removes some banishments if ($deleteMode) { $varName = 'delete_' . $encodedUsername; if (isset($$varName)) delBanishment(); } // end of the case where some banishements have to been removed // Modify properties of banishment for the user else { $varName = 'rooms_' . $encodedUsername; $newBanishedRooms = pmcHandleMagicQuotes($$varName, 1, '', 'del'); $varName = 'until_' . $encodedUsername; $newBanishedUntil = $$varName; $varName = 'old_rooms_' . $encodedUsername; $oldBanishedRooms = pmcHandleMagicQuotes($$varName, 1, '', 'del'); $varName = 'old_until_' . $encodedUsername; $oldBanishedUntil = $$varName; if ($newBanishedRooms == $oldBanishedRooms && $newBanishedUntil == $oldBanishedUntil) continue; // No changes for this user modifyBanishment(); } // end of the case where banishment properties have to be modified } unset($banUsers); // Optimizes the registered users table when a MySQL DB is used $dbLink->optimize(C_BAN_TBL); } // end of the case where the admin has required an action to be done /** * Cleans the banished users table (time for banishment expires or no * room specified for banishment) */ $toCheck = 'rooms = \'\''; if (!isset($submitType)) $toCheck = 'ban_until < ' . time() . ' OR ' . $toCheck; $dbLink->query("DELETE FROM " . C_BAN_TBL . " WHERE $toCheck"); /** * Displays the banished users sheet */ ?> <p class="title"><?php echo(A_SHEET2_1); ?></p> <table border="0" cellpadding="3" class="table"> <?php // Ensure at least one banished user exist $dbLink->query("SELECT COUNT(*) FROM " . C_BAN_TBL . " LIMIT 1"); list($banUsersCnt) = $dbLink->nextRecord(); $dbLink->cleanResults(); if ($banUsersCnt != 0) { echo("\n"); ?> <!-- Banished users form --> <tr> <td align="center"> <form action="<?php echo($adminBodyUrl); ?>" method="post" autocomplete="off" name="adminForm2"> <table border="0" cellpadding="5" cellspacing="1" width="100%"> <tr class="tabTitle"> <td valign="middle" align="center"> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> <a href="<?php echo($adminBodySortUrl . 'username'); if ($dbSessionVars['sortBy'] == 'username') echo($invertSortOrder); ?>"><?php echo(A_SHEET1_2); ?></a> </td> <td valign="middle" align="center"> <a href="<?php echo($adminBodySortUrl . 'ip'); if ($dbSessionVars['sortBy'] == 'ip') echo($invertSortOrder); ?>"><?php echo(A_SHEET2_2); ?></a> </td> <td valign="middle" align="center" class="tabTitle"> <?php echo(A_SHEET2_3); ?> * </td> <td valign="middle" align="center" class="tabTitle"> <?php echo(A_SHEET2_4 . "\n"); ?> </td> </tr> <?php // Defines wich banished users profiles have to been displayed $lastPageOffset = floor(($banUsersCnt - 1) / 10) * 10; if ($dbSessionVars['offset'] > $lastPageOffset) $dbSessionVars['offset'] = $lastPageOffset; if (C_DB_TYPE == 'mysql') { $queryLimits = ' LIMIT ' . $dbSessionVars['offset'] . ',10'; } else if (C_DB_TYPE == 'pgsql') { $queryLimits = ' LIMIT 10 OFFSET ' . $dbSessionVars['offset']; } else { $queryLimits = ''; } // Gets these profiles $dbLink->query("SELECT username, latin1, ip, rooms, ban_until FROM " . C_BAN_TBL . " ORDER BY " . $dbSessionVars['sortBy'] . " " . $dbSessionVars['sortOrder'] . $queryLimits); while (list($username, $latin1, $ip, $rooms, $banUntil) = $dbLink->nextRecord()) { $username = pmcHandleMagicQuotes($username, '', 1, 'del'); $rooms = pmcHandleMagicQuotes($rooms, '', 1, 'del'); echo("\n"); ?> <tr> <td valign="middle" align="center"> <input type="hidden" name="user_<?php echo(urlencode($username)); ?>" value="1" /> <input type="checkbox" name="delete_<?php echo(urlencode($username)); ?>" value="1" /> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> <?php echo(pmcSpecialChars($username, $latin1) . "\n"); ?> </td> <td valign="middle" align="center"> <?php echo($ip . "\n"); ?> </td> <td valign="middle" align="center"> <input type="text" name="rooms_<?php echo(urlencode($username)); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" size="40" /> <input type="hidden" name="old_rooms_<?php echo(urlencode($username)); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" /> </td> <td valign="middle" align="center"> <select name="until_<?php echo(urlencode($username)); ?>"> <?php // banished users for more than one year -> forever $forever = time() + (60 * 60 * 24 * 365); echo("\n"); if ($banUntil > $forever) { ?> <option value="forever" selected="selected"><?php echo(A_SHEET2_5); ?></option> <?php } else { ?> <option value="date" selected="selected"><?php echo(date('M j, Y - h:i a', $banUntil + C_TMZ_OFFSET * 60 * 60)); ?></option> <option value="forever"><?php echo(A_SHEET2_5); ?></option> <?php } echo("\n"); ?> </select> <input type="hidden" name="old_until_<?php echo(urlencode($username)); ?>" value="<?php echo(($banUntil > $forever) ? 'forever' : 'date')?>" /> </td> </tr> <? }; $dbLink->cleanResults(); echo("\n"); ?> <tr> <td valign="middle" align="center" colspan="5"> <font size="-1">* <?php echo(A_SHEET2_6); ?></font> </td> </tr> <tr><td> </td></tr> <tr> <td valign="middle" align="center" colspan="4"> <input type="submit" name="submitType" value="<?php echo(A_SHEET2_7); ?>" /> </td> <td valign="middle" align="center"> <input type="submit" name="submitType" value="<?php echo(A_SHEET1_7); ?>" /> </td> </tr> </table> </form> <!-- Navigation cells at the footer --> <?php include('./lib/admin_libs/navigation.lib.' . C_EXTENSION); pmcPagesNav($banUsersCnt); ?> </td> </tr> <?php } // end of the case where some banished users exist else { echo("\n"); ?> <tr> <td align="center" class="error"><?php echo(A_SHEET2_8); ?></td> </tr> <?php } // end of the case where there is no banished users echo("\n"); ?> </table> <?php ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | This script displays the list of registered users and allows to act on | // | it (ie delete a profile, banish or change permissions for an user). | // | Three functions are defined inside: | // | - banProfile() = do banish some users | // | - delProfile() = do delete some profiles | // | - modifyPerms() = do modify the permission levels of some users | // | | // | This script is called by the 'chat/admin_body.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: admin1.php3,v 1.1 2001/05/05 17:26:17 loic1 Exp $ // // Administration sheet for registered users of phpMyChat. // /** * Ensure this script is called by the admin frameset (fix a security hole) */ if (!isset($dbSessionVars) || empty($dbSessionVars['authUsername'])) { exit(); } /** * Deletes a profile after a message has been sent to the user if he * is currently chatting * * @global string the nick of the user to remove * @global object the pmcDB instance to use * * @access private */ function delProfile() { global $username; global $dbLink; // The 'pmcSlashSingleQuotes()' function is defined in the // 'chat/lib/common.lib.php3' library $slashedUsername = pmcSlashSingleQuotes($username); $dbLink->query("DELETE FROM " . C_REG_TBL . " WHERE username = '$slashedUsername'"); $dbLink->query("SELECT room FROM " . C_USR_TBL . " WHERE username = '$slashedUsername' LIMIT 1"); $isChatting = (list($room) = $dbLink->nextRecord()); // Sends a message to the user if he is currently chatting if ($isChatting) { $room = pmcHandleMagicQuotes($room, '', '1', 'del'); $dbLink->cleanResults(); // Gets the type of the room (public/private) where the message has to be sent $slashedTargetRoom = pmcSlashSingleQuotes($room); $dbLink->query("SELECT type FROM " . C_MSG_TBL . " WHERE room = '$slashedTargetRoom' LIMIT 1"); list($targetRoomType) = $dbLink->nextRecord(); $dbLink->cleanResults(); $dbLink->query("UPDATE " . C_USR_TBL . " SET status = 'u' WHERE username = '$slashedUsername'"); $aQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . '(type, room, username, latin1, m_time, address, color, msg_original, msg_enhanced) ' . 'VALUES (' . "$targetRoomType, '$slashedTargetRoom', 'SYS delreg', '', " . time() . ", '$slashedUsername', '#666699', 'sprintf(L_ADM_2)', 'sprintf(L_ADM_2)'" . ')'; $dbLink->query($aQuery); } } // end of the 'delProfile()' function /** * Banishes an user * * @global string the nick of the user to banish * @global object the DB object to use * * @access private */ function banProfile() { global $username; global $dbLink; // The 'pmcSlashSingleQuotes()' function is defined in the // 'chat/lib/common.lib.php3' library $slashedUsername = pmcSlashSingleQuotes($username); // Gets some additional values from the registered users table $dbLink->query("SELECT latin1, ip FROM " . C_REG_TBL . " WHERE username = '$slashedUsername' LIMIT 1"); list($latin1, $ip) = $dbLink->nextRecord(); $dbLink->cleanResults(); // Ensure the user isn't already banished before doing the work $dbLink->query("SELECT count(*) FROM " . C_BAN_TBL . " WHERE username = '$slashedUsername' LIMIT 1"); list($isBanished) = $dbLink->nextRecord(); $dbLink->cleanResults(); if ($isBanished == 0) { $banUntil = time() + round(C_BANISH * 60 * 60 * 24); if ($banUntil > 2147483647) $banUntil = 2147483647; $dbLink->query("INSERT INTO " . C_BAN_TBL . " (username, latin1, ip, rooms, ban_until) VALUES ('$slashedUsername', $latin1, '$ip', '**to define**', $banUntil)"); } } // end of the 'banProfile()' function /** * Modifies perms for a registered user and send him a message if he * is currently chatting * * @global string the nick of the user to remove * @global object the DB object to use * @global string the new permission level of the user * @global string the new list of moderated rooms by this user * @global string the old list of moderated rooms by this user * * @access private */ function modifyPerms() { global $username; global $dbLink; global $oldPermLevel; global $newPermLevel; global $newModeratedRooms; global $oldModeratedRooms; // The 'pmcSlashSingleQuotes()' function is defined in the // 'chat/lib/common.lib.php3' library $slashedUsername = pmcSlashSingleQuotes($username); // Updates perms level $dbLink->query("UPDATE " . C_REG_TBL . " SET perms = '$newPermLevel', rooms = '" . pmcSlashSingleQuotes($newModeratedRooms) . "' WHERE username = '$slashedUsername'"); // Checks if the user should be sent a message $dbLink->query("SELECT room FROM " . C_USR_TBL . " WHERE username = '$slashedUsername' LIMIT 1"); $isChatting = (list($room) = $dbLink->nextRecord()); // When user is chatting, checks if he is chatting in a room for which his // permission level have changed if ($isChatting) { $room = pmcHandleMagicQuotes($room, '', 1, 'del'); $dbLink->cleanResults(); // Find the changes in the moderated rooms list if ($oldPermLevel != $newPermLevel) { $diffModeratedRooms = ($newPermLevel == 'user') ? $oldModeratedRooms : $newModeratedRooms; $diffModeratedRooms = ereg_replace('^,|,$', '', $diffModeratedRooms); $diffModeratedRooms = str_replace(',,', ',', $diffModeratedRooms); } else { $oldRooms = explode(',', $oldModeratedRooms); $oldRoomsCnt = count($oldRooms); $newRooms = explode(',', $newModeratedRooms); $newRoomsCnt = count($newRooms); $diffRooms = array(); reset($oldRooms); for ($j = 0; $j < $oldRoomsCnt; $j++) { $roomToCheck = $oldRooms[$j]; if (trim($roomToCheck) != '' && pmcIsInto($roomToCheck, $newModeratedRooms) < 0) { $diffRooms[] = $roomToCheck; } } reset($newRooms); for ($j = 0; $j < $newRoomsCnt; $j++) { $roomToCheck = $newRooms[$j]; if (trim($roomToCheck) != '' && pmcIsInto($roomToCheck, $oldModeratedRooms) < 0) { $diffRooms[] = $roomToCheck; } } unset($oldRooms); unset($newRooms); if (count($diffRooms) > 0) { $diffModeratedRooms = implode(',', $diffRooms); $diffModeratedRooms = ereg_replace('^,|,$', '', $diffModeratedRooms); $diffModeratedRooms = str_replace(',,', ',', $diffModeratedRooms); } unset($diffRooms); } if (pmcIsInto($room, $diffModeratedRooms) < 0) // No message to send { $isChatting = false; } } // end of the case where user is currently chatting else { $dbLink->cleanResults(); } // end of checking modifs in the moderated rooms list // Sends a message to the user if he is chatting into one of the 'diff' rooms if ($isChatting) { // user becomes moderator for the room he chats into if ($newPermLevel == 'moderator' && pmcIsInto($room, $newModeratedRooms) >= 0) { $status = 'm'; $message = 'sprintf(L_MODERATOR, \\\'' . pmcSlashSingleQuotes(htmlspecialchars($username), 3) . '\\\')'; } // user becomes user for the room he chats into else { $status = 'r'; $message = 'sprintf(L_ADM_1, \\\'' . pmcSlashSingleQuotes(htmlspecialchars($username), 3) . '\\\')'; } // Udpates the user status for the room he is chatting into $dbLink->query("UPDATE " . C_USR_TBL . " SET status = '$status' WHERE username = '$slashedUsername'"); // Gets the type of the room $slashedTargetRoom = pmcSlashSingleQuotes($room); $dbLink->query("SELECT type FROM " . C_MSG_TBL . " WHERE room = '$slashedTargetRoom' LIMIT 1"); list($targetRoomType) = $dbLink->nextRecord(); $dbLink->cleanResults(); // Inserts the message into the messages table $aQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' . '(type, room, username, latin1, m_time, address, color, msg_original, msg_enhanced) ' . 'VALUES (' . "$targetRoomType, '$slashedTargetRoom', 'SYS promote', '', " . time() . ", NULL, '#666699', '$message', '$message'" . ')'; $dbLink->query($aQuery); } } // end of the 'modifyPerms()' function /** * The administrator has required an action to be done * * The 'pmcSlashSingleQuotes()' and 'pmcHandleMagicQuotes()' functions are * defined inside the 'chat/lib/common.lib.php3' library * * @see delProfile(), banProfile(), modifyPerms() */ if (!empty($submitType)) { // A registered user has to be deleted or banished? $deleteMode = (pmcSlashSingleQuotes($submitType) == A_SHEET1_6) ? 1 : 0; $banishMode = (pmcSlashSingleQuotes($submitType) == A_SHEET1_9) ? 1 : 0; // Get the list of the concerned registered users $modifOffset = ($dbSessionVars['offset'] - 5 > 0) ? $dbSessionVars['offset'] - 5 : 0; if (C_DB_TYPE == 'mysql') { $queryLimits = ' LIMIT ' . $modifOffset . ',20'; } else if (C_DB_TYPE == 'pgsql') { $queryLimits = ' LIMIT 20 OFFSET ' . $modifOffset; } else { $queryLimits = ''; } $dbLink->query("SELECT username FROM " . C_REG_TBL . " WHERE perms != 'admin' ORDER BY " . $dbSessionVars['sortBy'] . " " . $dbSessionVars['sortOrder'] . $queryLimits); $regUsers = array(); while (list($username) = $dbLink->nextRecord()) { $regUsers[] = pmcHandleMagicQuotes($username, '', 1, 'del'); } $dbLink->cleanResults(); $regUsersCnt = count($regUsers); reset($regUsers); for ($i = 0; $i < $regUsersCnt; $i++) { $username = $regUsers[$i]; $encodedUsername = urlencode($username); $varName = 'user_' . $encodedUsername; if (!isset($$varName)) // Current user wasn't in the list displayed continue; // Some profiles have to be deleted if ($deleteMode) { $varName = 'selected_' . $encodedUsername; if (isset($$varName)) delProfile(); // Optimize the registered users table when a MySQL DB is used $dbLink->optimize(C_REG_TBL); } // end of the case where some profiles have to been deleted // Some users have to be banished else if ($banishMode) { $varName = 'selected_' . $encodedUsername; if (isset($$varName)) { banProfile(); $warning = A_SHEET1_10; } } // end of the case where some users have to been banished // Some permission levels have to changed else { $varName = 'perms_' . $encodedUsername; $newPermLevel = $$varName; $varName = 'rooms_' . $encodedUsername; $newModeratedRooms = pmcHandleMagicQuotes($$varName, 1, '', 'del'); $varName = 'old_perms_' . $encodedUsername; $oldPermLevel = $$varName; $varName = 'old_rooms_' . $encodedUsername; $oldModeratedRooms = pmcHandleMagicQuotes($$varName, 1, '', 'del'); if ($newPermLevel == $oldPermLevel && $newModeratedRooms == $oldModeratedRooms) continue; // No changes for this user modifyPerms(); } // end of the case where some permission levels have to been modified } unset($regUsers); } // end of the case where the admin has required an action to be done /** * Cleans the registered users table */ // Removes profiles of users that have not been chatting for a time > C_REG_DEL if (!isset($submitType) && C_REG_DEL != 0) $dbLink->query("DELETE FROM " . C_REG_TBL . " WHERE reg_time < " . (time() - C_REG_DEL * 60 * 60 * 24) . " AND perms != 'admin'"); // Removes moderator status when there is no room associated to $dbLink->query("UPDATE " . C_REG_TBL . " SET perms = 'user' WHERE perms = 'moderator' AND rooms = ''"); /** * Displays the registered users sheet */ ?> <script type="text/javascript" language="javascript"> <!-- // Ensures a list of moderated rooms is associated to a 'moderator' status // obj1 is the select box for permission levels // obj2 is the text box containing the list of moderated rooms function pmcResetPerms(user) { var obj1 = window.document.forms['adminForm1'].elements['perms_' + user]; var obj2 = window.document.forms['adminForm1'].elements['rooms_' + user]; var i = (obj2.value == '') ? 0 : 1; obj1.options[i].selected = true; } // end of the 'pmcResetPerms()' function // --> </script> <p class="title"><?php echo(A_SHEET1_1); ?></p> <?php // Displays the warning message if it is defined (an user has been banished) if (!empty($warning)) echo('<p class="success">' . "\n\t" . $warning . "\n" . '</p><br />' . "\n"); ?> <table border="0" cellpadding="3" class="table"> <?php // Ensures at least one registered user exists (except the administrator) // before displaying the sheet $dbLink->query("SELECT COUNT(*) FROM " . C_REG_TBL . " WHERE perms != 'admin' LIMIT 1"); list($regUsersCnt) = $dbLink->nextRecord(); $dbLink->cleanResults(); if ($regUsersCnt != 0) { echo("\n"); ?> <!-- Registered users form --> <tr> <td align="center"> <form action="<?php echo($adminBodyUrl); ?>" method="post" autocomplete="off" name="adminForm1"> <table border="0" cellpadding="5" cellspacing="1" width="100%"> <tr class="tabTitle"> <td valign="middle" align="center"> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> <a href="<?php echo($adminBodySortUrl . 'username'); if ($dbSessionVars['sortBy'] == 'username') echo($invertSortOrder); ?>"><?php echo(A_SHEET1_2); ?></a> </td> <td valign="middle" align="center"> <a href="<?php echo($adminBodySortUrl . 'reg_time'); if ($dbSessionVars['sortBy'] == 'reg_time') echo($invertSortOrder); ?>"><?php echo(A_SHEET1_11); ?></a> </td> <td valign="middle" align="center"> <a href="<?php echo($adminBodySortUrl . 'ip'); if ($dbSessionVars['sortBy'] == 'ip') echo($invertSortOrder); ?>"><?php echo(A_SHEET2_2); ?></a> </td> <td valign="middle" align="center"> <a href="<?php echo($adminBodySortUrl . 'perms'); if ($dbSessionVars['sortBy'] == 'perms') echo($invertSortOrder); ?>"><?php echo(A_SHEET1_3); ?></a> </td> <td valign="middle" align="center" class="tabTitle"> <?php echo(A_SHEET1_4); ?> * </td> </tr> <?php // Defines wich profiles have to been displayed $lastPageOffset = floor(($regUsersCnt - 1) / 10) * 10; if ($dbSessionVars['offset'] > $lastPageOffset) $dbSessionVars['offset'] = $lastPageOffset; if (C_DB_TYPE == 'mysql') { $queryLimits = ' LIMIT ' . $dbSessionVars['offset'] . ',10'; } else if (C_DB_TYPE == 'pgsql') { $queryLimits = ' LIMIT 10 OFFSET ' . $dbSessionVars['offset']; } else { $queryLimits = ''; } // Gets these profiles $dbLink->query("SELECT username, latin1, perms, rooms, reg_time, ip FROM " . C_REG_TBL . " WHERE perms != 'admin' ORDER BY " . $dbSessionVars['sortBy'] . " " . $dbSessionVars['sortOrder'] . $queryLimits); while (list($username, $latin1, $perms, $rooms, $lastLog, $ip) = $dbLink->nextRecord()) { $username = pmcHandleMagicQuotes($username, '', 1, 'del'); $rooms = pmcHandleMagicQuotes($rooms, '', 1, 'del'); echo("\n"); ?> <tr> <td valign="middle" align="center"> <input type="hidden" name="user_<?php echo(urlencode($username)); ?>" value="1" /> <input type="checkbox" name="selected_<?php echo(urlencode($username)); ?>" value="1" /> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> <?php echo(pmcSpecialChars($username, $latin1) . "\n"); ?> </td> <td valign="middle" align="<?php echo($cellAlign); ?>"> <?php echo(date('M j, Y - h:i a', $lastLog + C_TMZ_OFFSET * 60 * 60) . "\n"); ?> </td> <td valign="middle" align="center"> <?php echo($ip . "\n"); ?> </td> <td valign="middle" align="center"> <select name="perms_<?php echo(urlencode($username)); ?>"> <option value="user"<?php if ($perms == 'user') echo(' selected="selected"'); ?>><?php echo(A_USER); ?></option> <option value="moderator"<?php if ($perms == 'moderator') echo(' selected="selected"'); ?>><?php echo(A_MODER); ?></option> </select> <input type="hidden" name="old_perms_<?php echo(urlencode($username)); ?>" value="<?php echo($perms); ?>" /> </td> <td valign="middle" align="center"> <input type="text" name="rooms_<?php echo(urlencode($username)); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" size="40" onchange="pmcResetPerms('<?php echo(urlencode($username)); ?>');" /> <input type="hidden" name="old_rooms_<?php echo(urlencode($username)); ?>" value="<?php echo(htmlspecialchars($rooms)); ?>" /> </td> </tr> <?php } // end of the work to display profiles $dbLink->cleanResults(); echo("\n"); ?> <tr> <td valign="middle" align="center" colspan="6"> <font size="-1">* <?php echo(A_SHEET1_5); ?></font> </td> </tr> <tr><td> </td></tr> <tr> <td valign="middle" align="center" colspan="5"> <input type="submit" name="submitType" value="<?php echo(A_SHEET1_6); ?>" /> <br /><br /> <input type="submit" name="submitType" value="<?php echo(A_SHEET1_9); ?>" /> </td> <td valign="middle" align="center"> <input type="submit" name="submitType" value="<?php echo(A_SHEET1_7); ?>" /> </td> </tr> </table> </form> <!-- Navigation cells at the footer --> <?php include('./lib/admin_libs/navigation.lib.' . C_EXTENSION); pmcPagesNav($regUsersCnt); ?> </td> </tr> <?php } // end of the case where some registered users exist else { echo("\n"); ?> <tr> <td align="center" class="error"><?php echo(A_SHEET1_8); ?></td> </tr> <?php } // end of the case where there is no registered users echo("\n"); ?> </table> <?php ?> |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:26:19
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv25748/chat Added Files: admin.php3 Log Message: First draft of the administration sheets --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | // +--------------------------------------------------------------------------+ // | This script displays the administration pages for phpMyChat. When it is | // | launched by the administrator, it runs once then calls itself twice | // | inside a frameset to display the administration menu ($whichFrame value | // | is 'top') and the body of the choosen sheet ($whichFrame value is | // | 'body'). | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // // $Id: admin.php3,v 1.1 2001/05/05 17:26:17 loic1 Exp $ // // Administration work for phpMyChat. // /** * Gets the extension to use for the php scripts */ if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php'); /** * Includes some libraries */ require('./config/config.lib.' . C_EXTENSION); require('./lib/database/' . C_DB_TYPE . '.lib.' . C_EXTENSION); require('./lib/common.lib.' . C_EXTENSION); /** * Gets the names and values for variables sent or posted to this script * * Uses the 'pmcGrabGlobals()' and 'pmcHandleMagicQuotes()' function defined in * the 'chat/lib/common.lib.php3' library */ $toGrab = array('%GET', '%POST'); pmcGrabGlobals($toGrab); // Unslashes values of variables sent to this script if (!empty($authUsername)) $authUsername = pmcHandleMagicQuotes($authUsername, '1', '', 'del'); if (!empty($authPassword)) $authPassword = pmcHandleMagicQuotes($authPassword, '1', '', 'del'); if (!empty($submitType)) $submitType = pmcHandleMagicQuotes($submitType, '1', '', 'del'); /** * Start the session handler */ require('./lib/db_sessions.lib.' . C_EXTENSION); dbSessionInit( C_DB_TYPE, C_DB_HOST, C_DB_NAME, C_DB_USER, C_DB_PASS, C_SESS_TBL, C_SESS_DEL * 60, '' ); dbSessionStart(); /** * Checks for a convenient administration language file */ if (empty($whichFrame)) // Script is launched for the first time { // If no language name has been sent to this script, finds the language // of the user among existing translations if (!dbSessionIsRegistered('lang') || empty($dbSessionVars['lang'])) { include('./localization/languages.lib.' . C_EXTENSION); } include('./localization/' . $dbSessionVars['lang'] . '/chat.loc'); // If the administration pages haven't been translated into the language of // the user, retains some values and gets the name of the default language // for these pages if (!file_exists('./localization/' . $dbSessionVars['lang'] .'/admin.loc')) { include('./localization/admin.lib.' . C_EXTENSION); } else { $dbSessionVars['adminLang'] = $dbSessionVars['lang']; } } // end if (empty($whichFrame)) // Gets the convenient translation for the administration work require('./localization/' . $dbSessionVars['adminLang'] . '/admin.loc'); /** * Authentification work */ if (!(dbSessionIsRegistered('authUsername') && dbSessionIsRegistered('authPassword'))) { $mustBeAdmin = true; include('./lib/login.lib.' . C_EXTENSION); } /** * Sends HTTP headers * * Uses the pmcHttpHeaders() function defined in 'chat/lib/common.lib.php3' to * send no-cache and charset HTTP headers */ pmcHttpHeaders(A_CHARSET, true); /** * Sends the webpage */ // Update or set session datas if (dbSessionIsRegistered('adminDoOptimize')) { dbSessionUnregister('adminDoOptimize'); } if (isset($adminSheet) && ereg('[1-4]', $adminSheet)) { $dbSessionVars['adminSheet'] = $adminSheet; } if (isset($sortBy)) { $dbSessionVars['sortBy'] = $sortBy; } if (isset($sortOrder)) { $dbSessionVars['sortOrder'] = $sortOrder; } if (isset($offset)) { $dbSessionVars['offset'] = $offset; } // Load the frame when the $whichFrame var indicate one if (!empty($whichFrame)) { dbSessionSave(); include('./admin/admin_' . $whichFrame . '.' . C_EXTENSION); exit(); } // Else update the session data and display the frameset else { if (!dbSessionIsRegistered('adminFrom')) { $dbSessionVars['adminFrom'] = urlencode(basename($PHP_SELF)); $dbSessionVars['adminDoOptimize'] = true; $dbSessionVars['adminSheet'] = 1; $dbSessionVars['sortBy'] = 'username'; $dbSessionVars['sortOrder'] = 'ASC'; $dbSessionVars['offset'] = 0; } dbSessionSave(); // Defines some URLs $topUrl = $dbSessionVars['adminFrom'] . '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'whichFrame=top'; $bodyUrl = $dbSessionVars['adminFrom'] . '?' . dbSessionSID('GET') . $pmcQueryArgSeparator . 'whichFrame=body'; $nsResizeUrl = $dbSessionVars['adminFrom'] . '?' . dbSessionSID('GET'); // Kill the db session handler associated to sessions $dbSessionDbLink->close(); unset($dbSessionDbLink); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd"> <html dir="<?php echo((A_CHARSET == 'windows-1256') ? 'rtl' : 'ltr'); ?>"> <head> <title><?php echo(APP_NAME); ?></title> </head> <frameset rows="50,*" frameborder="0" border="0" framespacing="0" onresize="if (typeof(document.layers) != 'undefined') window.location.replace('<?php echo($nsResizeUrl); ?>')"> <frame src="<?php echo($topUrl); ?>" name="admin_top" frameborder="0" border="0" framespacing="0" marginwidth="3" marginheight="3" scrolling="no" /> <frame src="<?php echo($bodyUrl); ?>" name="admin_body" frameborder="0" border="0" framespacing="0" marginwidth="0" marginheight="0" noresize="noresize" /> </frameset> </html> <?php } ?> |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:25:00
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/admin_libs In directory usw-pr-cvs1:/tmp/cvs-serv25529/admin_libs Log Message: Directory /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/admin_libs added to the repository |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:24:44
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/admin In directory usw-pr-cvs1:/tmp/cvs-serv25497/admin Log Message: Directory /cvsroot/phpmychat/phpMyChat-0.15/chat/admin added to the repository |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:24:20
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization In directory usw-pr-cvs1:/tmp/cvs-serv25406/chat/localization Modified Files: tutorial.lib.php3 sort_languages.lib.php3 languages.lib.php3 admin.lib.php3 Log Message: License header was missing Index: tutorial.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/tutorial.lib.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** tutorial.lib.php3 2001/05/02 22:25:23 1.6 --- tutorial.lib.php3 2001/05/05 17:24:18 1.7 *************** *** 6,9 **** --- 6,11 ---- // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ + // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | + // +--------------------------------------------------------------------------+ // | This library defines the language that will be used for the tutorial. | // | If there is no language already defined (neither in a cookie, neither | Index: sort_languages.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/sort_languages.lib.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** sort_languages.lib.php3 2001/04/03 20:17:39 1.1 --- sort_languages.lib.php3 2001/05/05 17:24:18 1.2 *************** *** 6,9 **** --- 6,11 ---- // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ + // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | + // +--------------------------------------------------------------------------+ // | This library sorts an array by keys in reverse order. It is used for | // | releases of PHP older than 3.0.15. | *************** *** 16,20 **** // | http://www.phpheaven.net/projects/phpMyChat/ | // | | ! // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // --- 18,22 ---- // | http://www.phpheaven.net/projects/phpMyChat/ | // | | ! // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // Index: languages.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/languages.lib.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** languages.lib.php3 2001/05/02 22:25:23 1.7 --- languages.lib.php3 2001/05/05 17:24:18 1.8 *************** *** 6,9 **** --- 6,11 ---- // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ + // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | + // +--------------------------------------------------------------------------+ // | This library defines the language that will be used during the chat | // | session. If there is no language already defined (neither in a cookie, | Index: admin.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/admin.lib.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** admin.lib.php3 2001/05/02 22:25:23 1.6 --- admin.lib.php3 2001/05/05 17:24:18 1.7 *************** *** 6,9 **** --- 6,11 ---- // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ + // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | + // +--------------------------------------------------------------------------+ // | This library defines the language that will be used for the | // | administration work. If there is no language already defined (neither in | *************** *** 35,39 **** * * @global array the list of available translations ! * @global string the language to use * * @access private --- 37,41 ---- * * @global array the list of available translations ! * @global string the session data * * @access private *************** *** 42,46 **** { global $availableAdmins; ! global $lang; $notFound = true; --- 44,48 ---- { global $availableAdmins; ! global $dbSessionVars; $notFound = true; *************** *** 56,61 **** || ($envType == 2 && eregi('(\(|\[|;[[:space:]])(' . $key . ')(;|\]|\))', $str))) { ! $dbSessionVars['lang'] = $availableAdmins[$key]; ! $notFound = false; } } --- 58,63 ---- || ($envType == 2 && eregi('(\(|\[|;[[:space:]])(' . $key . ')(;|\]|\))', $str))) { ! $dbSessionVars['adminLang'] = $availableAdmins[$key]; ! $notFound = false; } } *************** *** 112,116 **** $acceptedCnt = count($accepted); reset($accepted); ! for ($i = 0; $i < $acceptedCnt && empty($dbSessionVars['lang']); $i++) { pmcAdminDetect($accepted[$i], 1); --- 114,118 ---- $acceptedCnt = count($accepted); reset($accepted); ! for ($i = 0; $i < $acceptedCnt && empty($dbSessionVars['adminLang']); $i++) { pmcAdminDetect($accepted[$i], 1); *************** *** 126,133 **** // If no translation has been retained, uses the default one ! if (empty($lang)) ! $dbSessionVars['lang'] = (file_exists('./localization/' . C_LANGUAGE . '/admin.loc')) ! ? C_LANGUAGE ! : 'english'; // Clears the table --- 128,137 ---- // If no translation has been retained, uses the default one ! if (empty($dbSessionVars['adminLang'])) ! { ! $dbSessionVars['adminLang'] = (file_exists('./localization/' . C_LANGUAGE . '/admin.loc')) ! ? C_LANGUAGE ! : 'english'; ! } // Clears the table |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:23:49
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/swedish In directory usw-pr-cvs1:/tmp/cvs-serv25273/chat/localization/swedish Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/swedish/admin.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.loc 2001/04/19 09:05:10 1.2 --- admin.loc 2001/05/05 17:23:46 1.3 *************** *** 22,29 **** // extra header for charset ! define('L_CHARSET', 'iso-8859-1'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 22,29 ---- // extra header for charset ! define('A_CHARSET', 'iso-8859-1'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:23:49
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/spanish In directory usw-pr-cvs1:/tmp/cvs-serv25273/chat/localization/spanish Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/spanish/admin.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.loc 2001/04/19 20:31:16 1.2 --- admin.loc 2001/05/05 17:23:46 1.3 *************** *** 24,31 **** // extra header for charset ! define('L_CHARSET', 'iso-8859-1'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 24,31 ---- // extra header for charset ! define('A_CHARSET', 'iso-8859-1'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:22:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/russian In directory usw-pr-cvs1:/tmp/cvs-serv24830/chat/localization/russian Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/russian/admin.loc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** admin.loc 2001/05/04 16:27:30 1.3 --- admin.loc 2001/05/05 17:22:38 1.4 *************** *** 25,32 **** // extra header for charset ! define('L_CHARSET', 'windows-1251'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 25,32 ---- // extra header for charset ! define('A_CHARSET', 'windows-1251'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:22:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/turkish In directory usw-pr-cvs1:/tmp/cvs-serv24830/chat/localization/turkish Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/turkish/admin.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.loc 2001/04/19 09:05:11 1.2 --- admin.loc 2001/05/05 17:22:38 1.3 *************** *** 22,29 **** // extra header for charset ! define('L_CHARSET', 'iso-8859-9'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 22,29 ---- // extra header for charset ! define('A_CHARSET', 'iso-8859-9'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:22:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/slovak In directory usw-pr-cvs1:/tmp/cvs-serv24830/chat/localization/slovak Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/slovak/admin.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.loc 2001/04/19 09:05:10 1.2 --- admin.loc 2001/05/05 17:22:38 1.3 *************** *** 22,29 **** // extra header for charset ! define('L_CHARSET', 'windows-1250'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 22,29 ---- // extra header for charset ! define('A_CHARSET', 'windows-1250'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:22:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/romanian In directory usw-pr-cvs1:/tmp/cvs-serv24830/chat/localization/romanian Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/romanian/admin.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.loc 2001/04/19 20:31:16 1.2 --- admin.loc 2001/05/05 17:22:38 1.3 *************** *** 23,30 **** // extra header for charset ! define('L_CHARSET', 'iso-8859-1'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 23,30 ---- // extra header for charset ! define('A_CHARSET', 'iso-8859-1'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:22:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/portuguese In directory usw-pr-cvs1:/tmp/cvs-serv24830/chat/localization/portuguese Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/portuguese/admin.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.loc 2001/04/19 09:05:10 1.2 --- admin.loc 2001/05/05 17:22:38 1.3 *************** *** 22,29 **** // extra header for charset ! define('L_CHARSET', 'iso-8859-1'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 22,29 ---- // extra header for charset ! define('A_CHARSET', 'iso-8859-1'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:22:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/polish In directory usw-pr-cvs1:/tmp/cvs-serv24830/chat/localization/polish Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/polish/admin.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.loc 2001/04/19 09:05:10 1.2 --- admin.loc 2001/05/05 17:22:38 1.3 *************** *** 22,29 **** // extra header for charset ! define('L_CHARSET', 'iso-8859-2'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 22,29 ---- // extra header for charset ! define('A_CHARSET', 'iso-8859-2'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |
From: Lo?c C. <lo...@us...> - 2001-05-05 17:22:42
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/korean In directory usw-pr-cvs1:/tmp/cvs-serv24830/chat/localization/korean Modified Files: admin.loc Log Message: Renamed charset and font size constants Index: admin.loc =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/korean/admin.loc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.loc 2001/04/19 20:31:16 1.2 --- admin.loc 2001/05/05 17:22:38 1.3 *************** *** 23,30 **** // extra header for charset ! define('L_CHARSET', 'euc-kr'); // medium font size in pt. ! define('L_FONT_SIZE', 10); // Top frame --- 23,30 ---- // extra header for charset ! define('A_CHARSET', 'euc-kr'); // medium font size in pt. ! define('A_FONT_SIZE', 10); // Top frame |