From 1c9d48b4549741bc47eadc8cf7f3417ef08177f1 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 16 Feb 2026 08:21:49 +0000 Subject: [PATCH] sadiq --- about.php | 5 ++ admin/css/style.css | 12 +++++ admin/includes/auth.php | 2 +- admin/includes/header.php | 15 +++++- admin/index.php | 103 +------------------------------------- car_detail.php | 5 ++ cars.php | 5 ++ contact.php | 5 ++ login.php | 7 ++- register.php | 7 ++- user_dashboard.php | 5 ++ 11 files changed, 66 insertions(+), 105 deletions(-) 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'; ?>
+

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 @@
-
+