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(); }