pour prod

This commit is contained in:
Loic Masi
2026-08-07 16:13:43 +02:00
commit 5fbf76868f
157 changed files with 24085 additions and 0 deletions

17
role.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
require_once __DIR__ . '/app/autoload.php';
use App\Controllers\RoleController;
try {
$pdo = require __DIR__ . '/app/bootstrap.php';
(new RoleController($pdo))->index();
} catch (Throwable $e) {
http_response_code(500);
echo '<!doctype html><html lang="fr"><meta charset="utf-8"><title>Erreur PTA</title>';
echo '<body style="font-family:Arial,sans-serif;padding:32px;max-width:900px;margin:auto">';
echo '<h1>Impossible douvrir la sélection du rôle</h1><p>' . htmlspecialchars($e->getMessage(), ENT_QUOTES, 'UTF-8') . '</p></body></html>';
}