From 27a6a4bf7cce7d18c28a2bd479b393137530e5e5 Mon Sep 17 00:00:00 2001 From: Bruno Eckhardt Date: Mon, 16 Feb 2026 09:51:16 +0100 Subject: [PATCH] fixes --- WEBROOT/controller/DataController.php | 4 + WEBROOT/controller/RoutesController.php | 48 ++-- WEBROOT/services/services_control.php | 315 +++++++++++++++++------- 3 files changed, 253 insertions(+), 114 deletions(-) diff --git a/WEBROOT/controller/DataController.php b/WEBROOT/controller/DataController.php index c760b75..bb4d937 100644 --- a/WEBROOT/controller/DataController.php +++ b/WEBROOT/controller/DataController.php @@ -50,6 +50,10 @@ class getSpecificData { return $_SERVER['HTTP_REFERER'] ?? 'Unbekannt'; } + public function getWebsite(): string { + return $_SERVER['HTTP_HOST'] ?? 'Unbekannt'; + } + public function getDatabase(): string { $conn = db_connect(); return $conn->host_info; diff --git a/WEBROOT/controller/RoutesController.php b/WEBROOT/controller/RoutesController.php index 51e3d46..a163da9 100644 --- a/WEBROOT/controller/RoutesController.php +++ b/WEBROOT/controller/RoutesController.php @@ -1,30 +1,30 @@ + Admin Site Control +
-
-
-

🔐 Login

- - -
-
+
+
+

🔐 Login

+ + +
+
-
-
+
+
-
- -

📦 Sidebar Gruppen

-
- $group): ?> -
-
ID:
- - + + +

📦 Sidebar Gruppen

+
+ $group): ?> +
+
ID:
- + +
+ +
-

🖥 Sidebar Services

-
- $s): ?> -
-
Datei: .php
- - - - | - +

🖥 Sidebar Services

+
+ $s): ?> +
+
Datei: + .php
+ + + + | + +
+ +
+ +

🎨 Dashboard Kategorien

+
+ $lg): ?> +
+
ID:
- + + +
+ +
-

🎨 Dashboard Kategorien

-
- $lg): ?> -
-
ID:
- - - +

🔘 Dashboard Kacheln

+
+ $btn): ?> +
+ + + + +
+ | +
-
+ +
-

🔘 Dashboard Kacheln

-
- $btn): ?> -
- - - - -
- | - -
-
- -
- -
- -
+
+ +
@@ -216,26 +349,25 @@ unset($_SESSION['status_message']); const card = document.createElement('div'); card.className = 'admin-card new-item'; - let html = `
Neu hinzufügen
`; + let html = + `
Neu hinzufügen
`; if (type === 'serviceGroup') { - html += ` + html += + ` `; - } - else if (type === 'service') { + } else if (type === 'service') { html += ` `; - } - else if (type === 'linkGroup') { + } else if (type === 'linkGroup') { html += ` `; - } - else if (type === 'linkButton') { + } else if (type === 'linkButton') { html += `