accounting modules

This commit is contained in:
Thanakorn S
2026-05-13 15:11:24 +07:00
parent 511360faa2
commit 04a683bd02
70 changed files with 4451 additions and 42 deletions
+5 -2
View File
@@ -2,9 +2,12 @@
require '../session.php';
require '../config.php';
require '../include_header.php';
// successful login
// successful login — redirect based on app_access
if(!empty($_SESSION["login_status"])){
header('Location: '.$server_url.'dashboard/index.php');
$redirect = ($_SESSION['login_app_access'] ?? 'wms') === 'accounting'
? $server_url . 'ac_dashboard/index.php'
: $server_url . 'dashboard/index.php';
header('Location: ' . $redirect);
exit;
}