This commit is contained in:
2024-03-29 17:30:25 +01:00
parent 7619856ef2
commit 9b0ff69205
6 changed files with 19 additions and 17 deletions

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
$_page = isset($_GET['p']) ? $_GET['p'] : '';
$routes = [
@ -9,6 +11,7 @@ $routes = [
];
ob_start();
require_once __DIR__ . "/../pages/{$routes[array_key_exists($_page, $routes)?$_page:'default']}.php";
$_content = ob_get_contents();