diff --git a/include/functions.php b/include/functions.php
index a17eb75e..063d6cbb 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -4003,9 +4003,13 @@ function classlist($selectname,$maxclass, $selected, $minClass = 0){
return $list;
}
-function permissiondenied(){
+function permissiondenied($allowMinimumClass = null){
global $lang_functions;
- stderr($lang_functions['std_error'], $lang_functions['std_permission_denied']);
+ if ($allowMinimumClass === null) {
+ stderr($lang_functions['std_error'], $lang_functions['std_permission_denied']);
+ } else {
+ stderr($lang_functions['std_sorry'],$lang_functions['std_permission_denied_only'].get_user_class_name($allowMinimumClass,false,true,true).$lang_functions['std_or_above_can_view'],false);
+ }
}
function gettime($time, $withago = true, $twoline = false, $forceago = false, $oneunit = false, $isfuturetime = false){
diff --git a/lang/chs/lang_functions.php b/lang/chs/lang_functions.php
index d6afc155..9074804d 100644
--- a/lang/chs/lang_functions.php
+++ b/lang/chs/lang_functions.php
@@ -5,6 +5,8 @@ $lang_functions = array
'std_access_denied' => "访问拒绝!",
'std_fake_account' => "我们怀疑你在使用伪造账户,因此记录了本次行为!",
'std_permission_denied' => "你没有该权限!",
+ 'std_permission_denied_only' => "你没有该权限。只有",
+ 'std_or_above_can_view' => "及以上等级的用户才能查看。
请查看"."常见问题了解更多关于用户等级和权限的信息。
" . implode(' | ', $headerFilters) . "
"); @@ -40,7 +49,7 @@ print $filterForm; $baseQuery = \App\Models\HitAndRun::query()->where('uid', $userid)->where('status', $status); $rescount = (clone $baseQuery)->count(); -list($pagertop, $pagerbottom, $limit, $offset, $pageSize) = pager(50, $rescount, "?status=$status&"); +list($pagertop, $pagerbottom, $limit, $offset, $pageSize) = pager(50, $rescount, sprintf('?%s&', $queryString)); print("| {$lang_myhr['th_hr_id']} | diff --git a/public/userdetails.php b/public/userdetails.php index bc34c725..47a92e6b 100644 --- a/public/userdetails.php +++ b/public/userdetails.php @@ -308,6 +308,10 @@ tr_small($lang_userdetails['row_torrent_comment'], ($torrentcomments && ($user[" tr_small($lang_userdetails['row_forum_posts'], ($forumposts && ($user["id"] == $CURUSER["id"] || get_user_class() >= $viewhistory_class) ? "".$forumposts."" : $forumposts), 1); if ($user["id"] == $CURUSER["id"] || get_user_class() >= $viewhistory_class) { + if (\App\Models\HitAndRun::getIsEnabled()) { + $hrStatus = (new \App\Repositories\HitAndRunRepository())->getStatusStats($user['id']); + tr_small('H&R', sprintf('%s', getSchemeAndHttpHost(), $user['id'], $hrStatus), 1); + } tr_small($lang_userdetails['row_karma_points'], number_format($user['seedbonus'], 1), 1); tr_small($lang_functions['text_seed_points'], number_format($user['seed_points'], 1), 1); }