-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
34 lines (29 loc) · 1.15 KB
/
index.php
File metadata and controls
34 lines (29 loc) · 1.15 KB
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
<!-- Autor: Thiago de Moura Machado -->
<!DOCTYPE html>
<?php
session_start();
if (isset($_SESSION['logadoN']) && $_SESSION['logadoN'] == true) {
echo $_SESSION['usuarioN'] . " | " . $_SESSION['emailN'];
echo " | <button onclick=" . "location.href='controller/logout.php'" . ">Sair</button>";
} else {
header("Location: view/login.php");
}
?>
<html>
<head>
<meta charset="UTF-8">
<title>Página Inicial - Trabalhando com BD e PDO</title>
<link rel="stylesheet" type="text/css" href="estilos.css">
</head>
<body>
<h1>Página Inicial</h1>
<img src="img/home.jpg">
<br>
<br>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 14px;">Utilize o botão abaixo para se cadastrar.</p>
<button onclick="location.href='view/cadUsuario.php'" style="padding:10px; border-radius:5px; border: 1px solid; background-color: darkslateblue; color: white; cursor: pointer; width: 200px;">Cadastro de Usuário</button>
<br>
<br>
<input type="button" value="Lista de Usuários" onclick="location.href='view/listaUsuarios.php'" style="background-color: darkslateblue; color: white; cursor: pointer; width: 200px;"/>
</body>
</html>