Files
librenms-librenms/html/includes/graphs/port/auth.inc.php
T

18 lines
511 B
PHP
Raw Normal View History

2010-08-02 16:38:03 +00:00
<?php
2011-03-17 13:25:37 +00:00
if (is_numeric($id) && ($config['allow_unauth_graphs'] || port_permitted($id)))
{
2010-08-01 14:17:06 +00:00
$port = get_port_by_id($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
2011-03-17 13:25:37 +00:00
$auth = TRUE;
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
}
2011-09-14 13:38:01 +00:00
?>