mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
remove some crap from graphs setup. fetch device array inside graph file, not in graph.php. mres() in graph.php. try to switch to generic $_GET['id'] for everything (peers and ports undone?)
git-svn-id: http://www.observium.org/svn/observer/trunk@1084 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -2,13 +2,9 @@
|
||||
|
||||
## Generate a list of ports and then call the multi_bits grapher to generate from the list
|
||||
|
||||
if($_GET['device']) {
|
||||
$device = device_by_id_cache(mres($_GET['device']));
|
||||
} elseif($_GET['id']) {
|
||||
$device = device_by_id_cache(mres($_GET['id']));
|
||||
}
|
||||
$device = device_by_id_cache($id);
|
||||
|
||||
$query = mysql_query("SELECT * FROM `ports` WHERE `device_id` = '".$device['device_id']."'");
|
||||
$query = mysql_query("SELECT * FROM `ports` WHERE `device_id` = '".$id."'");
|
||||
while($int = mysql_fetch_assoc($query)) {
|
||||
$ignore = 0;
|
||||
if(is_array($config['device_traffic_iftype'])) {
|
||||
|
||||
Reference in New Issue
Block a user