more work on new traffic view

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-09-08 10:27:03 +02:00
parent 6f2652f9dd
commit bc7e4be47a
7 changed files with 61 additions and 46 deletions

View File

@@ -37,12 +37,10 @@ if (Settings::IsInList('panel.customer_hide_options', 'traffic')) {
Response::redirectTo('customer_index.php');
}
$range = Request::get('range', 'days:30');
if ($page === null || $page == 'overview') {
} elseif ($page == 'current') {
$range = Request::get('range', 'currentyear');
if ($page == 'current') {
$range = 'currentmonth';
}
try {