-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexcepcion.php
More file actions
50 lines (42 loc) · 1.14 KB
/
Copy pathexcepcion.php
File metadata and controls
50 lines (42 loc) · 1.14 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
49
50
<?php
session_start();
$excepcion = $_SESSION["excepcion"];
unset($_SESSION["excepcion"]);
if (isset ($_SESSION["destino"])) {
$destino = $_SESSION["destino"];
unset($_SESSION["destino"]);
} else
$destino = "";
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- Hay que indicar el fichero externo de estilos -->
<link rel="stylesheet" type="text/css" href="css/excepcion.css" />
<script type="text/javascript" src="./js/boton.js"></script>
<title>Soelse: ¡Se ha producido un problema!</title>
</head>
<body>
<?php
include_once("/cabecera.php");
?>
<main id="bodyerror">
<div>
<h2>Ups!</h2>
<?php if ($destino<>"") { ?>
<p>Ocurrió un problema durante el procesado de los datos. Pulse <a href="<?php echo $destino ?>">aquí</a> para volver a la página principal.</p>
<?php } else { ?>
<p>Ocurrió un problema para acceder a la base de datos. </p>
<?php } ?>
</div>
<div class='excepcion'>
<?php echo "Información relativa al problema: $excepcion"; ?>
</div>
</main>
<?php
include_once("/pie.php");
?>
</body>
</html>