Code

Removed old and ununsed code
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jan 2010 13:02:40 +0000 (13:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jan 2010 13:02:40 +0000 (13:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15317 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/class_posixAccount.inc

index 73f041ce71dc386fc65b6e9e69a49aa52512e6d8..bef6a4264b4ece65270004f10937e941a70a1917 100644 (file)
@@ -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]."&nbsp;[".$val['description'][0]."]";
-      }else{
-        $this->grouplist[$val['dn']]=$val['cn'][0];
-      }
-    }
-
-    reset ($this->grouplist);
-  }
-
 
   /* Get posts from copy & paste dialog */ 
   function saveCopyDialog()