Example #1
0
 function __construct($dn = NULL, $fields = NULL, $ds = NULL, $bind = NULL)
 {
     global $oldap_ds;
     global $oldap_bind;
     parent::__construct();
     if ($dn === NULL) {
         $this->dn[] = OLDAP_DN1;
         $this->dn[] = OLDAP_DN;
     } else {
         if (is_array($dn)) {
             foreach ($dn as $d) {
                 $this->dn[] = $d;
             }
         } else {
             $this->dn[0] = $dn;
         }
     }
     if ($ds === NULL) {
         $this->ds = $oldap_ds;
     } else {
         $this->ds = $ds;
     }
     if ($bind === NULL) {
         $this->bind = $oldap_bind;
     } else {
         $this->dind = $bind;
     }
     if ($fields === NULL) {
     } else {
         foreach ($fields as $name) {
             $this->_addField($name);
         }
     }
 }
Example #2
0
 function __construct($fields = false)
 {
     //5.2.2
     parent::__construct();
     if ($fields !== false) {
         $this->_addField($fields);
         //   foreach ($fields as $name) {
         //    $this->_addField($name);
         //   }
     }
 }
Example #3
0
function person($login, $var = false)
{
    if (!$var) {
        $var = 'TMP_VAR';
    }
    $to = new _Obj();
    $to->_tpl->clear($var);
    $to->tplLink($var, $login, 'person.php?tab=' . $login);
    return $to->_tpl->get_assigned('TMP_VAR');
}