From a834ee565c72ecdfd801e9407cda3bde0f589be5 Mon Sep 17 00:00:00 2001 From: Underemployed Date: Fri, 29 Mar 2024 12:06:56 +0530 Subject: [PATCH] added session verification and admin check --- admin/add-category-logic.php | 6 ++++- admin/add-category.php | 5 ++++ admin/add-user-logic.php | 7 ++++-- admin/add-user.php | 6 ++++- admin/config/constants.php | 7 ++++++ admin/delete-category.php | 5 ++++ admin/edit-category-logic.php | 6 ++++- admin/edit-category.php | 5 ++++ admin/edit-post-logic.php | 1 + admin/manage-categories.php | 6 ++++- admin/manage-users.php | 6 ++++- signin-logic.php | 3 ++- signin.php | 43 +++++++++++------------------------ 13 files changed, 68 insertions(+), 38 deletions(-) diff --git a/admin/add-category-logic.php b/admin/add-category-logic.php index 6736e84..3cd5b54 100644 --- a/admin/add-category-logic.php +++ b/admin/add-category-logic.php @@ -1,7 +1,11 @@ diff --git a/signin-logic.php b/signin-logic.php index 7b9adb6..8c88b9d 100644 --- a/signin-logic.php +++ b/signin-logic.php @@ -59,4 +59,5 @@ if(isset($_POST['submit'])){ }else{ header('location: ' . ROOT_URL . "signin.php"); die(); -} \ No newline at end of file +} +// error_log(); \ No newline at end of file diff --git a/signin.php b/signin.php index 480083e..d49e139 100644 --- a/signin.php +++ b/signin.php @@ -1,11 +1,10 @@ @@ -22,10 +21,7 @@ unset($_SESSION['signin-data']); - -
-

Sign In

-
- - - - -
-

- -

-
- - - - - +
+

+ +

+
+
- - - - + + + Don't have an account? Sign up
-
- - \ No newline at end of file