2010-08-13 18:48:10 +00:00
|
|
|
<?php
|
2010-08-10 12:16:00 +00:00
|
|
|
|
2012-05-11 13:26:14 +00:00
|
|
|
if (is_numeric($vars['id']))
|
2010-08-10 12:16:00 +00:00
|
|
|
{
|
2012-05-11 13:26:14 +00:00
|
|
|
$service = dbFetchRow("SELECT * FROM services WHERE service_id = ?", array($vars['id']));
|
2010-08-10 12:16:00 +00:00
|
|
|
|
2012-05-11 15:21:42 +00:00
|
|
|
if (is_numeric($service['device_id']) && ($auth || device_permitted($service['device_id'])))
|
2010-08-10 12:16:00 +00:00
|
|
|
{
|
|
|
|
$device = device_by_id_cache($service['device_id']);
|
|
|
|
|
2012-05-25 11:29:53 +00:00
|
|
|
/// This doesn't quite work for all yet.
|
2010-08-10 12:16:00 +00:00
|
|
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("service-" . $service['service_type'] . "-" . $service['service_id'] . ".rrd");
|
|
|
|
|
|
|
|
$title = generate_device_link($device);
|
|
|
|
$title .= " :: Service :: " . htmlentities($service['service_type']);
|
|
|
|
$auth = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-05-13 12:49:23 +00:00
|
|
|
?>
|