50 lines
1.5 KiB
PHP
50 lines
1.5 KiB
PHP
<?php
|
|
session_start();
|
|
|
|
if (!isset($_SESSION["username"]))
|
|
{
|
|
header("Location: ./index.php");
|
|
return;
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="cs">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="icon" type="image/x-icon" href="http://109.123.243.163/fht/favicon.ico">
|
|
|
|
<meta name="author" content="Smejkal, Suljakovic, Somr">
|
|
<meta name="description" content="Průvodce Hrádeckou Fabrikou">
|
|
<meta name="keywords" content="Foto, Old, Abandoned, Creepy, Panorama">
|
|
|
|
<script src="./res/global.js"></script>
|
|
<link rel="stylesheet" href="./res/global.css">
|
|
|
|
<link rel="stylesheet" href="./res/forum/style.css">
|
|
|
|
<title>Fabrika Hrádek Tour</title>
|
|
</head>
|
|
<body>
|
|
<button id="back_button" onclick="move('./index.php', true)">⇽</button>
|
|
<div id="main_panel">
|
|
<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>
|
|
</html>
|