mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 03:03:26 +02:00
Rewriting the router v2
To be more flexible
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user