? ?????, ????? ??? ?????? ????... :-)

? ???? ?? ? ???? ?? http://www.megabotans.noka.ru/forum1 ?? ???????????? ??????. ???? ??????????? index.html ?? ??????-?? ??????????? (?? ?????????). ? ????? ??? ???? ?? ??????. ????? ? ????? ????????????? ????? ?????????

? ???????? ??, ??????? ??????????? ??? ????????? ?????????, ????? ?? ???? ??????? ????????? ????? ?? ???????. ?? ??? Base URL ?? ??????. ? ? ??????? ??? ?????? ?? ?????, ???? ? ?????????? ????????? ????????, ??? ?????.

?? ??-???????? ?????????? ?? ? ??? ???????????. :-)
??????? ?? ?????? ??????????? ? ???????? ????. ?? ??????? ?????? ??? ??? ?????????, ?? ??? ?????? ????????????. ? ???? ????????? ?????? ? ??????? "cache"? ????? ????? ??????, ? ??? ????????? ? ?ase URL.

phpMyAdmin ????? ?????? ???????? ????? ??? SQL-????????. ??? ?????? ???????? ??? ????? ?????????:

UPDATE config SET conf_value='Russian' WHERE conf_name='o_default_lang'

??? ???? ??????? ??? ?????????. ?????? ????? ????? ??? ??? ?????????, ????? ????????????? ?? ???? ????? ????????.

?????? ??? ??? ?? ????, ????? ??????? ??????. ????? ? ??????????? ??????? ???-?? ?? ???...

??? ????????, ???????? ??? ??? ????????. ?? ???? ?????? ?????, ??????? phpMyAdmin ? ??????? ??????? ? ????. ???????? ???, ??? ? ?????.

6

(7 replies, posted in Archive)

Âî âñåõ íàäî ìåíÿòü, â òîì òî è äåëî, ÷òî íå íàøåë, êàê îäíèì ìàõîì ñìåíèòü.
Ò.å. Oxygen.css, Mercury.css...

7

(7 replies, posted in Archive)

Áåçïîíÿòèÿ ÷òî òàêîå "MyBB"

8

(7 replies, posted in Archive)

??????? ?? ????????? ??????? ??? ??????. ? ???? - ????? ??????, ????? ? ?????...

http://forum.visp.ru/ - ??????????? ????? ?? ?????? ??? ????????.
?????? - 25.08.2003.
?????? ?????? - 1.0.1 (?????? ????????????????).
?????????? - ??????????. ;-)

10

(7 replies, posted in Archive)

åñëè äëÿ ïîñëåäíèõ âåðñèé äâèæêà, òî èùè â ôàéëå Èìÿ_ñòèëÿ.css ÷òî-òî òèïà:
.pun {FONT-SIZE: 11px; LINE-HEIGHT: normal}

Ïîïðîáóé 11 çàìåíèòü íà äðóãîå, ó ìåíÿ ïîëó÷èëîñü.
À â áàçîâîì ñòèëå íå íàøåë.

11

(7 replies, posted in Archive)

DROP TABLE forums

12

(7 replies, posted in Archive)

â ñòèëÿõ.

?? ??????? ??????, ????? ? edit.php ???????? ?????????? ? ?????????? ????:

time() - $cur_post['posted'] >= 300

14

(3 replies, posted in Archive)

?? ? ???????? ????????, ???? ?? ?????????, ?????? ??? ?? ??????????, ????? ????? ?????? ?????????.

15

(3 replies, posted in Archive)

×èòàé äîêè ïî ìóñêóëþ, êàêîé òàì äåôîëòíûé ïàðîëü. ß äàê äëÿ ëîêàëüíîé îòëàäêè ñòàâëþ denwer, òàì óæå íàñòðîåííûé MySQL è PHPMyAdmin â êîìïëåêòå.

16

(9 replies, posted in Archive)

???. ????? ? ??? ? ?????????? pun-?????????. :-) ??????? ?????? ??????????. ?????? ??? ????????? ??????, ??? ????????? ??????????? ???-??.

17

(9 replies, posted in Archive)

? ??? ????? PunBB? ? ??? ?????????-?????????, ??? ? ?? ???????????. ???? ??, ?? ????? ?????? ?????????????, ?????? ????? ? ???? ??????????.

Ñèñòåìà ïðîñòàÿ: êîëè÷åñòâî îòêðûâàþùèõ ôèãóðíûõ ñêîáîê â ñêðèïòå äîëæíî áûòü ðàâíî êîëè÷åñòâó çàêðûâàþùèõ. :-)
Ïðîäâèíóòûå PHP-ðåäàêòîðû ñàìè çà ýòèì ñëåäÿò.

 òîì ñëó÷àå ñêîáîê äîáàâëÿòü íå íàäî.
Ïðîâåðêó ñòàòóñà äåëàòü ñðàçó ïîñëå ïîëó÷åíèÿ ñòàòóñà, ò.å. ïîñëå ñòðî÷êè:

list($ban_user, $ban_email, $status) = $db->fetch_row($result);

? ???????? ? ????????? ????? ?????? ? ??????, ??? ??? ?????? ?? ??????? ?????? ??????????? ? ??? ?? ????. ? ???? ?? ????? ??? ??????, ??? ?? ?????????. ??? ?????, ? ????????? ????????? ??? ????? ???? ????? ???????? ????? ??????.

? ? ? ????? ??????? ? ??????? ?????????? ????? ???????. ??????.

Äà, ó ìåíÿ âòîðîé ïîäîáíûé áëîê èäåò ñðàçó ïîñëå ïåðâîãî. ß ñìîòðåë íå âíèìàòåëüíî, âðîäå áû â çàâèñèìîñòè îò òîãî, îòêóäà âûçûâàåòñÿ ñêðèïò, îòðàáàòûâàåò îäèí èëè äðóãîé áëîê.

×óþ, îïÿòü ìíå îòâå÷àòü... ;-)

Xan wrote:

Ñêàæèò, ïîæàëóéñòà, ÷òî íóæíî â ñêðèïòå äîáàâèòü/ïîäðåäàêòèðîâàòü, ÷òîáû ìîäåðàòîðû íå ìîãëè áàíèòü àäìèíîâ

Èùåøü â admin_bans.php, âíóòðè áëîêà if (isset($_REQUEST['add_ban'])) ... (îí â ñàìîì íà÷àëå)

$result = $db->query('SELECT username, email FROM '.$db->prefix.'users

çàìåíÿåøü íà:

$result = $db->query('SELECT username, email, status FROM '.$db->prefix.'users

íèæå èùåøü:

list($ban_user, $ban_email) = $db->fetch_row($result);

çàìåíÿåøü íà:

list($ban_user, $ban_email, $status) = $db->fetch_row($result);

è íèæå ñòàâèøü ïðîâåðêó:

if ($status < 2)
    message($lang_common['No permission']);

Òàêèõ èçìåíåíèé íóæíî ñäåëàòü äâà. ×óòü íèæå ïîäîáíûé áëîê, ñ íåáîëüøèìè îòëè÷èÿìè, òàì ïðèìåðíî òî æå ñàìîå äåëàåøü.

è ÷òîáû àäìèíîâ íåëüçÿ áûëî óäàëèòü (ïî êðàéíåé ìåðå ïåðåä óäàëåíèåì àäìèíà, ïîíèçèòü åãî â çâàíèè).

Îòêðûâàåøü profile.php, èäåøü â áëîê if (isset($_POST['update_status'])) ...
 íåãî äîáàâëÿåøü ïîñëå ïðîâåðêè ñòàòóñà cur_user:

$result = $db->query('SELECT status FROM '.$db->prefix.'users WHERE id='.$id) or error('Unable to fetch user status', __FILE__, __LINE__, $db->error());        
list($status) = $db->fetch_row($result);

if ($status == 2)
    message($lang_common['No permission']);

Ñóäÿ ïî òâîèì çàïðîñàì, ó òåáÿ òàì íåõèëàÿ âîéíóøêà íà ôîðóìå... :-)

????? ?? ?????, ?? ????? ????? 5 ????????? ? ???? ??? ?????????? ????????. ?????? 1.2.?, ? ?????? ??????. ? ????? ?????? ???????????? ?????, ?? ??? ?????????? ?? ???????? ??????? ?????-???? ????????. ? ????? ? ??????? ???? ????

?? ??????, ? ?????? 490-? ????? ???:

else if (isset($_POST['delete']) || isset($_POST['comply'])) {
    if ($cur_user['status'] < 2)
        message($lang_common['No permission']);

? ??????? 2 ?? 1.

?????, ? ????? ???? ??????? ????????

<input type="submit" name="delete" value="<?php print $lang_profile['Delete user'] ?>">

? ?????????? ???????? ??????, ?????? ????? if ($user['status'] == 1): ... endif;

????????, ????? ???.

25

(3 replies, posted in Archive)

Ïîèùè çäåñü: http://www.punres.org/ ìîæåò åñòü.