diff --git a/lang/chs/lang_staff.php b/lang/chs/lang_staff.php index be81a87b..236bafa9 100644 --- a/lang/chs/lang_staff.php +++ b/lang/chs/lang_staff.php @@ -27,7 +27,10 @@ $lang_staff = array 'text_apply_for_it' => "申请加入", 'text_forum_moderators' => "论坛版主", 'text_forum_moderators_note' => "论坛版主负责论坛的日常管理。", - 'text_forums' => "版块" + 'text_forums' => "版块", + 'std_sorry' => "对不起...", + 'std_permission_denied_only' => "你没有该权限。只有", + 'std_or_above_can_view' => "及以上等级的用户才能查看管理组。

请查看常见问题了解更多关于用户等级和权限的信息。

" .$SITENAME."管理组
", ); ?> diff --git a/lang/cht/lang_staff.php b/lang/cht/lang_staff.php index 4b612a2b..c99ffff4 100644 --- a/lang/cht/lang_staff.php +++ b/lang/cht/lang_staff.php @@ -27,7 +27,10 @@ $lang_staff = array 'text_apply_for_it' => "申請加入", 'text_forum_moderators' => "論壇版主", 'text_forum_moderators_note' => "論壇版主負責論壇的日常管理。", - 'text_forums' => "版塊" + 'text_forums' => "版塊", + 'std_sorry' => "對不起...", + 'std_permission_denied_only' => "你沒有該權限。只有", + 'std_or_above_can_view' => "及以上等級的用戶才能查看管理組。

請查看常見問題了解更多關於用戶等級和權限的信息。

" .$SITENAME."管理組
", ); ?> diff --git a/lang/en/lang_staff.php b/lang/en/lang_staff.php index 466a7d8f..4cd083db 100644 --- a/lang/en/lang_staff.php +++ b/lang/en/lang_staff.php @@ -27,7 +27,10 @@ $lang_staff = array 'text_apply_for_it' => "Apply to join", 'text_forum_moderators' => "Forum Moderators", 'text_forum_moderators_note' => "Forum moderators are responsible for daily management of forums.", - 'text_forums' => "Forums" + 'text_forums' => "Forums", + 'std_sorry' => "Sorry...", + 'std_permission_denied_only' => "Permission denied. Only ", + 'std_or_above_can_view' => " or above could view Staff.

Please see the FAQ for more information on different user classes and what they can do.

The " .$SITENAME." Staff
", ); ?> diff --git a/public/staff.php b/public/staff.php index d27b4c68..e2d06812 100644 --- a/public/staff.php +++ b/public/staff.php @@ -3,6 +3,10 @@ require "../include/bittorrent.php"; dbconn(); require_once(get_langfile_path()); loggedinorreturn(true); +if (get_user_class() < UC_VIP) +{ + stderr($lang_log['std_sorry'],$lang_log['std_permission_denied_only'].get_user_class_name(UC_VIP,false,true,true).$lang_log['std_or_above_can_view'],false); +} stdhead($lang_staff['head_staff']); $Cache->new_page('staff_page', 900, true);