12 lines
274 B
PHP
12 lines
274 B
PHP
|
<?php
|
||
|
include('../config.php');
|
||
|
function reRol(){
|
||
|
if(isset($_SESSION["lastRol"])){
|
||
|
$_SESSION["rol"] = $_SESSION["lastRol"];
|
||
|
unset($_SESSION["lastRol"]);
|
||
|
}
|
||
|
}
|
||
|
reRol();
|
||
|
$redirect = ROUTE_APP.'panel_'.$_SESSION['rol'];
|
||
|
header("Location: {$redirect}");
|
||
|
?>
|