dynamic content test
profil wird dynamisch in die index.php integriert (Test)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user