dev auf main #68
@@ -2,9 +2,7 @@
|
|||||||
if (session_status() === PHP_SESSION_NONE) {
|
if (session_status() === PHP_SESSION_NONE) {
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
include_once "php/controller/index-controller.php";
|
||||||
include_once("php/controller/index-controller.php");
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
@@ -38,7 +36,7 @@ include_once("php/controller/index-controller.php");
|
|||||||
<?php
|
<?php
|
||||||
include_once 'includes/navbar.php';
|
include_once 'includes/navbar.php';
|
||||||
|
|
||||||
// Dynamischer Inhalt (Absolut sicher durch die obige Prüfung)
|
// Dynamischer Inhalt (Nutzt das geprüfte $pfad aus dem Index-Controller)
|
||||||
if (isset($pfad) && $pfad !== "404" && file_exists('content/' . $pfad . '.php')) {
|
if (isset($pfad) && $pfad !== "404" && file_exists('content/' . $pfad . '.php')) {
|
||||||
include_once 'content/' . $pfad . '.php';
|
include_once 'content/' . $pfad . '.php';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user