first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
use SyslogDash\Layout;
|
||||
|
||||
$page = $_GET['page'] ?? 'dashboard';
|
||||
$allowed = ['dashboard', 'worldmap', 'logs', 'bi', 'export'];
|
||||
|
||||
if (!in_array($page, $allowed)) {
|
||||
$page = 'dashboard';
|
||||
}
|
||||
|
||||
if ($page === 'export') {
|
||||
require __DIR__ . '/pages/export.php';
|
||||
return;
|
||||
}
|
||||
|
||||
Layout::render($page);
|
||||
Reference in New Issue
Block a user