Upload via GUI (267 Dateien)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user