weitere anpassung von index.php

This commit is contained in:
rirat-0
2026-06-02 13:24:17 +02:00
parent f04d8fecd3
commit 016193de07
+5 -6
View File
@@ -5,6 +5,11 @@ if (!isset($abs_path)) {
require_once "path.php"; require_once "path.php";
} }
require_once $abs_path . "/php/controller/index-controller.php"; require_once $abs_path . "/php/controller/index-controller.php";
if (isset($_GET["pfad"]) && $_GET["pfad"] === "search-results") {
require_once $abs_path . "/php/controller/search-results-controller.php";
}
?> ?>
<!-- <!--
@@ -37,12 +42,6 @@ require_once $abs_path . "/php/controller/index-controller.php";
//Dynamischer Inhalt: //Dynamischer Inhalt:
if (isset($_GET["pfad"])) { if (isset($_GET["pfad"])) {
if ($_GET["pfad"] === "search-results") {
if (file_exists($abs_path . '/php/controller/search-results-controller.php')) {
include_once $abs_path . '/php/controller/search-results-controller.php';
}
}
if (file_exists($abs_path . '/content/' . $_GET["pfad"] . '.php')) { if (file_exists($abs_path . '/content/' . $_GET["pfad"] . '.php')) {
include_once $abs_path . '/content/' . $_GET["pfad"] . '.php'; include_once $abs_path . '/content/' . $_GET["pfad"] . '.php';
} else { } else {