mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed loaded modules for ajax search (#5043)
* fix: Fixed loaded modules for ajax search * fixed eventlog widget
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$modules = array('web');
|
$init_modules = array('web', 'auth');
|
||||||
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||||
|
|
||||||
set_debug($_REQUEST['debug']);
|
set_debug($_REQUEST['debug']);
|
||||||
|
|
||||||
if (!$_SESSION['authenticated']) {
|
if (!$_SESSION['authenticated']) {
|
||||||
echo 'unauthenticated';
|
echo "Unauthenticated\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -22,7 +22,6 @@ var eventlog_grid = $("#eventlog").bootgrid({
|
|||||||
return {
|
return {
|
||||||
id: "eventlog",
|
id: "eventlog",
|
||||||
device: "' .mres($vars['device']) .'",
|
device: "' .mres($vars['device']) .'",
|
||||||
type: "' .mres($vars['type']) .'",
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
url: "ajax_table.php"
|
url: "ajax_table.php"
|
||||||
|
@@ -126,7 +126,6 @@ if (!module_selected('nodb', $init_modules)) {
|
|||||||
|
|
||||||
require $install_dir . '/includes/definitions.inc.php';
|
require $install_dir . '/includes/definitions.inc.php';
|
||||||
|
|
||||||
|
|
||||||
if (file_exists($config['install_dir'] . '/html/includes/authentication/'.$config['auth_mechanism'].'.inc.php')) {
|
if (file_exists($config['install_dir'] . '/html/includes/authentication/'.$config['auth_mechanism'].'.inc.php')) {
|
||||||
require $config['install_dir'] . '/html/includes/authentication/'.$config['auth_mechanism'].'.inc.php';
|
require $config['install_dir'] . '/html/includes/authentication/'.$config['auth_mechanism'].'.inc.php';
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user