actually show admin-dashboard

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-02-16 15:00:27 +01:00
parent 759d11d1a0
commit 2a3262ef45

View File

@@ -23,6 +23,7 @@ use Froxlor\Database\Database;
use Froxlor\Settings;
use Froxlor\Api\Commands\Froxlor as Froxlor;
use Froxlor\Api\Commands\Admins as Admins;
use Froxlor\UI\Panel\UI;
if ($action == 'logout') {
@@ -183,7 +184,9 @@ if ($page == 'overview') {
$uptime = '';
}
eval("echo \"" . \Froxlor\UI\Template::getTemplate("index/index") . "\";");
// @fixme add all the overview/dashboard data from above
UI::TwigBuffer('admin/index.html.twig');
UI::TwigOutputBuffer();
} elseif ($page == 'change_password') {
if (isset($_POST['send']) && $_POST['send'] == 'send') {