peer location relative to privacy

This commit is contained in:
xiaomlove
2022-07-24 02:04:29 +08:00
parent f9bcb4d969
commit fefb6ff8f3
3 changed files with 63 additions and 48 deletions

View File

@@ -312,7 +312,11 @@ tr_small($lang_userdetails['row_forum_posts'], ($forumposts && ($user["id"] == $
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('<a href="%s/myhr.php?userid=%s" target="_blank">%s</a>', getSchemeAndHttpHost(), $user['id'], $hrStatus), 1);
tr_small('H&R', sprintf('<a href="myhr.php?userid=%s" target="_blank">%s</a>', $user['id'], $hrStatus), 1);
}
if (\App\Models\Claim::getConfigIsEnabled()) {
$states = (new \App\Repositories\ClaimRepository())->getStats($user['id']);
tr_small($lang_functions['menu_claim'], sprintf('<a href="claim.php?uid=%s" target="_blank">%s</a>', $user['id'], $states), 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);