added buttons to forum

This commit is contained in:
Václav Šmejkal 2024-05-10 16:02:09 +02:00
parent 099d6027c5
commit 6668bc66fa
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -29,8 +29,20 @@ if (!isset($_SESSION["username"]))
<body>
<button id="back_button" onclick="move('./index.php', true)">&#8701;</button>
<div id="main_panel">
<div id="side_panel">
A
<div id="upper_panel">
<?php
include("./res/global.php");
$out = $database -> query("SELECT username, admin FROM user WHERE username=\"" . $_SESSION["username"] . "\" AND admin=\"1\"");
if ($out -> num_rows == 1)
{
echo '<img onclick="" src="./res/forum/images/admin.png" alt="Tlačítko adminského panelu">';
}
?>
<img onclick="" src="./res/forum/images/user.png" alt="Tlačítko nastavení profilu">
<img onclick="" src="./res/forum/images/home.png" alt="Tlačítko domovské stránky">
</div>
</div>
</body>