'', 'statusAgent' => AGENT_STATUS_ALL, 'searchModule' => '', 'statusModule' => -1, 'groupID' => 0, 'tagID' => 0, ); $filter = get_parameter('filter', $default_filters); $agent_a = check_acl ($config['id_user'], 0, "AR"); $agent_w = check_acl ($config['id_user'], 0, "AW"); $access = ($agent_a == true) ? 'AR' : (($agent_w == true) ? 'AW' : 'AR'); if (class_exists('TreeEnterprise')) { $tree = new TreeEnterprise($type, $rootType, $id, $rootID, $serverID, $childrenMethod, $access); } else { $tree = new Tree($type, $rootType, $id, $rootID, $serverID, $childrenMethod, $access); } $tree->setFilter($filter); ob_clean(); echo json_encode(array('success' => 1, 'tree' => $tree->getArray())); return; } if ($getDetail) { require_once($config['homedir']."/include/functions_treeview.php"); $id = (int) get_parameter('id'); $type = (string) get_parameter('type'); $server = array(); if (is_metaconsole()) { $server_id = (int) get_parameter('serverID'); $server = metaconsole_get_servers($server_id); } ob_clean(); echo '