mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Started updating href paths to absolute paths instead of relative paths as itflow should be installed in document root anyway and not a sub-directory
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
// Check user is logged in with a valid session
|
||||
if (!isset($_SESSION['logged']) || !$_SESSION['logged']) {
|
||||
if ($_SERVER["REQUEST_URI"] == "/") {
|
||||
header("Location: ../login.php");
|
||||
header("Location: /login.php");
|
||||
} else {
|
||||
header("Location: ../login.php?last_visited=" . base64_encode($_SERVER["REQUEST_URI"]) );
|
||||
header("Location: /login.php?last_visited=" . base64_encode($_SERVER["REQUEST_URI"]) );
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user