25 lines
722 B
PHP
25 lines
722 B
PHP
<?php
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage graphs
|
|
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
|
*
|
|
*/
|
|
|
|
$proc = dbFetchRow("SELECT * FROM `processors` where `processor_id` = ?", array($vars['id']));
|
|
|
|
if (is_numeric($proc['device_id']) && ($auth || device_permitted($proc['device_id'])))
|
|
{
|
|
$device = device_by_id_cache($proc['device_id']);
|
|
$rrd_filename = get_rrd_path($device, "processor-" . $proc['processor_type'] . "-" . $proc['processor_index'] . ".rrd");
|
|
$title = generate_device_link($device);
|
|
$title .= " :: Processor :: " . rewrite_entity_name($proc['processor_descr'], 'processor');
|
|
$auth = TRUE;
|
|
}
|
|
|
|
// EOF
|