Add files via upload
This commit is contained in:
12
assets/php/common/resetRol.php
Normal file
12
assets/php/common/resetRol.php
Normal 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}");
|
||||
?>
|
Reference in New Issue
Block a user