diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index f241c1a9ae..5f47a11487 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -260,6 +260,7 @@ function generate_if_link($args, $text = NULL) $graph_array['legend'] = "yes"; $graph_array['height'] = "100"; $graph_array['width'] = "340"; + $graph_array['to'] = $config['now']; $graph_array['from'] = $config['day']; $graph_array['id'] = $args['interface_id']; $content .= generate_graph_tag($graph_array); diff --git a/html/includes/graphs/bill/auth.inc.php b/html/includes/graphs/bill/auth.inc.php index eeda409131..785d835b83 100644 --- a/html/includes/graphs/bill/auth.inc.php +++ b/html/includes/graphs/bill/auth.inc.php @@ -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 AND D.device_id = P.device_id"); -} else { - echo("Unauthorised"); - exit; + $auth = TRUE; + } ?> diff --git a/html/includes/graphs/graph.inc.php b/html/includes/graphs/graph.inc.php index 3828f02d41..01df3370fb 100644 --- a/html/includes/graphs/graph.inc.php +++ b/html/includes/graphs/graph.inc.php @@ -103,7 +103,9 @@ if(is_file($config['install_dir'] . "/html/includes/graphs/$type/$subtype.inc.ph } } } 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); }