Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip graph.php authentication if configured #3019

Merged
merged 3 commits into from Feb 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions html/graph.php
Expand Up @@ -40,8 +40,9 @@
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'] != true) {
require_once 'includes/authenticate.inc.php';
}
require 'includes/graphs/graph.inc.php';

$console_color = new Console_Color2();
Expand Down
2 changes: 1 addition & 1 deletion includes/defaults.inc.php
Expand Up @@ -568,7 +568,7 @@ function set_debug($debug) {
$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
Expand Down