pour prod
This commit is contained in:
17
index.php
Normal file
17
index.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user