Update and rename reRol.php to resetRol.php

This commit is contained in:
Fernando Méndez
2021-05-18 09:59:53 +02:00
committed by GitHub
parent 1b39920abd
commit 23ed01c8d9

View File

@ -0,0 +1,12 @@
<?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}");
?>