From cb838ad53bf37389bb021fd7079fe0ae31309de1 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Wed, 14 Sep 2022 14:08:50 +0000 Subject: [PATCH] Logs section added --- account.php | 46 +++++++++++++++++++++++++++++---------- app/account/account.php | 12 +++++++++++ app/app.php | 34 ++++++++++++++++++++--------- app/image/image.php | 3 +++ css/main.css | 40 ++++++++++++++++++++++++++++++++++ css/scss/_body.scss | 47 ++++++++++++++++++++++++++++++++++++++++ index.php | 48 ++++++++++++++++++++--------------------- 7 files changed, 185 insertions(+), 45 deletions(-) diff --git a/account.php b/account.php index 342ea62..3817bba 100644 --- a/account.php +++ b/account.php @@ -29,24 +29,48 @@ is_admin($_SESSION['id'])) { - ?> + ?>

Admin controlls

Invite Codes

- - - + + + "; + ?> +
+

Logs

+
+ +
+

+

+

+ " . $log_time->format('d/m/Y H:i:s T') . "

"; + ?> +
+ +
+
+ diff --git a/app/account/account.php b/app/account/account.php index 6ffafad..661b66e 100644 --- a/app/account/account.php +++ b/app/account/account.php @@ -1,6 +1,12 @@ get_ip(); /* |------------------------------------------------------------- @@ -85,12 +91,15 @@ if (isset($_POST['submit_login'])) { //window.location.href = "../index.php?login=success"; @@ -237,6 +247,7 @@ if (isset($_POST['submit_signup'])) { sniffleAdd('smelly', 'Enter Invite Code ;3', 'var(--red)', 'assets/icons/cross.svg');