mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Minor improvements (#951)
This commit is contained in:
parent
ca8a8a2036
commit
f6302ca550
3 changed files with 3 additions and 3 deletions
|
@ -26,5 +26,5 @@ if (!IS_ADMIN) {
|
||||||
|
|
||||||
if (!$userdata['session_admin']) {
|
if (!$userdata['session_admin']) {
|
||||||
$redirect = url_arg($_SERVER['REQUEST_URI'], 'admin', 1);
|
$redirect = url_arg($_SERVER['REQUEST_URI'], 'admin', 1);
|
||||||
redirect("login.php?redirect=$redirect");
|
redirect(LOGIN_URL . "?redirect=$redirect");
|
||||||
}
|
}
|
||||||
|
|
|
@ -367,7 +367,7 @@ if ($tor_reged && $tor_info) {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($peers as $pid => $peer) {
|
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
|
// Full details mode
|
||||||
if ($s_mode == 'full') {
|
if ($s_mode == 'full') {
|
||||||
|
|
|
@ -70,7 +70,7 @@ if ($show_dl_list) {
|
||||||
$dl_cat[$u['user_status']] = $u['username'];
|
$dl_cat[$u['user_status']] = $u['username'];
|
||||||
$dl_count[$u['user_status']] = $u['username'];
|
$dl_count[$u['user_status']] = $u['username'];
|
||||||
} else {
|
} 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_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']]++;
|
$dl_count[$u['user_status']]++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue