diff --git a/admin/pagestart.php b/admin/pagestart.php index 0a27b178c..f0702a078 100644 --- a/admin/pagestart.php +++ b/admin/pagestart.php @@ -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"); } diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index 1cc5fbcd1..908e0951f 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -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') { diff --git a/library/includes/torrent_show_dl_list.php b/library/includes/torrent_show_dl_list.php index a87aac2d4..86e808d36 100644 --- a/library/includes/torrent_show_dl_list.php +++ b/library/includes/torrent_show_dl_list.php @@ -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']] .= '' . profile_url(['username' => $u['username'], 'user_rank' => $u['user_rank']]) . ', '; $dl_count[$u['user_status']]++; }