diff --git a/partials/structure/layout_start.php b/partials/structure/layout_start.php index abcece6..8d8c348 100644 --- a/partials/structure/layout_start.php +++ b/partials/structure/layout_start.php @@ -11,6 +11,21 @@ $childGender = $_SESSION['child_gender_summary'] ?? ''; // 'male' | 'female' | ' if (!in_array($childGender, ['male', 'female', 'mixed'], true)) { $childGender = ''; } + +$debugEnabled = defined('APP_DEBUG') && APP_DEBUG === true; +$debugFiles = []; +if ($debugEnabled) { + $debugDir = __DIR__ . '/../../debug'; + if (is_dir($debugDir)) { + foreach (scandir($debugDir) as $f) { + if ($f === '.' || $f === '..') continue; + $path = $debugDir . '/' . $f; + if (is_file($path)) { + $debugFiles[] = $f; + } + } + } +} ?> @@ -24,3 +39,63 @@ if (!in_array($childGender, ['male', 'female', 'mixed'], true)) {
+ + + + +Keine Logs in /debug/ gefunden.
+ + +Log auswählen, um Inhalt zu sehen.