You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
<?php
|
|
session_start();
|
|
include("init.php");
|
|
$ptitle = "Návštěvní kniha";
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<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">
|
|
<title>Navštěvní kniha</title>
|
|
<link rel="stylesheet" href="css/bootstrap.css">
|
|
</head>
|
|
<body class="d-flex flex-column min-vh-100">
|
|
<div class="container">
|
|
|
|
<?php
|
|
include "menu.php";
|
|
?>
|
|
|
|
<?php
|
|
if(isset($_SESSION["username"])){
|
|
|
|
echo "<h2> vítej uživateli: ".$_SESSION["username"]."</h2>";
|
|
echo "<h5>username: ".$_SESSION["username"]."</h5>";
|
|
echo "<h5>userid: ".$_SESSION["userid"]."</h5>";
|
|
echo "<h5>role: ".$_SESSION["role"]."</h5>";
|
|
if ($_SESSION["role"] == 1){
|
|
echo "<p>". var_dump($_SESSION). "</p>";
|
|
}
|
|
} else {
|
|
echo "<h2> Prosím přihlaš se </h2>";
|
|
}
|
|
|
|
?>
|
|
</div>
|
|
|
|
<?php
|
|
include "footer.php";
|
|
?>
|
|
<script src="js/bootstrap.bundle.js"></script>
|
|
</body>
|
|
</html>
|