From 101a2a247b13e7162de5355f332f655a05e05f68 Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Sat, 18 Jul 2026 16:08:05 +0200 Subject: [PATCH] Update index-controller.php --- php/controller/index-controller.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/php/controller/index-controller.php b/php/controller/index-controller.php index 853c015..acca836 100644 --- a/php/controller/index-controller.php +++ b/php/controller/index-controller.php @@ -18,18 +18,24 @@ if (!in_array($pfad, $erlaubte_content_seiten)) { // Controller laden if ($pfad === "login") { include_once "php/controller/login-controller.php"; -} elseif ($pfad === "register") { +} +if ($pfad === "register") { include_once "php/controller/register-controller.php"; -} elseif ($pfad === "password-forgotten") { +} +if ($pfad === "password-forgotten") { include_once "php/controller/password-forgotten-controller.php"; -} elseif ($pfad === "confirm-register") { +} +if ($pfad === "confirm-register") { include_once "php/controller/confirm-register-controller.php"; -} elseif ($pfad === "confirm-password") { +} +if ($pfad === "confirm-password") { include_once "php/controller/confirm-password-controller.php"; -} elseif ($pfad === "logout") { +} +if ($pfad === "logout") { include_once "php/controller/logout-controller.php"; exit(); -} elseif ($pfad === "deleteAccount") { +} +if ($pfad === "deleteAccount") { include_once "php/controller/deleteAccount-controller.php"; exit(); }