From 8748d17753fa3cbb72eae70cec1841764657ab7e Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Thu, 2 Sep 2021 08:46:00 +0200 Subject: [PATCH] removed last hard-coded references to LostCave fixing #27 --- threadr/login/redirect.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/threadr/login/redirect.php b/threadr/login/redirect.php index 2afc85e..9e20fb5 100644 --- a/threadr/login/redirect.php +++ b/threadr/login/redirect.php @@ -15,15 +15,15 @@ if ($statement->rowCount() > 0) { // IP and user agent string are used to prevent cheap session stealing $_SESSION['user_ip'] = $_SERVER['REMOTE_ADDR']; $_SESSION['user_http_user_agent'] = $_SERVER['HTTP_USER_AGENT']; - header("Location: https://threadr.lostcave.ddnss.de/threadr/userhome/"); + header("Location: https://%DOMAIN_NAME%%CONTENT_DIR%/userhome/"); } else { //password inorrect - header("Location: https://threadr.lostcave.ddnss.de/threadr/login/?error=credentials"); + header("Location: https://%DOMAIN_NAME%%CONTENT_DIR%/login/?error=credentials"); die(); } } else { //wrong user name - header("Location: https://threadr.lostcave.ddnss.de/threadr/login/?error=credentials"); + header("Location: https://%DOMAIN_NAME%%CONTENT_DIR%/login/?error=credentials"); die(); } ?>