From 876a7079100437ee2f88f03a0e38f457fc49fe81 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 26 Jan 2010 13:02:40 +0000 Subject: [PATCH] Removed old and ununsed code git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15317 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/posix/class_posixAccount.inc | 56 ------------------- 1 file changed, 56 deletions(-) diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index 73f041ce7..bef6a4264 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -1286,62 +1286,6 @@ class posixAccount extends plugin return($ids); } - - function reload() - { - /* Set base for all searches */ - $base = session::get('CurrentMainBase'); - $base = $base; - $ldap = $this->config->get_ldap_link(); - $attrs = array("cn", "description", "gidNumber"); - $Flags = GL_SIZELIMIT; - - /* Get groups */ - if ($this->GroupUserRegex == '*'){ - $filter = "(&(objectClass=posixGroup)(cn=".$this->GroupRegex."))"; - } else { - $filter= "(&(objectClass=posixGroup)(cn=".$this->GroupRegex.")(memberUid=".$this->GroupUserRegex."))"; - } - if($this->SubSearch){ - $Flags |= GL_SUBSEARCH; - }else{ - $base = get_groups_ou().$base; - } - - $res= get_list($filter, "groups", $base,$attrs, $Flags); - - /* check sizelimit */ - if (preg_match("/size limit/i", $ldap->get_error())){ - session::set('limit_exceeded',TRUE); - } - - /* Create a list of users */ - $this->grouplist = array(); - foreach ($res as $value){ - $this->grouplist[$value['gidNumber'][0]]= $value; - } - - $tmp=array(); - foreach($this->grouplist as $tkey => $val ){ - $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val; - } - - /* Sort index */ - ksort($tmp); - - /* Recreate index array[dn]=cn[description]*/ - $this->grouplist=array(); - foreach($tmp as $val){ - if(isset($val['description'])){ - $this->grouplist[$val['dn']]=$val['cn'][0]." [".$val['description'][0]."]"; - }else{ - $this->grouplist[$val['dn']]=$val['cn'][0]; - } - } - - reset ($this->grouplist); - } - /* Get posts from copy & paste dialog */ function saveCopyDialog() -- 2.30.2