diff --git a/lang/chs/lang_speical.php b/lang/chs/lang_speical.php new file mode 100644 index 00000000..b891b3c9 --- /dev/null +++ b/lang/chs/lang_speical.php @@ -0,0 +1,7 @@ + "对不起...", + 'std_permission_denied_only' => "你没有该权限。只有", + 'std_or_above_can_view' => "及以上等级的用户才能查看特别区。

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

" .$SITENAME."管理组
", +]; diff --git a/public/torrents.php b/public/torrents.php index 24ead100..b984fae7 100644 --- a/public/torrents.php +++ b/public/torrents.php @@ -2,6 +2,7 @@ require_once("../include/bittorrent.php"); dbconn(true); require_once(get_langfile_path('torrents.php')); +require_once(get_langfile_path('speical.php')); loggedinorreturn(); parked(); @@ -15,7 +16,7 @@ switch (CURRENT_SCRIPT) { httperr(); } if (get_user_class() < get_setting('authority.view_special_torrent')) { - permissiondenied(); + stderr($lang_special['std_sorry'],$lang_special['std_permission_denied_only'].get_user_class_name(get_setting('authority.view_special_torrent'),false,true,true).$lang_special['std_or_above_can_view'],false); } $sectiontype = $specialcatmode; break;