From 55461932f4927d0ee30ace5badc29e1d873d2be1 Mon Sep 17 00:00:00 2001 From: shieldss Date: Wed, 8 Apr 2026 13:03:14 -0400 Subject: [PATCH] refactor eliminate 302 errors and refactoring --- public/header.php | 4 +- public/login.php | 167 ++++++++++++++---------------- public/refile/include/refresh.php | 30 +++--- 3 files changed, 96 insertions(+), 105 deletions(-) diff --git a/public/header.php b/public/header.php index c5e6d98..792e2e4 100644 --- a/public/header.php +++ b/public/header.php @@ -11,14 +11,14 @@ // Destroy the session and redirect to login session_unset(); session_destroy(); - header("Location: login.php"); + header("Location: /login.php"); exit(); } } // Update last activity timestamp $_SESSION['last_activity'] = time(); } else { - header("Location: login.php"); + header("Location: /login.php"); exit(); } diff --git a/public/login.php b/public/login.php index 3a2382d..ea877dd 100644 --- a/public/login.php +++ b/public/login.php @@ -1,105 +1,98 @@ + - - - - - - - - - + + SCF Processing Login + + + + -
-
-
-
Staff Login - +
+
+
+ Staff Login - if ($login === 'false') { - echo '

Login failed. Please try again.

'; - } - - - - - ?> -
- - - -
-
-
account_circle - + + + + + + +
+
+
+
+ lock + + +
+
-?> - - + +
-
-
-
lock - - -
-
- - -
+
-
-
- - - - - - - - - - + + + \ No newline at end of file diff --git a/public/refile/include/refresh.php b/public/refile/include/refresh.php index 3307e94..0774484 100644 --- a/public/refile/include/refresh.php +++ b/public/refile/include/refresh.php @@ -1,20 +1,18 @@ \ No newline at end of file + resetTimer(); + \ No newline at end of file