mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
updates
git-svn-id: http://www.observium.org/svn/observer/trunk@2373 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -38,10 +38,13 @@ $id = mres($_GET['id']);
|
|||||||
|
|
||||||
if (isset($config['allow_unauth_graphs']) && $config['allow_unauth_graphs'])
|
if (isset($config['allow_unauth_graphs']) && $config['allow_unauth_graphs'])
|
||||||
{
|
{
|
||||||
|
$auth = "1"; ## hardcode auth for all with config function
|
||||||
} else {
|
} else {
|
||||||
if (!$_SESSION['authenticated']) { graph_error("Session not authenticated"); exit; }
|
if (!$_SESSION['authenticated'])
|
||||||
} else {
|
{
|
||||||
$auth = "1"; ## hardcode auth for all
|
graph_error("Session not authenticated");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
preg_match('/^(?P<type>[A-Za-z0-9]+)_(?P<subtype>.+)/', mres($_GET['type']), $graphtype);
|
preg_match('/^(?P<type>[A-Za-z0-9]+)_(?P<subtype>.+)/', mres($_GET['type']), $graphtype);
|
||||||
@@ -95,9 +98,7 @@ function graph_error($string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($error_msg) {
|
if ($error_msg) {
|
||||||
|
|
||||||
graph_error($graph_error);
|
graph_error($graph_error);
|
||||||
|
|
||||||
} elseif (!$auth) {
|
} elseif (!$auth) {
|
||||||
|
|
||||||
if ($width < 200)
|
if ($width < 200)
|
||||||
|
Reference in New Issue
Block a user