51

(25 replies, posted in Archive)

Evgeny wrote:

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

?????? - ? ???? ???????? ?????????? ??????? search_matches ?  search_words. ? ??? ??????

?? ? ????? ? ?? ????????? ????????????, ? ??? ?????? ?????? ;-)

search_words ?????? ????? ??? ??????, ? search_matches ????????? ?? ? ???????. ??????? ??????????? ??? ?????????? ????? ?????????. ????? ??? ??? ??????????? ?????? ?? ??????, ????? ??? ?????? ??????? ?? ???????? ??? ???????. ?????????????? ??? ??????? ?????? ??? ????. ? ??? ???? ????? ?? ?????? ?? ?????, ????? ?? ???? ?????? ??????????, ?????? ???? ?? ???? ???????? ?????? ???????? ? ?????? ????????? ? ???.

UPD: ?????? ?????? ??????? ?? ????? ?? ????? ????? ?????????, ? ?? ??????? ?????? ?????? ?? ?????????.

? ?? ?????? ???. ?? ?????? ????????? ??????? ???? "???????", "??????" ? ?.?. ??????? ????? ?????? ????????? ??? ?? ?????, ????? ??? ???? ???????. ?? ????? ????????, ???? ???????????.

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

????? ??? ????????? ?????? ????: ????????? ?????????????? ???? ? topics, ???????? keywords. ?????? ??? ????? ? ??? ????? ?? ????? ? ?????? ?? ??????? ??, ? ?? ????? ????? ????????????.

? ??? ????? ????????? ??? ?????? ?????? ? ????? ?????: ???? ???????, ??? ????, ? ?????? ????????????, ????????? ?????? ???????, ??????? ????? ??????? ???????, ??? ?????????? ???????????????? ?????.

53

(51 replies, posted in Archive)

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

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

55

(5 replies, posted in Archive)

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

56

(6 replies, posted in Archive)

??????, ??? ??? ????? ??????? ??????, ? ? ???? ??? ??????????. :-)
????? ? header.php, ??? ?? ??????.

??: ? ? 1.2.6 ?????? ? ???? ????? ????????? ????? ?? ?????? ??????????... ;-)

57

(3 replies, posted in Archive)

Ñëóøàé, ÿ äàæå è íå çíàë ïðî ýòó äûðó... Ñïàñèáî çà èíôó, íàäî ïîñìîòðåòü.
À 1.2.5 ïîëó÷àåòñÿ ëîìàþò?

58

(6 replies, posted in Archive)

Ìîäû ñîáèðàëèñü ïîñòåïåííî, â òå÷åíèè äâóõ ëåò. Ìíîãèå ïîñëå äîðàáàòûâàëèñü, êàêèå-òî ïåðåïèñûâàëèñü çàíîâî, ÷òî-òî ñàì ïèñàë.  ðåçóëüòàòå ïîëó÷èëàñü ýòàêàÿ âåùü â ñåáå: òîëüêî ÿ ýòîò è ðàçâèâàþ, îáíîâèòüñÿ íà íîâûé íå ïîëó÷èòñÿ, äà è ñìûñëà îñîáîãî â ýòîé âåðñèè íåò, ïîñêîëüêó ïî÷òè âñ¸, ÷òî ÿ íàìîäèôèöèðîâàë, â íîâûõ âåðñèÿõ è òàê åñòü.

À àïäåéò êà÷àåøü îòñþäà: http://punbb.org/download/museum/
Áåðåøü íóæíóþ âåðñèþ äâèæêà, òàì êîíâåðòåð.

59

(6 replies, posted in Archive)

? ? ???? ? ?? ????... ??? ?? punres.org ???? (?? ????? ??? ?? ??????? ?????????), ? ??? ?? ?????????????

? ??????, ?????? ?? ?????? ?????????? ?? ?????? ??????? ? ???? ???????, ????? ?????? ??? ??????????????, ?? ? ? ???? ????? ?? ???? ?????????? ???? ? 1.0.1 ?? 1.1 ??? PostgreSQL. ? ???, ?? ?????? ???????? ?????? ? ?????????? 1.2.6, ???-???? ??????? ??????? ? ????????.

60

(3 replies, posted in Archive)

À ìîæåò ïàðîëü óøåë? Èëè õðàíèëñÿ â êóêàõ íà êîìïå, ê êîòîðîìó åñòü äîñòóï õàêèðàì?

61

(5 replies, posted in Archive)

???????? ????? if (intval($ban_status) == 2) ?????????:
var_dump($ban_status);
? ??????, ??? ??????? ?? ?????. ?????? ?????? ??????????. ???? ???????? ???-?? ??????, ???? ???????????, ???? ?????? ?????? ?? ????????, .... ???? ? ?????-?? ??????????? :)

62

(5 replies, posted in Archive)

???????? ???.
????? ? admin/bans.php:

        if ($ban_user != '') {
            $result = $db->query('SELECT id, username, email FROM '.$db->prefix.'users WHERE username=\''.escape(strtolower($ban_user)).'\'') or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
            if ($db->num_rows($result)) {
                list($ban_id, $ban_user, $ban_email) = $db->fetch_row($result);

                $result = $db->query('SELECT poster_ip FROM '.$db->prefix.'posts WHERE poster_id='.$ban_id.' ORDER BY posted DESC LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
                if ($db->num_rows($result))
                    $ban_ip = $db->result($result, 0);
            }
            else
                message('No user by that username registered. If you want to add a ban not tied to a specific username just leave the username blank.');
        }

????????? ??:

        if ($ban_user != '') {
            $result = $db->query('SELECT id, username, email, status FROM '.$db->prefix.'users WHERE username=\''.escape(strtolower($ban_user)).'\'') or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
            if ($db->num_rows($result)) {
                list($ban_id, $ban_user, $ban_email, $ban_status) = $db->fetch_row($result);

                if (intval($ban_status) == 2)
                    message('Are you crazy? Can not ban administrator!');

                $result = $db->query('SELECT poster_ip FROM '.$db->prefix.'posts WHERE poster_id='.$ban_id.' ORDER BY posted DESC LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
                if ($db->num_rows($result))
                    $ban_ip = $db->result($result, 0);
            }
            else
                message('No user by that username registered. If you want to add a ban not tied to a specific username just leave the username blank.');
        }

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

??? ?????:

    if ($cur_user['status'] < 1) {
        if ($permissions['users_set_title'] == '1') {
            $user_title = trim($_POST['title']);

? ???? (1.0.1) ??? 679-?, ?? ?????? ????????????????, ? ?????????? ??? ???-?? ?????.
????????? ? ?????? ?????? 1 ?? 2 ? ?????? ????? ??????? ?????? ??????.
????????? ?????? ?????? ??:
if ($cur_user['id'] == ????_??) {

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

Ïàïêà ñ àâàòàðàìè /img/avatars ñîçäàåòñÿ àâòîìàòîì.
Åäèíñòâåííî, íóæíî äàòü ïðàâà íà çàïèñü â íåå âñåì. Âðîäå ýòî âðó÷íóþ äåëàåòñÿ.

Íà ñ÷åò ÷òî ñòàâèòü... òóò óæ íà âêóñ è öâåò... Ñìîòðèøü, ÷åãî íå õâàòàåò äëÿ ïîëíîãî ñ÷àñòüÿ è èùåøü, à íåò ëè òàêîãî ìîäà. Èëè íàîáîðîò, ñìîòðèøü ìîäû íà http://punres.org è îáäóìûâàåøü "Îíî ìíå íàäî?"

ÇÛ: Ñêèí êëåâûé íà ó òåáÿ smile

65

(3 replies, posted in Archive)

??? ???, ??????? ?? Java ???????? ???? ??? ???? ??? ?????? ???????, ??? ????? ???...

Xan wrote:

Åù¸ îäíà ïðîáëåìêà. Êàê â ñêðèïòå çàïðåòèòü ñìåíó ñòàòóñà ÷åðåç ïðîôèëü, ÷òîáû ñòàòóñû òîëüêî ìîæíî áûëî ìåíÿòü ÷åðåç ôàéëû ôîðóìà?

Ò.å. ÷òîáû äàæå àäìèíû è ìîäåðàòîðû íå ìîãëè ñìåíèòü ñòàòóñ?
Èùè â profile.php ìåñòî, ãäå âûâîäèòñÿ êîä, ðèñóþùèé ïîëå ââîäà ñòàòóñà è óáèðàé ýòîò êóñîê.
Ïîòîì èùåøü âûøå ìåñòî, ãäå îáíîâëÿåòñÿ çàïèñü â áàçå è òîæå ïðàâèøü.

Êàê ìåíÿòü ñòàòóñ ÷åðåç ôàéëû... Åñëè åñòü äîñòóï ê áàçå (PHPMyAdmin è ò.ï.) ìîæíî ðó÷êàìè ïðîñòàâëÿòü.
À ïðîùå âñåãî ýòè äâà êóñêà îáåðíóòü â if-else ñ ïðîâåðêîé $cur_user['id'], òèïà

if ($cur_user['id'] == ÒÂÎÉ_ÈÄ) {
âûâîäèì ïîëå ââîäà ñòàòóñà
}

è ïðè îáíîâëåíèè:

if ($cur_user['id'] == ÒÂÎÉ_ÈÄ) {
îáíîâëÿåì çàïèñü ñî ñòàòóñîì
}
else {
îáíîâëÿåì çàïèñü áåç ñòàòóñà
}

ïðèìåðíî òàê.

Ïîõîäó, ýòî äëÿ ñòàðîé êàêîé-òî âåðñèè äâèæêà.
Äëÿ 1.2.6 ïîïðîáóé òàê:
viewtopic.php, line 249, èùåøü:

$user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';

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

if ($cur_post['poster'] == 'Xan')
    $user_info[] = '<dd>IP: Íå ñêàæó';
else
    $user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';

À åùå ëó÷øå çàìåíèòü ïðèâÿçêó ïî username íà id.
À åùå ëó÷øå ñîâñåì íè÷åãî íå äåëàòü, òåáå æàëêî, åñëè ìîäåðàòîðû áóäóò òâîé IP ñìîòðåòü?

68

(25 replies, posted in Archive)

Xan wrote:

Êñòàòè, òû ìîæåøü ñêàçàòü ãäå ìîæíî ñêà÷àòü äëÿ 1.0.1 online.php (On List) êîòîðûé ïîêàçûâàåò êòî, ÷òî è â êàêîé òåìå/òîïèêå? Î÷åíü íóæíî... !

Íå óâåðåí, ÷òî òàêîå åñòü äëÿ 1.0.1, ÿ íå âèäåë. Âïðî÷åì è íå èñêàë.

69

(25 replies, posted in Archive)

? ???? ???? 1.0.1 ?????. http://forum.visp.ru
? ?????????? ??????? ?? ??????, ??????? ????? ?????????.

???? ??? ????? ???????? ?????? 1.2.6 :)

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

71

(29 replies, posted in Archive)

? ??? ?????????? ????????? ? http://forum.punbb.ru ?
??? ??? ?????? ? ????:

Official support : www.punbb.org

/Administrator

72

(13 replies, posted in Archive)

shuron wrote:

??? ??? ??????? ???? ???? ??????????, ?? ???????? ?????????..
? ????? ? ???? ??????..
???????!

??.

73

(13 replies, posted in Archive)

adsh wrote:
nyuk wrote:

??? ?????????? ???????? ? ??

? ???? ??? ?? roll ? ???? ?????.

? ?????????????? ???????? ????? ????????? ???????. ??????? ?? ?????????? ? ?????????.
? ???????? ??????, ?? ???????? ???? ????????????. ?? Athlon64-1800 ?????? ????????? smile

74

(13 replies, posted in Archive)

?????????? ??? ????. ??? ?? ???. ??????, ??????? ??????? ????????, ????? ???????????????? ???????? ??????, ?????? ???????? ???? ? ????? ?????? readme.

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

? ??, ?????????? features.

- ??? ?????????? ???????? ? ??, ????????? ????????????, ??????? ?????????? ? ???????? ???????? ???????.
- ??????? ?????????? ?????????? ?? ????????? ??????????? ?????????.
- ????????? ????????? - ?????????? ?????????????.
- ???????? ?????????? ?? ????????? ? ? ????????? ??????.
- ?????????? ??????????? ?? ????????????? ????????, ????. ?????? ?????????? ? ?????????? (????????????? ?????????? ????????? ? ??????) ??? ????????????? ? ???????????.
- ??????? ?????????? ???????????? ??? ?????????????/????????.
- ??????????? ?? ?????????? ? ??????? ??????????.
- ??????????????? ?????????? ? ??????????? ????? ??????.


http://nyuk.visp.ru/tmp/photoalbum.zip

75

(13 replies, posted in Archive)

??????? ???? ????. ??????????? ? ????? ??????? ?????? ? ? ??????? ????. (?????????? ????????)