actually show admin-dashboard
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -23,6 +23,7 @@ use Froxlor\Database\Database;
|
|||||||
use Froxlor\Settings;
|
use Froxlor\Settings;
|
||||||
use Froxlor\Api\Commands\Froxlor as Froxlor;
|
use Froxlor\Api\Commands\Froxlor as Froxlor;
|
||||||
use Froxlor\Api\Commands\Admins as Admins;
|
use Froxlor\Api\Commands\Admins as Admins;
|
||||||
|
use Froxlor\UI\Panel\UI;
|
||||||
|
|
||||||
if ($action == 'logout') {
|
if ($action == 'logout') {
|
||||||
|
|
||||||
@@ -183,7 +184,9 @@ if ($page == 'overview') {
|
|||||||
$uptime = '';
|
$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') {
|
} elseif ($page == 'change_password') {
|
||||||
|
|
||||||
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
||||||
|
|||||||
Reference in New Issue
Block a user