Example #1
0
 function loadMe($empty = true)
 {
     if ($this->getID() > 20000) {
         if (mUserdata::getGlobalSettingValue("AppServer", "") != "") {
             $S = Util::getAppServerClient();
             $this->setA($S->getUserById($this->ID, $empty));
             return;
         }
         $LD = LoginData::get("ADServerUserPass");
         if ($LD != null and $LD->A("server") != "") {
             $this->setA(LoginAD::getUserById($this->ID));
             return;
         }
     }
     parent::loadMe();
     if ($empty and $this->A != null) {
         $this->A->SHApassword = "";
     }
 }