Files

20 lines
688 B
PHP
Raw Permalink Normal View History

2010-08-02 16:38:03 +00:00
<?php
2015-07-13 20:10:26 +02:00
if (is_numeric($vars['id']) && ($auth || port_permitted($vars['id']))) {
2020-09-21 15:40:17 +02:00
$port = cleanPort(get_port_by_id($vars['id']));
2015-07-13 20:10:26 +02:00
$device = device_by_id_cache($port['device_id']);
2020-09-21 15:40:17 +02:00
$title = generate_device_link($device);
$title .= ' :: Port ' . generate_port_link($port);
2011-09-14 13:38:01 +00:00
2020-09-21 15:40:17 +02:00
$graph_title = shorthost($device['hostname']) . '::' . strtolower(makeshortif($port['ifDescr']));
2011-09-14 13:38:01 +00:00
if (($port['ifAlias'] != '') && ($port['ifAlias'] != $port['ifDescr'])) {
2020-09-21 15:40:17 +02:00
$title .= ', ' . display($port['ifAlias']);
$graph_title .= '::' . display($port['ifAlias']);
}
2015-07-13 20:10:26 +02:00
$auth = true;
2016-08-18 20:28:22 -05:00
$rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id']);
}