static function query($base, $scope, $filter, $attributes, $category, $objectStorage= "", $objectBase= "")
{
- global $config;
+ $config= session::global_get('config');
$ldap= $config->get_ldap_link(TRUE);
$result= filterLDAP::get_list($base, $scope, $filter, $attributes,
$category, $objectStorage, $objectBase,
static function get_list($base, $scope, $filter, $attributes, $category,
$objectStorage= array(), $objectBase= "", $flags= GL_SUBSEARCH)
{
- global $config, $ui;
+ $config= session::global_get('config');
+ $ui= session::global_get('ui');
$departments= array();
/* Get LDAP link */
function get_list_old($filter, $category, $base= "", $attributes= array(), $flags= GL_SUBSEARCH)
{
- global $config, $ui;
+ $config= session::global_get('config');
+ $ui= session::global_get('ui');
/* Get LDAP link */
$ldap= $config->get_ldap_link($flags & GL_SIZELIMIT);
}
}
}
-
return ($result);
}