This commit is contained in:
2024-03-29 15:47:35 +01:00
parent 85d2cf4be2
commit 7619856ef2
27 changed files with 2255 additions and 193 deletions

View File

@ -1,15 +1,15 @@
<?php
$routes = [
'doppelklinge' => 'doppelklinge',
'vermessung' => 'vermessung',
'default' => 'default'
];
ob_start();
if(array_key_exists($_page, $routes))
require_once("./pages/{$routes[$_page]}.page.php");
else
require_once("./pages/{$routes['default']}.page.php");
$_content = ob_get_contents();
ob_end_clean();
<?php
$_page = isset($_GET['p']) ? $_GET['p'] : '';
$routes = [
'doppelklinge' => 'doppelklinge',
'vermessung' => 'vermessung',
'knochen' => 'knochen',
'default' => 'default'
];
ob_start();
require_once __DIR__ . "/../pages/{$routes[array_key_exists($_page, $routes)?$_page:'default']}.php";
$_content = ob_get_contents();
ob_end_clean();