Update index.php
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
if (session_status() === PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
|
||||
include_once("php/controller/index-controller.php");
|
||||
|
||||
include_once "php/controller/index-controller.php";
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
@@ -38,7 +36,7 @@ include_once("php/controller/index-controller.php");
|
||||
<?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')) {
|
||||
include_once 'content/' . $pfad . '.php';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user