change special section permission deny notice text

This commit is contained in:
xiaomlove
2021-06-16 00:00:11 +08:00
parent db59e93eb2
commit 00930a8386
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
<?php
$lang_special = [
'std_sorry' => "对不起...",
'std_permission_denied_only' => "你没有该权限。只有",
'std_or_above_can_view' => "及以上等级的用户才能查看特别区。<br /><br />请查看<a class=faqlink href=faq.php#id22><b>常见问题</b></a>了解更多关于用户等级和权限的信息。<br /><br /><b></p>" .$SITENAME."管理组</b>",
];

View File

@@ -2,6 +2,7 @@
require_once("../include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(true); dbconn(true);
require_once(get_langfile_path('torrents.php')); require_once(get_langfile_path('torrents.php'));
require_once(get_langfile_path('speical.php'));
loggedinorreturn(); loggedinorreturn();
parked(); parked();
@@ -15,7 +16,7 @@ switch (CURRENT_SCRIPT) {
httperr(); httperr();
} }
if (get_user_class() < get_setting('authority.view_special_torrent')) { 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; $sectiontype = $specialcatmode;
break; break;