From c249c8e0492c598d5c4bc9a30c61af34307128af Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Sun, 19 Apr 2026 12:21:48 +0200 Subject: [PATCH] commented index.php --- public/index.php | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/public/index.php b/public/index.php index a5bc9fa..30d32fd 100644 --- a/public/index.php +++ b/public/index.php @@ -1,16 +1,16 @@ prepare("SELECT * FROM municipalities WHERE slug = :slug"); @@ -18,42 +18,46 @@ $stmt->execute([':slug' => 'lohne']); $municipality = $stmt->fetch(); if (!$municipality) { - die("Municipality not found."); + http_response_code(404); + echo "

404 — Municipality not listed in Database.

"; + exit; } + ?> - Bürgerbeteiligung <?= htmlspecialchars($municipality['name']) ?> - + Bürgerbeteiligungsportal <?= htmlspecialchars($municipality['name']) ?> + + - + - + - + - + - + - + - + @@ -306,7 +310,7 @@ if (!$municipality) { - +