-
Notifications
You must be signed in to change notification settings - Fork 10
/
logout.php
44 lines (44 loc) · 1.38 KB
/
logout.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
44
<?php
session_start();
if(isset($_SESSION['id'])){
$destroyed = session_destroy();
}
else{
header("Location:index.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dental: Salida del Sistema</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
<?php include('includes/styles.php');?>
<?php include('includes/jquery.php');?>
</head>
<body>
<div id="header">
<div class="center"><a href="index.php"><img alt="logo" src="images/logo.png" /></a></div>
</div>
<div id="outer-wrapper">
<div class="center">
<?php
if($destroyed){
?>
<img alt="success" src="images/success.png" />
<p class="center success">Sesión finalizada satisfactoriamente<br />Haga clic <a href="index.php">aqui</a> para volver a ingresar al sistema</p>
<?php
}
else{
?>
<img alt="warning" src="images/warning.png" />
<p class="center warning">Error al finalizar la sesión</p>
<p>Regrese al <a href="menu.php">menú principal</a> e intente salir de nuevo del sistema</p>
<p>Si el problema persiste comuníquese con el administrador del sistema</p>
<?php
}
?>
</div>
</div>
</body>
</html>