diff --git a/about.php b/about.php index 573171a..04e7893 100644 --- a/about.php +++ b/about.php @@ -5,6 +5,11 @@ include __DIR__ . '/includes/header.php'; ?>
+
+ + Back to Home + +

About Us

diff --git a/admin/css/style.css b/admin/css/style.css index 7b5cce9..7e8bbbf 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -186,6 +186,18 @@ td { .btn-danger { background: var(--danger); color: white; } .btn-success { background: var(--success); color: white; } +.btn-back { + background: transparent; + border: 1px solid var(--sidebar-text); + color: var(--text); + margin-right: 1rem; +} + +.btn-back:hover { + background: rgba(0,0,0,0.05); + border-color: var(--text); +} + /* Modal (CSS Only) */ .modal { display: none; diff --git a/admin/includes/auth.php b/admin/includes/auth.php index df1b2a7..0f24a1e 100644 --- a/admin/includes/auth.php +++ b/admin/includes/auth.php @@ -7,7 +7,7 @@ function isAdmin() { function requireAdmin() { if (!isAdmin()) { - header('Location: index.php'); + header('Location: ../login.php'); exit(); } } diff --git a/admin/includes/header.php b/admin/includes/header.php index e4aca82..dd3ea5f 100644 --- a/admin/includes/header.php +++ b/admin/includes/header.php @@ -1,5 +1,18 @@
-
+