From e4e267aea9c0ac6dd2de88648c2abcf5b0ec470e Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Thu, 25 Dec 2025 00:08:59 +0100 Subject: [PATCH] cccc --- public/index.php | 23 ++++++++++++++++--- .../{test => retool}/emailtemplate_bridge.php | 0 .../{test => retool}/emailtemplate_sender.php | 0 3 files changed, 20 insertions(+), 3 deletions(-) rename public/page/{test => retool}/emailtemplate_bridge.php (100%) rename public/page/{test => retool}/emailtemplate_sender.php (100%) diff --git a/public/index.php b/public/index.php index 3f114ea..a851cb5 100644 --- a/public/index.php +++ b/public/index.php @@ -39,8 +39,25 @@ if ($uriPath === '' || $uriPath === 'index' || $uriPath === 'index.php') { $target = __DIR__ . '/page/404.php'; } } +// ------------------------------------ +// Layout-Regel +// ------------------------------------ +$skipLayout = false; + +// Beispiel: alles unter /page/raw/* ohne Layout +if (str_starts_with(realpath($target), realpath(__DIR__ . '/page/retool'))) { + $skipLayout = true; +} + +// ------------------------------------ +// Ausgabe +// ------------------------------------ +if (!$skipLayout) { + tpl('layout_start', 'structure'); +} -// Zentrale Ausgabe -tpl('layout_start', 'structure'); require $target; -tpl('layout_end', 'structure'); + +if (!$skipLayout) { + tpl('layout_end', 'structure'); +} \ No newline at end of file diff --git a/public/page/test/emailtemplate_bridge.php b/public/page/retool/emailtemplate_bridge.php similarity index 100% rename from public/page/test/emailtemplate_bridge.php rename to public/page/retool/emailtemplate_bridge.php diff --git a/public/page/test/emailtemplate_sender.php b/public/page/retool/emailtemplate_sender.php similarity index 100% rename from public/page/test/emailtemplate_sender.php rename to public/page/retool/emailtemplate_sender.php