mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
admin: merge acces-etudiante+file-access into acces.php, absorb system.php into parametres.php
This commit is contained in:
@@ -1,19 +1,4 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../../bootstrap.php';
|
||||
require_once __DIR__ . '/../../src/AdminAuth.php';
|
||||
require_once __DIR__ . '/../../src/ShareLink.php';
|
||||
|
||||
App::adminGuard();
|
||||
|
||||
$shareLink = ShareLink::make();
|
||||
$links = $shareLink->listAll();
|
||||
|
||||
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
|
||||
$baseUrl = $protocol . '://' . ($_SERVER['HTTP_HOST'] ?? 'localhost');
|
||||
$pageTitle = 'Accès étudiant·e';
|
||||
$isAdmin = true;
|
||||
$bodyClass = 'admin-body';
|
||||
require_once APP_ROOT . '/templates/head.php';
|
||||
include APP_ROOT . '/templates/header.php';
|
||||
include APP_ROOT . '/templates/admin/acces-etudiante.php';
|
||||
require_once APP_ROOT . '/templates/admin/footer.php';
|
||||
// Redirects legacy /admin/acces-etudiante.php → /admin/acces.php
|
||||
header('Location: /admin/acces.php', true, 301);
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user