Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
734 B
PHP
Raw Permalink Normal View History

2010-08-02 16:38:03 +00:00
<?php
if (is_numeric($vars['id']) && ($auth || port_permitted($vars['id']))) {
$port = cleanPort(get_port_by_id($vars['id']));
$device = device_by_id_cache($port['device_id']);
$title = generate_device_link($device);
$title .= ' :: Port ' . generate_port_link($port);
2011-09-14 13:38:01 +00: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'])) {
2021-03-28 17:25:30 -05:00
$title .= ', ' . \LibreNMS\Util\Clean::html($port['ifAlias'], []);
$graph_title .= '::' . \LibreNMS\Util\Clean::html($port['ifAlias'], []);
}
2011-03-17 13:25:37 +00:00
$auth = true;
2016-08-18 20:28:22 -05:00
$rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id']);
}