Files
D1041231073-WebGISPovertyMap/project_final/index.php
T
2026-06-10 22:07:47 +07:00

14 lines
304 B
PHP

<?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;