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(); } ?>