Example #1
0
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['destinationUserID'])) {
         $this->destinationUserID = intval($_POST['destinationUserID']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_FILES['optionImport'])) {
         $this->optionImport = $_FILES['optionImport'];
     }
 }
Example #3
0
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['avatarType'])) {
         $this->avatarType = $_POST['avatarType'];
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_FILES['source'])) {
         $this->source = $_FILES['source'];
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['points']) && is_array($_POST['points'])) {
         $this->points = ArrayUtil::toIntegerArray($_POST['points']);
     }
 }
Example #6
0
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (!WCF::getUser()->userID && isset($_POST['accept'])) {
         $this->accept = true;
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['timeframe'])) {
         $this->timeframe = intval($_POST['timeframe']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['title'])) {
         $this->title = StringUtil::trim($_POST['title']);
     }
 }
	/**
	 * @see	wcf\form\IForm::readFormParameters()
	 */
	public function readFormParameters() {
		parent::readFormParameters();
		
		if (isset($_POST['serverURL'])) $this->serverURL = StringUtil::trim($_POST['serverURL']);
		if (isset($_POST['loginUsername'])) $this->loginUsername = $_POST['loginUsername'];
		if (isset($_POST['loginPassword'])) $this->loginPassword = $_POST['loginPassword'];
	}
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if ($this->captchaObjectType) {
         $this->captchaObjectType->getProcessor()->readFormParameters();
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['settings'])) {
         $this->settings = $_POST['settings'];
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['server'])) {
         $this->server = StringUtil::trim($_POST['server']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->optionHandler->readUserInput($_POST);
     if (isset($_POST['applyChangesToExistingUsers'])) {
         $this->applyChangesToExistingUsers = intval($_POST['applyChangesToExistingUsers']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     I18nHandler::getInstance()->readValues();
     if (isset($_POST['isDisabled'])) {
         $this->isDisabled = 1;
     }
 }
Example #15
0
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_FILES['file'])) {
         $this->file = $_FILES['file'];
     }
     if (isset($_POST['fileLink'])) {
         $this->fileLink = StringUtil::trim($_POST['fileLink']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['masterPassword'])) {
         $this->masterPassword = $_POST['masterPassword'];
     }
     if (isset($_POST['url'])) {
         $this->url = $_POST['url'];
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['settings'])) {
         $this->settings = $_POST['settings'];
     }
     if (isset($_POST['applyChangesToExistingUsers'])) {
         $this->applyChangesToExistingUsers = intval($_POST['applyChangesToExistingUsers']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['enable'])) {
         $this->enable = intval($_POST['enable']);
     }
     if (isset($_POST['languageIDs']) && is_array($_POST['languageIDs'])) {
         $this->languageIDs = ArrayUtil::toIntegerArray($_POST['languageIDs']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['u']) && !empty($_POST['u'])) {
         $this->userID = intval($_POST['u']);
     }
     if (isset($_POST['a']) && !empty($_POST['a'])) {
         $this->activationCode = intval($_POST['a']);
     }
 }
Example #20
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['username'])) {
         $this->username = StringUtil::trim($_POST['username']);
     }
     if (isset($_POST['password'])) {
         $this->password = $_POST['password'];
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['username'])) {
         $this->username = StringUtil::trim($_POST['username']);
         $this->user = User::getUserByUsername($this->username);
     }
     if (isset($_POST['activationCode'])) {
         $this->activationCode = intval($_POST['activationCode']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     I18nHandler::getInstance()->readValues();
     if (I18nHandler::getInstance()->isPlainValue('categoryName')) {
         $this->categoryName = I18nHandler::getInstance()->getValue('categoryName');
     }
     if (isset($_POST['showOrder'])) {
         $this->showOrder = intval($_POST['showOrder']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (!$this->stylePackageImportLocation) {
         if (isset($_POST['downloadPackage'])) {
             $this->downloadPackage = StringUtil::trim($_POST['downloadPackage']);
         }
         if (isset($_FILES['uploadPackage'])) {
             $this->uploadPackage = $_FILES['uploadPackage'];
         }
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['cookieDomain'])) {
         $this->cookieDomain = StringUtil::trim($_POST['cookieDomain']);
     }
     if (isset($_POST['domainName'])) {
         $this->domainName = StringUtil::trim($_POST['domainName']);
     }
     if (isset($_POST['domainPath'])) {
         $this->domainPath = StringUtil::trim($_POST['domainPath']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     // import
     if (isset($_POST['languageFile']) && !empty($_POST['languageFile'])) {
         $this->languageFile = $_POST['languageFile'];
         $this->filename = $_POST['languageFile'];
     }
     if (isset($_FILES['languageUpload']) && !empty($_FILES['languageUpload']['tmp_name'])) {
         $this->importField = 'languageUpload';
         $this->filename = $_FILES['languageUpload']['tmp_name'];
     }
 }
Example #26
0
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['name'])) {
         $this->name = StringUtil::trim($_POST['name']);
     }
     if (isset($_POST['languageID'])) {
         $this->languageID = intval($_POST['languageID']);
     }
     // actually these are synonyms
     if (isset($_POST['tags']) && is_array($_POST['tags'])) {
         $this->synonyms = ArrayUtil::trim($_POST['tags']);
     }
 }
Example #27
0
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['countryCode'])) {
         $this->countryCode = StringUtil::trim($_POST['countryCode']);
     }
     if (isset($_POST['languageName'])) {
         $this->languageName = StringUtil::trim($_POST['languageName']);
     }
     if (isset($_POST['languageCode'])) {
         $this->languageCode = StringUtil::trim($_POST['languageCode']);
     }
     if (isset($_POST['sourceLanguageID'])) {
         $this->sourceLanguageID = intval($_POST['sourceLanguageID']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['templateGroupName'])) {
         $this->templateGroupName = StringUtil::trim($_POST['templateGroupName']);
     }
     if (!empty($_POST['templateGroupFolderName'])) {
         $this->templateGroupFolderName = StringUtil::trim($_POST['templateGroupFolderName']);
         if ($this->templateGroupFolderName) {
             $this->templateGroupFolderName = FileUtil::addTrailingSlash($this->templateGroupFolderName);
         }
     }
     if (isset($_POST['parentTemplateGroupID'])) {
         $this->parentTemplateGroupID = intval($_POST['parentTemplateGroupID']);
     }
 }
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['selectedPackages']) && is_array($_POST['selectedPackages'])) {
         $selectedPackages = ArrayUtil::toIntegerArray($_POST['selectedPackages']);
         $this->selectedPackages = array_combine($selectedPackages, $selectedPackages);
         if (isset($this->selectedPackages[0])) {
             unset($this->selectedPackages[0]);
         }
     }
     if (isset($_POST['exportCustomValues'])) {
         $this->exportCustomValues = intval($_POST['exportCustomValues']);
     }
     if (isset($_POST['languageID'])) {
         $this->languageID = intval($_POST['languageID']);
     }
 }
Example #30
0
 /**
  * @see	\wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     I18nHandler::getInstance()->readValues();
     if (I18nHandler::getInstance()->isPlainValue('label')) {
         $this->label = I18nHandler::getInstance()->getValue('label');
     }
     if (isset($_POST['cssClassName'])) {
         $this->cssClassName = StringUtil::trim($_POST['cssClassName']);
     }
     if (isset($_POST['customCssClassName'])) {
         $this->customCssClassName = StringUtil::trim($_POST['customCssClassName']);
     }
     if (isset($_POST['groupID'])) {
         $this->groupID = intval($_POST['groupID']);
     }
 }