From e6825c0ee2a884d16a7694023252855894d1349b Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Tue, 21 Oct 2025 23:41:26 +0000 Subject: [PATCH] version 3 --- includes/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/auth.php b/includes/auth.php index 4b4431d..d0a5fdb 100644 --- a/includes/auth.php +++ b/includes/auth.php @@ -11,7 +11,7 @@ function is_logged_in() { // Function to require a user to be logged in to access a page function require_login() { if (!is_logged_in()) { - header('Location: /login.php'); + header('Location: ../login.php'); exit(); } } @@ -36,7 +36,7 @@ function is_admin() { function require_admin() { if (!is_admin()) { // Redirect to portal index if not an admin - header('Location: /portal'); + header('Location: ../index.php'); exit(); } }