added buttons to forum
This commit is contained in:
parent
099d6027c5
commit
6668bc66fa
16
forum.php
16
forum.php
@ -29,8 +29,20 @@ if (!isset($_SESSION["username"]))
|
||||
<body>
|
||||
<button id="back_button" onclick="move('./index.php', true)">⇽</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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user