This commit is contained in:
thaaoblues 2024-09-13 15:00:34 +02:00
parent 7b29e4194b
commit d8fc125307

View file

@ -1,5 +1,7 @@
<?php
session_start();
// Check if user is logged in and is an admin
if (!isset($_SESSION["utilisateur_authentifie"]) || $_SESSION["utilisateur_authentifie"] !== true || !$_SESSION["admin"]) {
header("Location: index.php");