2012-01-18 08:12:37 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_numeric($vars['id'])) {
|
|
|
|
$vsvr = dbFetchRow('SELECT * FROM `netscaler_vservers` AS I, `devices` AS D WHERE I.vsvr_id = ? AND I.device_id = D.device_id', array($vars['id']));
|
2012-01-18 08:12:37 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_numeric($vsvr['device_id']) && ($auth || device_permitted($vsvr['device_id']))) {
|
|
|
|
$device = device_by_id_cache($vsvr['device_id']);
|
2012-01-18 08:12:37 +00:00
|
|
|
|
2016-07-07 01:33:43 -05:00
|
|
|
$rrd_filename = rrd_name($device['hostname'], array('netscaler', 'vsvr', $vsvr['vsvr_name']));
|
2012-01-18 08:12:37 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$title = generate_device_link($device);
|
|
|
|
$title .= ' :: Netscaler VServer :: '.htmlentities($vsvr['vsvr_name']);
|
|
|
|
$auth = true;
|
|
|
|
}
|
2012-01-18 08:12:37 +00:00
|
|
|
}
|