-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogoutView.php
executable file
·43 lines (43 loc) · 1.12 KB
/
logoutView.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
$Cancelar = null;
$Sair = null;
if (! empty($_POST)) {
$Sair = $_POST['Sair'];
$Cancelar = $_POST['Cancelar'];
if ($Sair == "Sair") {
$_SESSION['login'] = false;
header("location:logout.php");
exit();
} else {
if ($Cancelar == "Cancelar") {
header("location: index.php");
}
return;
}
}
?>
<!Doctype html>
<html lang="pt-br">
<head>
<title>Área de Logout</title>
<meta charset="utf8">
<link rel="stylesheet" href="application/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="css/layoutPadrao.css">
<link rel="stylesheet" href="css/estilo2.css">
</head>
<body class="bg-color-rosa">
<form id="logout" action="" method="post" class="panel panel-warning">
<div class="panel-heading">
<h3>Acesso Restrito - Deslogar mesmo?</h3>
</div>
</br>
<div class="panel-body">
<div class="form-group" style="postion: absolute; margin-left: 30%;">
<input type="submit" name="Sair" class="btn btn-success"
value="Sair"> <input type="submit" name="Cancelar"
class="btn btn-success" value="Cancelar">
</div>
</div>
</form>
</body>
</html>