Minor improvements (#951)

This commit is contained in:
Roman Kelesidis 2023-10-05 19:00:26 +07:00 committed by GitHub
commit f6302ca550
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -26,5 +26,5 @@ if (!IS_ADMIN) {
if (!$userdata['session_admin']) {
$redirect = url_arg($_SERVER['REQUEST_URI'], 'admin', 1);
redirect("login.php?redirect=$redirect");
redirect(LOGIN_URL . "?redirect=$redirect");
}

View file

@ -367,7 +367,7 @@ if ($tor_reged && $tor_info) {
}
foreach ($peers as $pid => $peer) {
$u_prof_href = ($s_mode == 'count') ? '#' : "profile.php?mode=viewprofile&u=" . $peer['user_id'] . "#torrent";
$u_prof_href = ($s_mode == 'count') ? '#' : PROFILE_URL . $peer['user_id'] . "#torrent";
// Full details mode
if ($s_mode == 'full') {

View file

@ -70,7 +70,7 @@ if ($show_dl_list) {
$dl_cat[$u['user_status']] = $u['username'];
$dl_count[$u['user_status']] = $u['username'];
} else {
$u_prof_href = ($u['user_id'] == GUEST_UID) ? '#' : "profile.php?mode=viewprofile&u=" . $u['user_id'] . "#torrent";
$u_prof_href = ($u['user_id'] == GUEST_UID) ? '#' : PROFILE_URL . $u['user_id'] . "#torrent";
$dl_cat[$u['user_status']] .= '<nobr><a class="' . $u_link_class . '" href="' . $u_prof_href . '" title="' . $u['last_modified_dlstatus'] . '">' . profile_url(['username' => $u['username'], 'user_rank' => $u['user_rank']]) . '</a></nobr>, ';
$dl_count[$u['user_status']]++;
}