update ui class and traffic stats

This commit is contained in:
envoyr
2022-03-18 12:53:34 +01:00
parent ba0d33392c
commit 69895943bd
41 changed files with 90927 additions and 16754 deletions

View File

@@ -34,7 +34,7 @@ if ($page == 'log' && $userinfo['change_serversettings'] == '1') {
\Froxlor\UI\Response::dynamic_error($e->getMessage());
}
UI::twigBuffer('user/table.html.twig', [
UI::view('user/table.html.twig', [
'listing' => \Froxlor\UI\Listing::format($collection, $syslog_list_data['syslog_list']),
'actions_links' => [[
'href' => $linker->getLink(['section' => 'logger', 'page' => 'log', 'action' => 'truncate']),
@@ -43,7 +43,6 @@ if ($page == 'log' && $userinfo['change_serversettings'] == '1') {
'class' => 'btn-warning'
]]
]);
UI::twigOutputBuffer();
} elseif ($action == 'truncate') {
if (isset($_POST['send']) && $_POST['send'] == 'send') {