Rewriting the router v2

To be more flexible
This commit is contained in:
slawkens
2022-11-28 21:37:25 +01:00
parent 7bfa21a239
commit 60f64e21d8
11 changed files with 245 additions and 194 deletions

View File

@@ -52,9 +52,6 @@ if(!$logged || !admin()) {
$page = 'login';
}
// more pages have action, lets define it here
$action = $_REQUEST['action'] ?? '';
// include our page
$file = BASE . 'admin/pages/' . $page . '.php';
if(!@file_exists($file)) {