2021-05-26 09:03:02 +02:00
|
|
|
<?php
|
|
|
|
include('../config.php');
|
|
|
|
function reRol(){
|
|
|
|
if(isset($_SESSION["lastRol"])){
|
|
|
|
$_SESSION["rol"] = $_SESSION["lastRol"];
|
|
|
|
unset($_SESSION["lastRol"]);
|
2021-06-03 16:53:11 +02:00
|
|
|
unset($_SESSION["cinema"]);
|
2021-05-26 09:03:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
reRol();
|
|
|
|
$redirect = ROUTE_APP.'panel_'.$_SESSION['rol'];
|
|
|
|
header("Location: {$redirect}");
|
|
|
|
?>
|