Topic: Права модераторов

?????????? ?? ??????????? ?????????? ????? ??????????? ???, ????? ????????? ???? ?????:
- ?????? ?????? ?? ????? ????
- ?? ???? ????? ???????? ?????? ???? ? ?????????? ( ??????? )
??????? ???????
PS ? ??? ???????? ????? ? ??????????-????

2

Re: Права модераторов

???????? ???, ?????? ??????? ?????????? ????????. ????? ?? ???? ????? ???????? ?????? ???? ? ??????-??????? - ???? ?????? ?? ??????? ??? ?? ???????? admin_censoring.php, ??? ????? ??????? ??????? ????????? ?? group_id, ?.?. if ($pun_user['g_id'] == PUN_MOD) echo $lang_common['No permission']; ???????? ???, ???? ????????, ?.?. punbb ????? ?? ?????.
?????? ?? ????? ???? - ??? ???? ?????? ?? ????? ??????? ?????????? ??????, ??????? ?????????? ???????, ??????????? ? ??????? forum_id ? ?? ?????????????  ????????? ?????? "Ban".

Hm... every pixel has it's own destiny

Re: Права модераторов

Gym1530

???????? ???????? ? ????? admin_censoring.php

???? ???

if ($pun_user['g_id'] > PUN_MOD)
    message($lang_common['No permission']);

?? ????

if ($pun_user['g_id'] != PUN_ADMIN)
    message($lang_common['No permission']);

ERROR - MIRROR

Re: Права модераторов

HitMan wrote:

Gym1530

???????? ???????? ? ????? admin_censoring.php

???? ???

if ($pun_user['g_id'] > PUN_MOD)
    message($lang_common['No permission']);

?? ????

if ($pun_user['g_id'] != PUN_ADMIN)
    message($lang_common['No permission']);

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

Re: Права модераторов

Gym1530

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

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

????? ? ????? admin_bans.php ???:


        // Make sure we're not banning an admin
        if (isset($group_id) && $group_id == PUN_ADMIN)
            message('The user '.pun_htmlspecialchars($ban_user).' is an administrator and can\'t be banned. If you want to ban an administrator, you must first demote him/her to moderator or user.');

??? ?????? ?? ?? ????? ?????? ??????.
?????????????? ?????? ????? ?????? ???? ???????.
??? ???:
?????? ???? ?? ?????? ??????? ?? ?????? ????? ????? ?? ????? ????? ???????.

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

        // Make sure we're not banning an admin
        if (isset($group_id) && $group_id == PUN_ADMIN || $pun_user['g_id'] == 4)
            message('The user '.pun_htmlspecialchars($ban_user).' is an administrator or other users and can\'t be banned. If you want to ban, you must first demote him/her to moderator or user.');

??? ????? "4" - ??? ?????? ??????? ??????.

ERROR - MIRROR