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>
|
<body>
|
||||||
<button id="back_button" onclick="move('./index.php', true)">⇽</button>
|
<button id="back_button" onclick="move('./index.php', true)">⇽</button>
|
||||||
<div id="main_panel">
|
<div id="main_panel">
|
||||||
<div id="side_panel">
|
<div id="upper_panel">
|
||||||
A
|
<?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>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user