mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Check for custom & MIB graphs before looking for a file
This commit is contained in:
@@ -43,12 +43,15 @@ if ($auth !== true && $auth != 1) {
|
|||||||
|
|
||||||
require $config['install_dir']."/html/includes/graphs/$type/auth.inc.php";
|
require $config['install_dir']."/html/includes/graphs/$type/auth.inc.php";
|
||||||
|
|
||||||
if ($auth === true && is_file($config['install_dir']."/html/includes/graphs/$type/$subtype.inc.php")) {
|
if ($auth === true && is_custom_graph($type, $subtype, $device)) {
|
||||||
include $config['install_dir']."/html/includes/graphs/$type/$subtype.inc.php";
|
include($config['install_dir'] . "/html/includes/graphs/custom.inc.php");
|
||||||
}
|
}
|
||||||
else if ($auth === true && is_mib_graph($type, $subtype)) {
|
else if ($auth === true && is_mib_graph($type, $subtype)) {
|
||||||
include $config['install_dir']."/html/includes/graphs/$type/mib.inc.php";
|
include $config['install_dir']."/html/includes/graphs/$type/mib.inc.php";
|
||||||
}
|
}
|
||||||
|
elseif ($auth === true && is_file($config['install_dir']."/html/includes/graphs/$type/$subtype.inc.php")) {
|
||||||
|
include $config['install_dir']."/html/includes/graphs/$type/$subtype.inc.php";
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
graph_error("$type*$subtype ");
|
graph_error("$type*$subtype ");
|
||||||
// Graph Template Missing");
|
// Graph Template Missing");
|
||||||
|
|||||||
Reference in New Issue
Block a user