From 9f1906c4cbb9878c5888723b7923fa8e4bebb51f Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 27 Apr 2025 21:12:02 +0500 Subject: feat: roles --- src/partials.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'src/partials.php') diff --git a/src/partials.php b/src/partials.php index 2e7ee56..0b21b50 100644 --- a/src/partials.php +++ b/src/partials.php @@ -11,7 +11,9 @@ function html_navigation_bar() Emotes Emotesets Users - Upload + Upload'; + } ?> Account prepare("SELECT COUNT(*) FROM reports WHERE sender_id = ? AND resolved_by IS NULL"); - $stmt->execute([$_SESSION["user_id"]]); - $unread_count = intval($stmt->fetch()[0]); - echo '' ?> - - Reports 0 ? "($unread_count)" : "" ?> - - prepare("SELECT COUNT(*) FROM reports WHERE sender_id = ? AND resolved_by IS NULL"); + $stmt->execute([$_SESSION["user_id"]]); + $unread_count = intval($stmt->fetch()[0]); + echo '' ?> + + Reports 0 ? "($unread_count)" : "" ?> + + -- cgit v1.2.3