forked from thalesghinis/dogg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathareaRestrita.php
More file actions
30 lines (25 loc) · 749 Bytes
/
Copy pathareaRestrita.php
File metadata and controls
30 lines (25 loc) · 749 Bytes
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
<?php
session_start();
if ($_SESSION["logado"] !== true) {
echo "<img src='http://d26lpennugtm8s.cloudfront.net/stores/326/795/products/design-sem-nome1-7c696f2c6443e3bdbb15303050985851-640-0.jpg'>";
exit;
}
if (isset($_REQUEST["logout"]) && $_REQUEST["logout"]) {
session_destroy();
header("location: login.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Olá <?= $_SESSION["nome"] ?>, bem vindo!</h1>
O seu e-mail é <?= $_SESSION["email"] ?>
<a href="areaRestrita.php?logout=1">SAIR</a>
</body>
</html>