11 lines
241 B
PHP
11 lines
241 B
PHP
<?php
|
|
require_once __DIR__ . '/config/session.php';
|
|
require_once __DIR__ . '/config/auth_check.php';
|
|
startAppSession();
|
|
if (isLoggedIn()) {
|
|
header('Location: ' . roleHome(currentRole()));
|
|
exit;
|
|
}
|
|
header('Location: login.php');
|
|
exit;
|