From 6668bc66fab888e88e649a65fec8f2a931d20400 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 10 May 2024 16:02:09 +0200 Subject: [PATCH] added buttons to forum --- forum.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/forum.php b/forum.php index 355d79a..e9ac9ad 100644 --- a/forum.php +++ b/forum.php @@ -29,8 +29,20 @@ if (!isset($_SESSION["username"]))
-
- A +
+ query("SELECT username, admin FROM user WHERE username=\"" . $_SESSION["username"] . "\" AND admin=\"1\""); + + if ($out -> num_rows == 1) + { + echo 'Tlačítko adminského panelu'; + } + ?> + + Tlačítko nastavení profilu + Tlačítko domovské stránky