From: hickert Date: Tue, 26 Jan 2010 13:02:40 +0000 (+0000) Subject: Removed old and ununsed code X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=876a7079100437ee2f88f03a0e38f457fc49fe81;p=gosa.git Removed old and ununsed code git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15317 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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()