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.
38 lines
870 B
38 lines
870 B
<?php
|
|
session_start();
|
|
include("init.php");
|
|
|
|
?>
|
|
<!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>
|
|
</head>
|
|
<body>
|
|
<h1>Návštěvní kniha</h1>
|
|
|
|
<?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>";
|
|
}
|
|
|
|
?>
|
|
|
|
</body>
|
|
</html>
|