v1.3.1 - PDF Download auch als Member

This commit is contained in:
Borgal
2025-11-19 01:24:38 +01:00
parent 358a73f16f
commit 2046d80c9b

View File

@@ -2,13 +2,6 @@
include('inc/check_login.php'); include('inc/check_login.php');
include('inc/db.php'); include('inc/db.php');
// 🔒 Nur Admins dürfen diese Seite sehen
if ($_SESSION['role'] !== 'admin') {
$_SESSION['error_message'] = "Zugriff verweigert.";
header("Location: index.php");
exit;
}
// 🔹 Pfad zum Backup-Ordner (relativ zum Projekt) // 🔹 Pfad zum Backup-Ordner (relativ zum Projekt)
$backup_dir = __DIR__ . '/backups/'; $backup_dir = __DIR__ . '/backups/';
$backup_url = 'backups/'; // öffentliche URL $backup_url = 'backups/'; // öffentliche URL