2021-05-18 09:20:24 +02:00
|
|
|
<?php
|
|
|
|
include('../config.php');
|
|
|
|
function reRol(){
|
|
|
|
if(isset($_SESSION["lastRol"])){
|
|
|
|
$_SESSION["rol"] = $_SESSION["lastRol"];
|
|
|
|
unset($_SESSION["lastRol"]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
reRol();
|
2021-05-18 09:59:53 +02:00
|
|
|
$redirect = ROUTE_APP.'panel_'.$_SESSION['rol'];
|
|
|
|
header("Location: {$redirect}");
|
2021-05-18 10:17:46 +02:00
|
|
|
?>
|