/** * @see wcf\page\IPage::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (!WCF::getSession()->getPermission('admin.user.canEditPassword')) { $this->password = $this->confirmPassword = ''; } if (!WCF::getSession()->getPermission('admin.user.canEditMailAddress')) { $this->email = $this->confirmEmail = $this->user->email; } }
/** * @see \wcf\page\IPage::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (!WCF::getSession()->getPermission('admin.user.canEditPassword')) { $this->password = $this->confirmPassword = ''; } if (!WCF::getSession()->getPermission('admin.user.canEditMailAddress')) { $this->email = $this->confirmEmail = $this->user->email; } if (!empty($_POST['banned'])) { $this->banned = 1; } if (isset($_POST['banReason'])) { $this->banReason = StringUtil::trim($_POST['banReason']); } if ($this->banned && !isset($_POST['banNeverExpires'])) { if (isset($_POST['banExpires'])) { $this->banExpires = StringUtil::trim($_POST['banExpires']); } } else { $this->banExpires = ''; } if (isset($_POST['avatarType'])) { $this->avatarType = $_POST['avatarType']; } if (WCF::getSession()->getPermission('admin.user.canDisableAvatar')) { if (!empty($_POST['disableAvatar'])) { $this->disableAvatar = 1; } if (isset($_POST['disableAvatarReason'])) { $this->disableAvatarReason = StringUtil::trim($_POST['disableAvatarReason']); } if ($this->disableAvatar && !isset($_POST['disableAvatarNeverExpires'])) { if (isset($_POST['disableAvatarExpires'])) { $this->disableAvatarExpires = StringUtil::trim($_POST['disableAvatarExpires']); } } else { $this->disableAvatarExpires = ''; } } }
/** * @see \wcf\form\IForm::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (!empty($this->username) || !empty($this->email)) { throw new PermissionDeniedException(); } if (isset($_POST['tt_username'])) { $this->username = StringUtil::trim($_POST['tt_username']); } if (isset($_POST['tt_email'])) { $this->email = StringUtil::trim($_POST['tt_email']); } if (isset($_POST['tt_confirmEmail'])) { $this->confirmEmail = StringUtil::trim($_POST['tt_confirmEmail']); } if (isset($_POST['tt_password'])) { $this->password = $_POST['tt_password']; } if (isset($_POST['tt_confirmPassword'])) { $this->confirmPassword = $_POST['tt_confirmPassword']; } $this->groupIDs = explode(',', WBB_TAPATALK_REG_UG); $this->groupIDs = array_unique(array_map('intval', $this->groupIDs)); if (isset($this->ttid_profile['language']) && !empty($this->ttid_profile['language'])) { $this->languageID = LanguageFactory::getInstance()->getLanguageByCode($this->ttid_profile['language']); } if ($this->captchaObjectType) { $this->captchaObjectType->getProcessor()->readFormParameters(); } }
/** * @see \wcf\form\IForm::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (!empty($this->username) || !empty($this->email)) { throw new PermissionDeniedException(); } $this->randomFieldNames = WCF::getSession()->getVar('registrationRandomFieldNames'); if ($this->randomFieldNames === null) { throw new PermissionDeniedException(); } if (isset($_POST[$this->randomFieldNames['username']])) { $this->username = StringUtil::trim($_POST[$this->randomFieldNames['username']]); } if (isset($_POST[$this->randomFieldNames['email']])) { $this->email = StringUtil::trim($_POST[$this->randomFieldNames['email']]); } if (isset($_POST[$this->randomFieldNames['confirmEmail']])) { $this->confirmEmail = StringUtil::trim($_POST[$this->randomFieldNames['confirmEmail']]); } if (isset($_POST[$this->randomFieldNames['password']])) { $this->password = $_POST[$this->randomFieldNames['password']]; } if (isset($_POST[$this->randomFieldNames['confirmPassword']])) { $this->confirmPassword = $_POST[$this->randomFieldNames['confirmPassword']]; } $this->groupIDs = array(); if ($this->captchaObjectType) { $this->captchaObjectType->getProcessor()->readFormParameters(); } }