mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
<?php
|
||||
|
||||
if (is_numeric($vars['id']) && ($auth || port_permitted($vars['id'])))
|
||||
{
|
||||
$port = 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);
|
||||
if ($port['ifAlias']!='') {
|
||||
$title .= ", ".$port['ifAlias'];
|
||||
}
|
||||
if (is_numeric($vars['id']) && ($auth || port_permitted($vars['id']))) {
|
||||
$port = 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);
|
||||
if ($port['ifAlias'] != '') {
|
||||
$title .= ', '.$port['ifAlias'];
|
||||
}
|
||||
|
||||
$graph_title = shorthost($device['hostname']) . "::" . strtolower(makeshortif($port['ifDescr']));
|
||||
$graph_title = shorthost($device['hostname']).'::'.strtolower(makeshortif($port['ifDescr']));
|
||||
|
||||
$auth = TRUE;
|
||||
$auth = true;
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/port-'.safename($port['ifIndex'].'.rrd');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user