This repository was archived by the owner on Apr 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathclose.php
More file actions
48 lines (43 loc) · 1.47 KB
/
Copy pathclose.php
File metadata and controls
48 lines (43 loc) · 1.47 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?
/* ===========================
sabros.us monousuario version 1.8
http://sabros.us/
sabros.us is a free software licensed under GPL (General public license)
=========================== */
include("include/config.php");
include("include/conex.php");
include("include/functions.php");
if(!esAdmin())
{
header("Location: index.php");
exit();
}
$_SESSION = array();
setcookie("pass_sabrosus_cookie","",time()-1);
unset($_COOKIE[session_name()]);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$locale;?>" lang="<?=$locale;?>">
<head>
<title><?=__("terminar sesión");?>/sabros.us</title>
<meta name="generator" content="sabros.us <?=version();?>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="refresh" content="3;URL=index.php" />
<link rel="stylesheet" href="<?=$Sabrosus->sabrUrl?>/sabor.css" type="text/css" />
<link rel="shortcut icon" href="<?=$Sabrosus->sabrUrl?>/images/sabrosus_icon.png" />
</head>
<body>
<div id="pagina">
<div id="titulo">
<h2>sabros.us/<span><?=__("terminar sesión");?></span></h2>
</div>
<div id="contenido">
<? if (session_destroy()) { ?>
<h3><?=__("Terminando sesión...");?></h3>
<? } else { ?>
<h3><?=__("Ha ocurrido un error.");?></h3>
<? } ?>
</div>
</div>
</body>
</html>