mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Added the TreeEnterprise hooks
This commit is contained in:
parent
13ce624339
commit
ed2781f46b
@ -21,6 +21,7 @@ if (is_ajax ()) {
|
|||||||
check_login ();
|
check_login ();
|
||||||
|
|
||||||
require_once($config['homedir'] . "/include/class/Tree.class.php");
|
require_once($config['homedir'] . "/include/class/Tree.class.php");
|
||||||
|
enterprise_include_once("include/class/Tree.class.php");
|
||||||
require_once($config['homedir'] . "/include/functions_reporting.php");
|
require_once($config['homedir'] . "/include/functions_reporting.php");
|
||||||
require_once($config['homedir'] . "/include/functions_os.php");
|
require_once($config['homedir'] . "/include/functions_os.php");
|
||||||
|
|
||||||
@ -38,12 +39,23 @@ if (is_ajax ()) {
|
|||||||
$countModuleStatusMethod = get_parameter('countModuleStatusMethod', 'on_demand');
|
$countModuleStatusMethod = get_parameter('countModuleStatusMethod', 'on_demand');
|
||||||
$countAgentStatusMethod = get_parameter('countAgentStatusMethod', 'live');
|
$countAgentStatusMethod = get_parameter('countAgentStatusMethod', 'live');
|
||||||
|
|
||||||
$tree = new Tree($type,
|
if (class_exists('TreeEnterprise')) {
|
||||||
$id,
|
$tree = new TreeEnterprise($type,
|
||||||
$childrenMethod,
|
$id,
|
||||||
$countModuleStatusMethod,
|
$childrenMethod,
|
||||||
$countAgentStatusMethod
|
$countModuleStatusMethod,
|
||||||
);
|
$countAgentStatusMethod
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$tree = new Tree($type,
|
||||||
|
$id,
|
||||||
|
$childrenMethod,
|
||||||
|
$countModuleStatusMethod,
|
||||||
|
$countAgentStatusMethod
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$tree->setFilter(array(
|
$tree->setFilter(array(
|
||||||
'status' => $filter['status'],
|
'status' => $filter['status'],
|
||||||
'search' => $filter['search']));
|
'search' => $filter['search']));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user