2021-03-24 21:43:42 +01:00
|
|
|
<?php
|
|
|
|
header("refresh:4;url=../");
|
2021-04-16 12:55:48 +02:00
|
|
|
|
|
|
|
//General Config File:
|
|
|
|
require_once('../assets/php/config.php');
|
|
|
|
|
|
|
|
//Session:
|
|
|
|
//session_start(); /* Inicializada en config.php */
|
2021-03-24 21:43:42 +01:00
|
|
|
unset($_SESSION);
|
|
|
|
session_destroy();
|
|
|
|
if(!isset($_SESSION["nombre"])){
|
|
|
|
$reply = "<h1>Se ha cerrado la sesión</h1><hr />".
|
|
|
|
"<p>Serás redirigido al inicio en unos segundos.<br />
|
2021-04-16 12:55:48 +02:00
|
|
|
Haz clic <a href='{$prefix}'>aquí</a> si tu navegador no te redirige automáticamente.</p>\n";
|
2021-03-24 21:43:42 +01:00
|
|
|
}
|
|
|
|
else{
|
|
|
|
$reply = "<h1>Ha ocurrido un problema y no hemos podido finalizar la sesión</h1>".
|
|
|
|
"<p>Serás redirigido al inicio en unos segundos.<br />
|
2021-04-16 12:55:48 +02:00
|
|
|
Haz clic <a href='{$prefix}'>aquí</a> si tu navegador no te redirige automáticamente.</p>\n";
|
2021-03-24 21:43:42 +01:00
|
|
|
}
|
|
|
|
|
2021-04-16 12:55:48 +02:00
|
|
|
|
2021-03-24 21:43:42 +01:00
|
|
|
?>
|
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<!--
|
|
|
|
Práctica 2 - Sistemas Web | Grupo D
|
|
|
|
CompluCine - FDI-cines
|
|
|
|
-->
|
|
|
|
<html lang="es">
|
|
|
|
<!-- Head -->
|
|
|
|
<?php
|
|
|
|
$template->print_head();
|
|
|
|
?>
|
|
|
|
<body>
|
|
|
|
<!-- Header -->
|
|
|
|
<?php
|
|
|
|
$template->print_header();
|
|
|
|
?>
|
|
|
|
|
|
|
|
<!-- Main -->
|
|
|
|
<div class="main">
|
|
|
|
<div class="image"><img src="../img/logo_trasparente.png" /></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Reply -->
|
|
|
|
<section class="reply">
|
|
|
|
<div class ="row">
|
|
|
|
<div class="column side"></div>
|
|
|
|
<div class="column middle">
|
|
|
|
<div class="code info">
|
|
|
|
<?php
|
|
|
|
echo $reply;
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column side"></div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Footer -->
|
|
|
|
<?php
|
|
|
|
$template->print_footer();
|
|
|
|
?>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|