Update index.php

This commit is contained in:
2026-06-01 23:54:05 +02:00
parent 38608a5278
commit 4e06240307
+9 -3
View File
@@ -61,14 +61,20 @@ if ($pfad === "deleteAccount") {
Dynamischer Inhalt: Dynamischer Inhalt:
Je nach pfad-Parameter wird die passende Datei aus content geladen. Je nach pfad-Parameter wird die passende Datei aus content geladen.
*/ */
if (file_exists('content/' . $pfad . '.php')) { if (isset($_GET["pfad"])) {
include_once 'content/' . $pfad . '.php'; if (file_exists('/content/' . $_GET["pfad"] . '.php')) {
include_once '/content/' . $_GET["pfad"] . '.php';
} else { } else {
include_once 'content/404.php'; include_once '/content/404.php';
} }
} else {
include_once '/content/home.php';
}
include_once 'includes/footer.php'; include_once 'includes/footer.php';
?> ?>
</body> </body>
</html> </html>