This commit is contained in:
Tower committed 2026-01-26 17:47:08 +01:00
1 parent 0a1bdab8d2
commit 76688d0efc
2 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -2,6 +2,6 @@
$services = [
'request_logs' => ['name' => 'Request Logs', 'active' => true],
'request_chart' => ['name' => 'Request Statics', 'active' => true],
'services_control' => ['name' => 'Services Control', 'active' => true],
'services_control' => ['name' => 'Site Control', 'active' => true],
];
?>
+11 -11
View File
@@ -1,14 +1,15 @@
<?php
include 'config.php';
include_once './controller/CookieController.php';
include_once './controller/DatabaseConnect.php';
include_once './controller/DatabaseController.php';
include_once './controller/DataController.php';
include_once './controller/LogController.php';
// include_once './controller/RoutesController.php';
include_once './controller/UserController.php';
include 'controller/CookieController.php';
include 'controller/DatabaseConnect.php';
include 'controller/DatabaseController.php';
include 'controller/DataController.php';
include 'controller/LogController.php';
include 'controller/UserController.php';
// include 'controller/RoutesController.php';
session_start();
// Bestimme ausgewählten Service (default = erster aktiver Service)
$selectedService = null;
foreach ($services as $key => $service) {
if ($service['active']) {
@@ -26,13 +27,13 @@ if (isset($_GET['service']) && isset($services[$_GET['service']]) && $services[$
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Service Website</title>
<title>Backend</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
Meine Services
Backend
<button id="darkModeToggle">🌙 Dark Mode</button>
</header>
<div class="main">
@@ -62,7 +63,6 @@ if (isset($_GET['service']) && isset($services[$_GET['service']]) && $services[$
const toggle = document.getElementById('darkModeToggle');
const body = document.body;
// Prüfen, ob Dark Mode vorher aktiviert war
if (localStorage.getItem('darkMode') === 'enabled') {
body.classList.add('dark-mode');
}