Commit version 24.12.13800
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
@ -7,26 +6,26 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
//$counter = dbFetchRow("SELECT * FROM `counters` WHERE `counter_id` = ?", array($vars['id']));
|
||||
$counter = get_entity_by_id_cache('counter', $vars['id']);
|
||||
if (!is_intnum($vars['id'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_numeric($counter['device_id']) && ($auth || is_entity_permitted($counter['counter_id'], 'counter') || device_permitted($counter['device_id'])))
|
||||
{
|
||||
$counter = get_entity_by_id_cache('counter', $vars['id']);
|
||||
|
||||
if (is_numeric($counter['device_id']) && ($auth || is_entity_permitted($counter['counter_id'], 'counter') || device_permitted($counter['device_id']))) {
|
||||
|
||||
$device = device_by_id_cache($counter['device_id']);
|
||||
|
||||
//$rrd_filename = get_rrd_path($device, get_counter_rrd($device, $counter));
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: Counters :: ";
|
||||
$auth = TRUE;
|
||||
}
|
||||
$auth = TRUE;
|
||||
|
||||
$graph_title = device_name($device, TRUE);
|
||||
$graph_title .= " :: Counter :: " . $counter['counter_descr'];
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user