fix: Fixed loaded modules for ajax search (#5043)

* fix: Fixed loaded modules for ajax search

* fixed eventlog widget
This commit is contained in:
Neil Lathwood
2016-11-22 09:46:41 +00:00
committed by GitHub
parent ccb76a7de9
commit 58582c82c1
3 changed files with 2 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -22,7 +22,6 @@ var eventlog_grid = $("#eventlog").bootgrid({
return {
id: "eventlog",
device: "' .mres($vars['device']) .'",
type: "' .mres($vars['type']) .'",
};
},
url: "ajax_table.php"

View File

@@ -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 {