mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix new billing graph, fix interface links
git-svn-id: http://www.observium.org/svn/observer/trunk@1604 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -260,6 +260,7 @@ function generate_if_link($args, $text = NULL)
|
|||||||
$graph_array['legend'] = "yes";
|
$graph_array['legend'] = "yes";
|
||||||
$graph_array['height'] = "100";
|
$graph_array['height'] = "100";
|
||||||
$graph_array['width'] = "340";
|
$graph_array['width'] = "340";
|
||||||
|
$graph_array['to'] = $config['now'];
|
||||||
$graph_array['from'] = $config['day'];
|
$graph_array['from'] = $config['day'];
|
||||||
$graph_array['id'] = $args['interface_id'];
|
$graph_array['id'] = $args['interface_id'];
|
||||||
$content .= generate_graph_tag($graph_array);
|
$content .= generate_graph_tag($graph_array);
|
||||||
|
@@ -9,9 +9,8 @@ if(is_numeric($_GET['id']) && bill_permitted($_GET['id']))
|
|||||||
WHERE B.bill_id = '".mres($_GET['id'])."' AND P.interface_id = B.port_id
|
WHERE B.bill_id = '".mres($_GET['id'])."' AND P.interface_id = B.port_id
|
||||||
AND D.device_id = P.device_id");
|
AND D.device_id = P.device_id");
|
||||||
|
|
||||||
} else {
|
$auth = TRUE;
|
||||||
echo("Unauthorised");
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -103,7 +103,9 @@ if(is_file($config['install_dir'] . "/html/includes/graphs/$type/$subtype.inc.ph
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$fd = fopen($config['install_dir']."/html/images/no-48.png",r);fpassthru($fd);fclose($fd);
|
header('Content-type: image/png');
|
||||||
|
|
||||||
|
$fd = fopen($config['install_dir']."/html/images/no-48.png", "r");fpassthru($fd);fclose($fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user