mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
admin: merge acces-etudiante+file-access into acces.php, absorb system.php into parametres.php
This commit is contained in:
@@ -1,20 +1,4 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../../bootstrap.php';
|
||||
require_once __DIR__ . '/../../src/AdminAuth.php';
|
||||
AdminAuth::requireLogin();
|
||||
|
||||
require_once APP_ROOT . '/src/Controllers/FileAccessController.php';
|
||||
|
||||
$controller = FileAccessController::create();
|
||||
$vars = $controller->handle();
|
||||
extract($vars);
|
||||
|
||||
$pageTitle = 'Demandes d\'accès aux fichiers';
|
||||
$isAdmin = true;
|
||||
$bodyClass = 'admin-body';
|
||||
|
||||
require_once APP_ROOT . '/templates/head.php';
|
||||
include APP_ROOT . '/templates/header.php';
|
||||
echo '<link rel="stylesheet" href="/assets/css/file-access.css">';
|
||||
include APP_ROOT . '/templates/admin/file-access.php';
|
||||
require_once APP_ROOT . '/templates/admin/footer.php';
|
||||
// Redirects legacy /admin/file-access.php → /admin/acces.php
|
||||
header('Location: /admin/acces.php', true, 301);
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user