pertama dan terakhir

This commit is contained in:
Tazyeuu
2026-06-10 22:07:47 +07:00
commit cd376094df
143 changed files with 12090 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
require_once __DIR__ . '/config/session.php';
startAppSession();
if (isset($_SESSION['user_id'])) {
if ($_SESSION['role'] === 'admin') {
header('Location: admin/index.php');
} else {
header('Location: user/index.php');
}
exit;
}
header('Location: login.php');
exit;