From f6cddef9aa3fb0e81b746f2d05072c6a12c0dff4 Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Tue, 2 Nov 2021 08:46:40 -0400 Subject: [PATCH] More Eloquent moves --- admin/admin.php | 29 ++----- admin/ads.php | 127 ------------------------------ admin/common.php | 31 ++++---- admin/configuration.php | 8 +- admin/dashboard.php | 21 ++--- admin/index.php | 31 ++++---- admin/pastes.php | 2 - admin/users.php | 39 +++------ api/tags_autocomplete.php | 7 +- fav.php | 23 ------ includes/DatabaseHandle.class.php | 6 -- includes/Models/AdminLog.php | 12 +++ includes/Models/Paste.php | 4 + includes/common.php | 1 + includes/functions.php | 44 +---------- index.php | 20 +++-- pages.php | 1 + paste.php | 37 +++++---- profile.php | 7 +- theme/bulma/common.php | 2 +- theme/bulma/main.php | 16 +--- theme/bulma/view.php | 33 +++----- user.php | 14 +--- 23 files changed, 139 insertions(+), 376 deletions(-) delete mode 100644 admin/ads.php delete mode 100644 fav.php create mode 100644 includes/Models/AdminLog.php diff --git a/admin/admin.php b/admin/admin.php index 3648b17..700e07a 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -1,10 +1,6 @@ query('SELECT user FROM admin LIMIT 1'); -$adminid = $query->fetch()['user']; - ?> @@ -48,23 +44,13 @@ $adminid = $query->fetch()['user']; - ' . mysqli_error($con) . ' - '; - - } else { - $msg = '