From aa39f2eac2d8ac5f34c7d9c0c95bfecacae4b8b0 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 22 Aug 2023 12:41:30 +0200 Subject: [PATCH] #11926 Fixed requires --- .../extensions/agents_modules_csv.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pandora_console/extensions/agents_modules_csv.php b/pandora_console/extensions/agents_modules_csv.php index 53225f8e4d..2171a961b1 100644 --- a/pandora_console/extensions/agents_modules_csv.php +++ b/pandora_console/extensions/agents_modules_csv.php @@ -26,20 +26,14 @@ * ============================================================================ */ - -/* - require_once $config['homedir'].'/include/config.php'; - require_once $config['homedir'].'/include/functions_reporting.php'; - require_once $config['homedir'].'/include/functions_modules.php'; -*/ -require_once '../include/config.php'; -require_once '../include/functions_agents.php'; -require_once '../include/functions_reporting.php'; -require_once '../include/functions_modules.php'; -require_once '../include/functions_users.php'; - global $config; +require_once $config['homedir'].'/include/config.php'; +require_once $config['homedir'].'/include/functions_agents.php'; +require_once $config['homedir'].'/include/functions_reporting.php'; +require_once $config['homedir'].'/include/functions_modules.php'; +require_once $config['homedir'].'/include/functions_users.php'; + check_login(); // ACL Check.