uff
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user