weitere anpassung von index.php
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user