-
Notifications
You must be signed in to change notification settings - Fork 1
/
cuenta.php
40 lines (34 loc) · 992 Bytes
/
cuenta.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
<?php
require_once ("includes/config.php");
$formL = new es\ucm\fdi\aw\FormularioLogin();
$htmlFormLogin = $formL->gestiona();
$formR = new es\ucm\fdi\aw\FormularioRegistro();
$htmlFormRegistro = $formR->gestiona();
$tituloPagina = "Cuenta - ";
/* VARIABLES PARA DEJAR MARCADO EL MENU */
$menuArtistas = "";
$menuExpos = "";
$menuTienda = "";
$menuEventos = "";
$menuCuenta = "active";
$contenidoPrincipal = "";
if (isset($_SESSION["login"]) && $_SESSION["login"]) {
if (isset($_SESSION["esAdmin"]) && $_SESSION["esAdmin"]) {
header('Location: general_admin.php');
}
elseif (isset($_SESSION["esArtist"]) && $_SESSION["esArtist"]) {
header('Location: general_artist.php');
}
else{
header('Location: general_user.php');
}
} else {
/*$contenidoPrincipal .= <<<EOS
<a href="login.php"><h1>INICIA SESIÓN</h1></a>
<a href="signup.php"><h1>REGÍSTRATE</h1></a>
EOS;*/
$contenidoPrincipal .= <<<EOS
Tu sesión ha caducado
EOS;
}
require ("includes/plantillas/layout1.php");