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
|
||||
|
||||
$modules = array('web');
|
||||
$init_modules = array('web', 'auth');
|
||||
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||
|
||||
set_debug($_REQUEST['debug']);
|
||||
|
||||
if (!$_SESSION['authenticated']) {
|
||||
echo 'unauthenticated';
|
||||
echo "Unauthenticated\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@@ -22,7 +22,6 @@ var eventlog_grid = $("#eventlog").bootgrid({
|
||||
return {
|
||||
id: "eventlog",
|
||||
device: "' .mres($vars['device']) .'",
|
||||
type: "' .mres($vars['type']) .'",
|
||||
};
|
||||
},
|
||||
url: "ajax_table.php"
|
||||
|
@@ -126,7 +126,6 @@ if (!module_selected('nodb', $init_modules)) {
|
||||
|
||||
require $install_dir . '/includes/definitions.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';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user