From 8ed62b86bc41a2925cd3fd6c939248885c36e02d Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Mon, 16 Mar 2026 21:50:31 +0100 Subject: [PATCH] Set default template name in Renderer class and updated imprint.html with official registration and tax identification numbers. --- include/renderer.php | 4 ++-- templates/imprint.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/renderer.php b/include/renderer.php index 1cc50ec..362117c 100644 --- a/include/renderer.php +++ b/include/renderer.php @@ -8,7 +8,7 @@ use Webklex\PHPIMAP\Client; require 'vendor/autoload.php'; class Renderer { - protected string $templateName; + protected string $templateName = 'index'; private array $menuItems = []; protected array $internalMenuItems = []; protected $hiddenCount = 0; @@ -48,7 +48,7 @@ class Renderer { $scriptName = $this->getScriptName(); if (!in_array($scriptName, array_merge($this->menuItems, $this->internalMenuItems))) { header('Location: /', true, 301); - return; + exit; } $this->templateName = $templateName ?: (!in_array($scriptName, ['ffajs', 'fvajs', '', '/']) ? $scriptName : 'index'); $this->connectDb(); diff --git a/templates/imprint.html b/templates/imprint.html index 14bee8c..be70690 100644 --- a/templates/imprint.html +++ b/templates/imprint.html @@ -11,5 +11,5 @@ Tel: xxx-xxxxxxx

Amtliche Informationen

Registergericht: Amtsgericht Frankfurt a.M., Gerichtsstraße 2, 60313 Frankfurt am Main
-Vereinsregisternummer:
-Umsatzsteueridentifkationsnummer:
+Vereinsregisternummer: 13422
+Umsatzsteueridentifkationsnummer: 4525075625