From 29337b30b7071cff678a7be54161507f3eb278be Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 15 May 2025 00:07:41 +0500 Subject: feat: pfp, banner, badge deletion buttons --- public/account/index.php | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) (limited to 'public/account/index.php') diff --git a/public/account/index.php b/public/account/index.php index 6cf3fc7..2b9e790 100644 --- a/public/account/index.php +++ b/public/account/index.php @@ -123,40 +123,67 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {

Profile

Profile picture

'; } else { echo "

You don't have profile picture

"; } ?> - +
+ + + + Remove profile picture + + +

Profile banner

'; } else { echo "

You don't have profile banner

"; } ?> - +
+ + + + Remove banner + + +

Personal badge

prepare("SELECT badge_id FROM user_badges WHERE user_id = ?"); $stmt->execute([$_SESSION["user_id"]]); + $has_badge = false; + if ($row = $stmt->fetch()) { echo '
'; echo ''; echo ''; echo ''; echo '
'; + $has_badge = true; } else { echo "

You don't have personal badge

"; } ?> - +
+ + + + Remove badge + + +

Username

"> @@ -253,9 +280,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { -
- -
+ Delete + me -- cgit v1.2.3