first commit

This commit is contained in:
2022-12-20 12:21:31 +01:00
commit 1b4073b3a4
17 changed files with 507 additions and 0 deletions

15
inc/router.inc.php Normal file
View File

@ -0,0 +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();