available() || $ownerKey === '') { echo '
Integrationssystem nicht verfügbar.
'; return; } if ($_SERVER['REQUEST_METHOD'] === 'POST') { $action = trim((string) ($_POST['action'] ?? '')); try { if ($action === 'create_integration') { $service->createIntegration($ownerKey, [ 'type' => trim((string) ($_POST['type'] ?? 'generic')), 'name' => trim((string) ($_POST['name'] ?? '')), 'base_url' => trim((string) ($_POST['base_url'] ?? '')), 'visibility' => trim((string) ($_POST['visibility'] ?? 'private')), 'is_active' => isset($_POST['is_active']), 'config' => [ 'notes' => trim((string) ($_POST['notes'] ?? '')), ], ]); $notice = 'Integration angelegt.'; } elseif ($action === 'delete_integration') { $service->deleteIntegration((int) ($_POST['integration_id'] ?? 0), $ownerKey); $notice = 'Integration gelöscht.'; } } catch (\Throwable $exception) { $error = $exception->getMessage(); } } $integrations = $service->listIntegrationsForOwner($ownerKey); $GLOBALS['layout_header_base_title'] = 'Nexus'; $GLOBALS['layout_header_title'] = 'Nexus'; $GLOBALS['layout_header_context'] = 'Integrationen'; $GLOBALS['layout_header_text'] = 'Zentrale Anbindungen an externe Systeme, getrennt vom klassischen Modulsystem.'; ?>

Neue Integration