From adedd872aee9c7913289c579b1b9702694af0952 Mon Sep 17 00:00:00 2001 From: pblasquez Date: Tue, 16 Feb 2016 19:46:22 -0800 Subject: [PATCH 1/3] Update graph.php --- html/graph.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html/graph.php b/html/graph.php index 99c53bd29..a3a7db529 100644 --- a/html/graph.php +++ b/html/graph.php @@ -40,8 +40,9 @@ require_once '../includes/dbFacile.php'; require_once '../includes/rewrites.php'; require_once 'includes/functions.inc.php'; require_once '../includes/rrdtool.inc.php'; -require_once 'includes/authenticate.inc.php'; - +if($config['allow_unauth_graphs'] == 0) { + require_once 'includes/authenticate.inc.php'; +} require 'includes/graphs/graph.inc.php'; $console_color = new Console_Color2(); From 823177e877675a11fdf46ba200a23b7c25a0321d Mon Sep 17 00:00:00 2001 From: pblasquez Date: Wed, 17 Feb 2016 13:06:46 -0800 Subject: [PATCH 2/3] Update graph.php --- html/graph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/graph.php b/html/graph.php index a3a7db529..0eff18fc3 100644 --- a/html/graph.php +++ b/html/graph.php @@ -40,7 +40,7 @@ require_once '../includes/dbFacile.php'; require_once '../includes/rewrites.php'; require_once 'includes/functions.inc.php'; require_once '../includes/rrdtool.inc.php'; -if($config['allow_unauth_graphs'] == 0) { +if($config['allow_unauth_graphs'] != true) { require_once 'includes/authenticate.inc.php'; } require 'includes/graphs/graph.inc.php'; From 591c40a6f4785327a10a47bf8b4ba7a451521f4e Mon Sep 17 00:00:00 2001 From: pblasquez Date: Wed, 17 Feb 2016 13:10:07 -0800 Subject: [PATCH 3/3] Update defaults.inc.php --- includes/defaults.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index d12854016..2f01dc6bc 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -568,7 +568,7 @@ $config['irc_alert'] = false; $config['irc_alert_utf8'] = false; // Authentication -$config['allow_unauth_graphs'] = 0; +$config['allow_unauth_graphs'] = false; // Allow graphs to be viewed by anyone $config['allow_unauth_graphs_cidr'] = array(); // Allow graphs to be viewed without authorisation from certain IP ranges