/[ludap]/ludap/ludap.lib.php
ViewVC logotype

Diff of /ludap/ludap.lib.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by mose, Fri Sep 19 07:15:23 2003 UTC revision 1.21 by mose, Sat Sep 20 08:29:43 2003 UTC
# Line 417  class ludap { Line 417  class ludap {
417   * \todo write that function !   * \todo write that function !
418   */   */
419          function del_groups($id) {                function del_groups($id) {      
420                    return ldap_delete($this->conn, $this->conf['memmbattr']."=".utf8_encode($id).", ".$this->conf['groupdn']);
421          }          }
422    
423  /** gets all info about one group  /** gets all info about one group
# Line 457  class ludap { Line 457  class ludap {
457                  $in = array();                  $in = array();
458                  foreach ($this->schema_user as $cbuff) {                  foreach ($this->schema_user as $cbuff) {
459                          $clabel = $cbuff['NAME'];                          $clabel = $cbuff['NAME'];
460                          if (is_array($fes[$clabel])) {                          if (isset($fes[$clabel]) and is_array($fes[$clabel])) {
461                                  if (isset($fes[$clabel][1])) {                                  if (isset($fes[$clabel][1])) {
462                                          foreach ($fes[$clabel] as $ind=>$insit) {                                          foreach ($fes[$clabel] as $ind=>$insit) {
463                                                  if (empty($insit) and $from and isset($from[$clabel][$ind])) {                                                  if (empty($insit) and $from and isset($from[$clabel][$ind])) {
# Line 469  class ludap { Line 469  class ludap {
469                                  } else {                                  } else {
470                                          $in["$clabel"] = utf8_encode($fes["$clabel"][0]);                                          $in["$clabel"] = utf8_encode($fes["$clabel"][0]);
471                                  }                                  }
472                          } elseif (isset($fes[$clabel])) {                          } elseif (isset($fes[$clabel]) and !empty($fes["$clabel"])) {
473                                  $in["$clabel"] = utf8_encode($fes["$clabel"]);                                  $in["$clabel"] = utf8_encode($fes["$clabel"]);
474                          } elseif ($from["$clabel"]) {                          } elseif (isset($from["$clabel"]) and !empty($from["$clabel"])) {
475                                  $out["$clabel"] = $from["$clabel"];                                  $out["$clabel"] = $from["$clabel"];
476                          }                          }
477                  }                  }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26