From 4e06240307968a76e236ea00f0da779b02ed3845 Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Mon, 1 Jun 2026 23:54:05 +0200 Subject: [PATCH] Update index.php --- index.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 733ac92..67bb8c6 100644 --- a/index.php +++ b/index.php @@ -61,14 +61,20 @@ if ($pfad === "deleteAccount") { Dynamischer Inhalt: Je nach pfad-Parameter wird die passende Datei aus content geladen. */ - if (file_exists('content/' . $pfad . '.php')) { - include_once 'content/' . $pfad . '.php'; + if (isset($_GET["pfad"])) { + if (file_exists('/content/' . $_GET["pfad"] . '.php')) { + include_once '/content/' . $_GET["pfad"] . '.php'; + } else { + include_once '/content/404.php'; + } } else { - include_once 'content/404.php'; + include_once '/content/home.php'; } + include_once 'includes/footer.php'; ?> +