dynamic content test

profil wird dynamisch in die index.php integriert (Test)
This commit is contained in:
NOrtmann1
2026-05-21 17:13:52 +02:00
parent 3f5313dd00
commit b616251511
5 changed files with 31 additions and 73 deletions
+15 -2
View File
@@ -23,8 +23,21 @@
<?php
include_once 'includes/navbar.php';
//Dynamischer Inhalt (später mit php...):
include_once 'content/home.php';
?>
if (isset($_GET["pfad"])) {
if (file_exists('content/' . $_GET["pfad"] . '.php')) {
include_once 'content/' . $_GET["pfad"] . '.php';
} else {
include_once 'content/404.php';
}
} else {
include_once 'content/home.php';
?>
</div>
<?php
}
?>
<?php
include_once 'includes/footer.php';