forked from root/threadr.lostcave.ddnss.de
removed last hard-coded references to LostCave fixing #27
parent
c3563cafc3
commit
8748d17753
|
@ -15,15 +15,15 @@ if ($statement->rowCount() > 0) {
|
||||||
// IP and user agent string are used to prevent cheap session stealing
|
// IP and user agent string are used to prevent cheap session stealing
|
||||||
$_SESSION['user_ip'] = $_SERVER['REMOTE_ADDR'];
|
$_SESSION['user_ip'] = $_SERVER['REMOTE_ADDR'];
|
||||||
$_SESSION['user_http_user_agent'] = $_SERVER['HTTP_USER_AGENT'];
|
$_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 {
|
} else {
|
||||||
//password inorrect
|
//password inorrect
|
||||||
header("Location: https://threadr.lostcave.ddnss.de/threadr/login/?error=credentials");
|
header("Location: https://%DOMAIN_NAME%%CONTENT_DIR%/login/?error=credentials");
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//wrong user name
|
//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();
|
die();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue