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