18 lines
377 B
PHP
18 lines
377 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require_once __DIR__ . '/app/autoload.php';
|
|
|
|
use App\Core\Access;
|
|
|
|
try {
|
|
$pdo = require __DIR__ . '/app/bootstrap.php';
|
|
$access = new Access($pdo);
|
|
header('Location: ' . ($access->isConfigured() ? $access->homeUrl() : 'role.php'), true, 302);
|
|
exit;
|
|
} catch (Throwable) {
|
|
header('Location: role.php', true, 302);
|
|
exit;
|
|
}
|