File manager - Edit - /home/webapp69.cm.in.th/u69319090029/Project SME/dashboard.php
Back
<?php /** * CMTC Solution - Smart Dashboard Router * Routes logged in users to their respective separate dashboard files: * - Super Admin -> platform-admin.php * - Store Admin -> store-admin.php */ header('Content-Type: text/html; charset=utf-8'); require_once 'db.php'; if (session_status() === PHP_SESSION_NONE) { session_start(); } if (!empty($_SESSION['super_admin_logged_in']) && $_SESSION['super_admin_logged_in'] === true) { header("Location: platform-admin.php"); exit; } if (!empty($_SESSION['shop_admin_id']) || (!empty($_SESSION['role']) && $_SESSION['role'] === 'store_admin')) { header("Location: store-admin.php"); exit; } header("Location: login.php"); exit; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.23 |
proxy
|
phpinfo
|
Settings