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:
johnnyq
2025-09-24 12:56:01 -04:00
parent ca6a903b8f
commit e6bcf0e12f
23 changed files with 156 additions and 92 deletions

View File

@@ -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;
}