From 75ae8e91dec8f08ee92859b890beb6a9bcaf3cbe Mon Sep 17 00:00:00 2001 From: bye Date: Fri, 31 May 2024 20:43:48 +0100 Subject: [PATCH] Clearing profile.php will remake soon --- profile.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/profile.php b/profile.php index 1636266..71ac284 100644 --- a/profile.php +++ b/profile.php @@ -19,26 +19,5 @@ if (empty($profile)) { ]; } -$avatar = "/assets/default.png"; -$display_name = ""; - -if ($_SESSION['id'] != $profile['id']) { - $avatar = get_avatar_url($profile['id']); - if ($profile['public_display_name']) { - $display_name = get_display_name($profile['id'], false); - } -} else { - $avatar = get_avatar_url($profile['id']); - $display_name = get_display_name($profile['id'], false); -} - -// Get badges owned by this person -$badges = db_execute_all('SELECT * FROM badge_owners INNER JOIN badges b on badge_owners.badge_id = b.id WHERE owner_id = ?; ', [$profile['id']]); -if (!empty($badges)) { - if (!array_is_list($badges)) { - $badges = array (0 => $badges); - } -} - ?>