diff --git a/includes/functions.php b/includes/functions.php index 4632adb24..75dd257d9 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -247,15 +247,16 @@ function geteventicon ($message) function generateiflink($interface, $text=0,$type=bits) { - global $twoday; global $now; global $config; global $day; + global $twoday; global $now; global $config; global $day; global $month; if(!$text) { $text = fixIfName($interface['ifDescr']); } if(!$type) { $type = 'bits'; } $class = ifclass($interface['ifOperStatus'], $interface['ifAdminStatus']); - $graph_url = $config['base_url'] . "/graph.php?if=" . $interface['interface_id'] . "&from=$day&to=$now&width=400&height=120&type=" . $type; + $graph_url = $config['base_url'] . "/graph.php?if=" . $interface['interface_id'] . "&from=$day&to=$now&width=400&height=100&type=" . $type; + $graph_url_month = $config['base_url'] . "/graph.php?if=" . $interface['interface_id'] . "&from=$month&to=$now&width=400&height=100&type=" . $type; $device_id = getifhost($interface['interface_id']); $link = ""; + $link .= "
', CAPTION, '" . $interface['hostname'] . " - " . fixifName($interface['ifDescr']) . ""; if($interface['ifAlias']) { $link .= "
" . $interface['ifAlias']; } $link .= "' "; $link .= $config['overlib_defaults'].");\" onmouseout=\"return nd();\" >$text
"; diff --git a/includes/static-config.php b/includes/static-config.php index 07ce1a803..b667003ba 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -9,7 +9,7 @@ $config['ifdescr']['IOS XE'] = true; # No changes below this line # ############################## -$config['version'] = "0.5.0"; +$config['version'] = "0.5.1"; ### Connect to database if (!@mysql_connect($config['db_host'], $config['db_user'], $config['db_pass'])) {