CIM58 - Userflow - extended

This commit is contained in:
“VeLiTi”
2024-04-02 09:46:09 +02:00
parent 8c5fdd92f7
commit aabfd7ce7f
5 changed files with 17 additions and 3 deletions

View File

@@ -10,7 +10,10 @@ if (debug && debug_id == $_SESSION['id']){
include_once './assets/functions.php';
include_once './settings/settings.php';
$page = 'account';
//SET ORIGIN FOR NAVIGATION
$_SESSION['prev_origin'] = $_SERVER['REQUEST_URI'];
$page = $_SESSION['origin'] = 'account';
//Check if allowed
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
header('location: index.php');