Files

17 lines
661 B
PHP
Raw Permalink Normal View History

2010-08-13 18:48:10 +00:00
<?php
2010-08-10 12:16:00 +00:00
if (is_numeric($vars['id'])) {
2020-09-21 15:40:17 +02:00
$service = dbFetchRow('SELECT * FROM services WHERE service_id = ?', [$vars['id']]);
2010-08-10 12:16:00 +00:00
if (is_numeric($service['device_id']) && ($auth || device_permitted($service['device_id']))) {
$device = device_by_id_cache($service['device_id']);
2010-08-10 12:16:00 +00:00
// This doesn't quite work for all yet.
2020-09-21 15:40:17 +02:00
$rrd_filename = rrd_name($device['hostname'], ['service', $service['service_type'], $service['service_id']]);
2010-08-10 12:16:00 +00:00
2020-09-21 15:40:17 +02:00
$title = generate_device_link($device);
$title .= ' :: Service :: ' . htmlentities($service['service_type']) . ' - ' . htmlentities($service['service_desc']);
$auth = true;
}
2010-08-10 12:16:00 +00:00
}