mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
#10194 added include files graphs for security
This commit is contained in:
parent
af0d311e1c
commit
953df647a2
@ -35,6 +35,8 @@ class Agents extends Element
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
include_once $config['homedir'].'/include/graphs/fgraph.php';
|
||||||
|
include_once $config['homedir'].'/include/functions_graph.php';
|
||||||
$this->title = __('Agents');
|
$this->title = __('Agents');
|
||||||
$this->ajaxMethods = ['getGroups'];
|
$this->ajaxMethods = ['getGroups'];
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@ class Events extends Element
|
|||||||
global $config;
|
global $config;
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
include_once $config['homedir'].'/include/graphs/fgraph.php';
|
include_once $config['homedir'].'/include/graphs/fgraph.php';
|
||||||
|
include_once $config['homedir'].'/include/functions_graph.php';
|
||||||
$this->title = __('Events');
|
$this->title = __('Events');
|
||||||
$this->ajaxMethods = [
|
$this->ajaxMethods = [
|
||||||
'getEventsGraph',
|
'getEventsGraph',
|
||||||
@ -75,7 +76,7 @@ class Events extends Element
|
|||||||
$sql = 'SELECT utimestamp from tevento WHERE utimestamp >= '.$intervalh.' ORDER BY utimestamp DESC;';
|
$sql = 'SELECT utimestamp from tevento WHERE utimestamp >= '.$intervalh.' ORDER BY utimestamp DESC;';
|
||||||
$rows = db_process_sql($sql);
|
$rows = db_process_sql($sql);
|
||||||
$cut_seconds = ($time_events / 24);
|
$cut_seconds = ($time_events / 24);
|
||||||
$now = time();
|
$now = (time() - 300);
|
||||||
$cuts_intervals = [];
|
$cuts_intervals = [];
|
||||||
for ($i = 0; $i < 24; $i++) {
|
for ($i = 0; $i < 24; $i++) {
|
||||||
$cuts_intervals[$now] = 0;
|
$cuts_intervals[$now] = 0;
|
||||||
|
@ -35,6 +35,8 @@ class MonitoringElements extends Element
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
include_once $config['homedir'].'/include/graphs/fgraph.php';
|
||||||
|
include_once $config['homedir'].'/include/functions_graph.php';
|
||||||
$this->title = __('Monitoring elements');
|
$this->title = __('Monitoring elements');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user