mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Checking period value in /list/rrd/
This commit is contained in:
parent
f31b4b4d41
commit
81daa6413b
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ if ($_SESSION['user'] != 'admin') {
|
|||
exit;
|
||||
}
|
||||
|
||||
if (!empty($_GET['period'])) {
|
||||
if ($_GET['period']!="daily" && $_GET['period']!="weekly" && $_GET['period']!="monthly" && $_GET['period']!="yearly") unset($_GET['period']);
|
||||
}
|
||||
|
||||
// Data
|
||||
exec (VESTA_CMD."v-list-sys-rrd json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue