-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
43 lines (41 loc) · 1.3 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
session_start("LOGIN");
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SiteSegurança</title>
</head>
<body>
<div>
<?php if(isset($_SESSION['id_user'])):?>
Olá <?=$_SESSION['nome']?>.
<?php endif;?>
</div>
<?php
if(isset($_SESSION['id_user']) && $_SESSION['id_user'] != ""){?>
<p>Menu</p>
<ul>
<li><a href="?menu=info">Senhas Gravadas</a></li>
<li><a href="?menu=users">Usuarios registrados</a></li>
</ul>
<div id="content">
<?php
if(isset($_GET['menu'])){
if($_GET['menu'] == "info")
include_once 'paginas/CRUD_INFO/read_info.php';
elseif($_GET['menu'] == "users")
include_once 'paginas/CRUD_USER/read_user.php';
else
echo "<div> Menu não existe.</div>";
}
?>
</div>
<?php }
else{
include_once 'paginas/form_login.php';
}
?>
</body>
</html>