From ed2d5d0b1313f3c9ee9345b2a7b1ffa4000a11dd Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 2 Mar 2025 14:47:52 -0700 Subject: [PATCH] Use a layout for the dashboard --- webroot/dashboard/account.php | 129 ++++------ webroot/dashboard/admin/index.php | 106 +++------ webroot/dashboard/assets/main.css | 1 + webroot/dashboard/gallery.php | 176 ++++++-------- webroot/dashboard/index.php | 367 +++++++++++++---------------- webroot/dashboard/layout.php | 65 +++++ webroot/dashboard/settings.php | 253 +++++++++----------- webroot/dashboard/upload-tools.php | 93 +++----- webroot/dashboard/upload.php | 66 ++---- 9 files changed, 551 insertions(+), 705 deletions(-) create mode 100644 webroot/dashboard/layout.php diff --git a/webroot/dashboard/account.php b/webroot/dashboard/account.php index c795494..a80d12e 100644 --- a/webroot/dashboard/account.php +++ b/webroot/dashboard/account.php @@ -23,94 +23,63 @@ $stmt->bind_result($uid, $username, $email, $api_key, $discord_id, $role, $avata $stmt->fetch(); $stmt->close(); -$conn->close(); - checkDiscordLink($discord_id); $role_format = $role == 1 ? "Owner" : ($role == 2 ? "Admin" : ($role == 0 ? "User" : "Unknown")); + +ob_start(); ?> - - - - - - - Xytriza's Uploading Service - Account Management - - - - - - - - - -