check_admin hinzugefügt

This commit is contained in:
Borgal
2025-08-13 17:50:38 +02:00
parent 6b5ff9b381
commit b126c5f044
4 changed files with 10 additions and 11 deletions

View File

@@ -1,12 +1,8 @@
<?php
include('../inc/check_login.php');
include('../inc/check_admin.php');
require_once('../inc/db.php');
// Nur Admins haben Zugriff
if ($_SESSION['role'] !== 'admin') {
die("Zugriff nur für Admins");
}
$message = '';
$message_type = '';
$edit_mode = false;