private function formSettings($bUpdateDone = false, $asErrorsPrefs = array(), $asErrorsAccount = array()) { $this->out .= $this->tpl()->openSettings($this->linkMe(), $bUpdateDone); //prefs $nTimezone = AnwCurrentSession::getTimezone(); $sLang = AnwCurrentSession::getLang(); $this->out .= $this->tpl()->showSettingsPrefs($nTimezone, $sLang, $asErrorsPrefs); if (AnwCurrentSession::isLoggedIn()) { //account settings if (AnwUsers::isDriverInternal()) { //editable $sLogin = AnwCurrentSession::getUser()->getLogin(); $sEmail = AnwCurrentSession::getUser()->getEmail(); if (self::globalCfgUsersChangeDisplayname()) { $bChangeDisplaynameAllowed = true; $sDisplayname = AnwCurrentSession::getUser()->getDisplayName(); } else { $bChangeDisplaynameAllowed = false; $sDisplayname = AnwCurrentSession::getUser()->getDisplayName(); } $this->out .= $this->tpl()->showSettingsAccountInternal($sLogin, $sDisplayname, $sEmail, $bChangeDisplaynameAllowed, $asErrorsAccount); } else { //read only $sLogin = AnwCurrentSession::getUser()->getLogin(); $sDisplayname = AnwCurrentSession::getUser()->getDisplayName(); $sEmail = AnwCurrentSession::getUser()->getEmail(); $sEditLink = AnwUsers::getEditLink(); $this->out .= $this->tpl()->showSettingsAccountExternal($sLogin, $sDisplayname, $sEmail, $sEditLink, $asErrorsAccount); } } $this->out .= $this->tpl()->closeSettings(); }