fix graph_error function

git-svn-id: http://www.observium.org/svn/observer/trunk@2540 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-22 13:39:03 +00:00
parent 838617100c
commit acba078399
2 changed files with 6 additions and 4 deletions

View File

@@ -36,6 +36,8 @@ $vertical = mres($_GET['vertical']);
$legend = mres($_GET['legend']);
$id = mres($_GET['id']);
$graphfile = $config['temp_dir'] . "/" . strgen() . ".png";
if (isset($config['allow_unauth_graphs']) && $config['allow_unauth_graphs'])
{
$auth = "1"; ## hardcode auth for all with config function
@@ -54,8 +56,6 @@ $subtype = $graphtype['subtype'];
if ($debug) {print_r($graphtype); }
$graphfile = $config['temp_dir'] . "/" . strgen() . ".png";
if (is_file($config['install_dir'] . "/html/includes/graphs/$type/$subtype.inc.php"))
{
if (isset($config['allow_unauth_graphs_cidr']) && count($config['allow_unauth_graphs_cidr']) > 0)