From 419b3f4fb1e2a5aa274c49e66a604ac681e2dd22 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 3 Jun 2019 10:47:54 +0200 Subject: [PATCH] Fixed module_manager with Agent limit surpassed or license expired --- pandora_console/include/functions.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index f299153da6..a680ad9cba 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -1392,6 +1392,11 @@ function enterprise_installed() { $return = false; + // Load enterprise extensions. + if (defined('DESTDIR')) { + return $return; + } + if (defined('PANDORA_ENTERPRISE')) { if (PANDORA_ENTERPRISE) { $return = true; @@ -1444,7 +1449,7 @@ function enterprise_include($filename) { global $config; - // Load enterprise extensions + // Load enterprise extensions. if (defined('DESTDIR')) { $destdir = DESTDIR; } else { @@ -1474,7 +1479,13 @@ function enterprise_include_once($filename) { global $config; - // Load enterprise extensions + // Load enterprise extensions. + if (defined('DESTDIR')) { + $destdir = DESTDIR; + } else { + $destdir = ''; + } + $filepath = realpath($config['homedir'].'/'.ENTERPRISE_DIR.'/'.$filename); if ($filepath === false) {