Upload via GUI (267 Dateien)

This commit is contained in:
2026-10-19 18:06:00 +00:00
parent c800be9693
commit 51656d6578
13 changed files with 516 additions and 54 deletions
+2 -1
View File
@@ -20,8 +20,9 @@ $menu = reset($registered);
if ($menu['permission'] !== null && !has_permission($staff, $menu['permission'])) { http_response_code(403); exit('Keine Berechtigung.'); }
$pageTitle = $menu['label'];
$activePage = 'plugin_' . $slug;
$activePage = !empty($menu['belongs_to']) ? (string) $menu['belongs_to'] : 'plugin_' . $slug; // Reiter-Seiten markieren die übergeordnete Seite (zum Beispiel „Backup“)
require __DIR__ . '/_header.php';
if (!empty($menu['belongs_to'])) echo plugin_subpage_tabs((string) $menu['belongs_to'], $staff, $slug . ':' . $page);
plugin_guard($slug, function () use ($file, $staff, $pdo) {
// Variablen für die Plugin-Seite: $staff, $pdo
include $file;