mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now. Fixed all errors, left most warnings.
This commit is contained in:
@@ -30,9 +30,8 @@ if (is_numeric($_GET['id']) && ($config['allow_unauth_graphs'] || port_permitted
|
||||
$device = device_by_id_cache($port['device_id']);
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: Port ".generate_port_link($port);
|
||||
$auth = TRUE;
|
||||
}
|
||||
else {
|
||||
$auth = true;
|
||||
} else {
|
||||
echo("Unauthenticad");
|
||||
die;
|
||||
}
|
||||
@@ -45,7 +44,7 @@ $ifname=ifLabel($port);
|
||||
$ifname=$ifname['label']; //Interface name that will be showed on top right of graph
|
||||
$hostname=shorthost($device['hostname']);
|
||||
|
||||
if($_GET['title']) {
|
||||
if ($_GET['title']) {
|
||||
$ifname = $_GET['title'];
|
||||
}
|
||||
|
||||
@@ -53,10 +52,9 @@ if($_GET['title']) {
|
||||
$scale_type="follow"; //Autoscale default setup : "up" = only increase scale; "follow" = increase and decrease scale according to current graphed datas
|
||||
$nb_plot=240; //NB plot in graph
|
||||
|
||||
if(is_numeric($_GET['interval'])) {
|
||||
if (is_numeric($_GET['interval'])) {
|
||||
$time_interval=$_GET['interval'];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$time_interval=1; //Refresh time Interval
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user