/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['usernames'])) { $this->usernames = StringUtil::trim($_POST['usernames']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['unignoredBoardIDArray']) && is_array($_POST['unignoredBoardIDArray'])) { $this->unignoredBoardIDArray = ArrayUtil::toIntegerArray($_POST['unignoredBoardIDArray']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['values']) && is_array($_POST['values'])) { $this->values = $_POST['values']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['applicationText'])) { $this->applicationText = StringUtil::trim($_POST['applicationText']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); foreach ($this->oventTypes as $oventTypeID => $oventTypeData) { if (isset($_POST['hideOventType' . $oventTypeID]) && $_POST['hideOventType' . $oventTypeID] == 'on') { $this->hideOventTypes[$oventTypeID] = true; } else { $this->hideOventTypes[$oventTypeID] = false; } } if (isset($_POST['dontAskOnHiding']) && $_POST['dontAskOnHiding'] == 'on') { $this->dontAskOnHiding = true; } else { $this->dontAskOnHiding = false; } if (isset($_POST['hideInformation']) && $_POST['hideInformation'] == 'on') { $this->hideInformation = true; } else { $this->hideInformation = false; } if (isset($_POST['hideColonies']) && $_POST['hideColonies'] == 'on') { $this->hideColonies = true; } else { $this->hideColonies = false; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['shipData'])) { $this->shipDataStr = StringUtil::trim($_POST['shipData']); $this->shipDataArray = (array) LWUtil::unserialize($this->shipDataStr); } }
/** * @see Form::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 Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['reason'])) { $this->reason = StringUtil::trim($_POST['reason']); } if (isset($_POST['enableNotification'])) { $this->enableNotification = intval($_POST['enableNotification']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['agreed'])) { $this->agreed = (bool) $_POST['agreed']; } if (isset($_POST['answerText'])) { $this->answerText = StringUtil::trim($_POST['answerText']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { AbstractForm::readFormParameters(); if (isset($_POST['reply'])) { $this->reply = StringUtil::trim($_POST['reply']); } if (isset($_POST['applicationStatus'])) { $this->applicationStatus = intval($_POST['applicationStatus']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['email'])) { $this->email = StringUtil::trim($_POST['email']); } if (isset($_POST['checkbox'])) { $this->checkbox = (bool) intval($_POST['checkbox']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['allianceName'])) { $this->allianceName = StringUtil::trim($_POST['allianceName']); } if (isset($_POST['allianceTag'])) { $this->allianceTag = StringUtil::trim($_POST['allianceTag']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['captchaID'])) { $this->captchaID = intval($_POST['captchaID']); } if (isset($_POST['captchaString'])) { $this->captchaString = StringUtil::trim($_POST['captchaString']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['fromYear'])) { $this->fromYear = intval($_POST['fromYear']); } if (isset($_POST['toYear'])) { $this->toYear = intval($_POST['toYear']); } if (isset($_POST['country'])) { $this->country = $_POST['country']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['username'])) { $this->username = StringUtil::trim($_POST['username']); } if (isset($_POST['subject'])) { $this->subject = StringUtil::trim($_POST['subject']); } if (isset($_POST['text'])) { $this->text = StringUtil::trim($_POST['text']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); $specs = Spec::getBySpecType(3); foreach ($specs as $specID => $specObj) { $shipCount = LWUtil::checkInt(@$_REQUEST['ship' . $specID], 0, $specObj->level); if ($shipCount) { $specObj->level = $shipCount; $this->specs[$specID] = clone $specObj; $this->ships[$specID] = $shipCount; } } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if ($this->action == 'rename') { if (isset($_POST['newName'])) { $this->newName = StringUtil::trim($_POST['newName']); } } else { if ($this->action == 'delete') { if (isset($_POST['password'])) { $this->password = StringUtil::trim($_POST['password']); } } } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['filename'])) { $this->filename = StringUtil::trim($_POST['filename']); } if (isset($_POST['otherSources'])) { $this->otherSources = true; } if (isset($_POST['sourceID'])) { $this->sourceID = intval($_POST['sourceID']); } if (isset($_POST['saveSelection'])) { $this->saveSelection = true; } // read source $this->readSource(); }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); //print_r($this); //print_r($_POST); if (isset($_POST['circularText'])) { $this->circularText = StringUtil::trim($_POST['circularText']); } if (isset($_POST['alliance' . $this->alliance->allianceID])) { $this->alliances[$this->alliance->allianceID] = intval($_POST['alliance' . $this->alliance->allianceID . 'Rank']); } foreach ($this->interrelations as $allianceID2 => $alliance2) { if (isset($_POST['alliance' . $allianceID2])) { $this->alliances[$allianceID2] = intval($_POST['alliance' . $allianceID2 . 'Rank']); } } //print_r($this->alliances); //exit; }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); $this->enabled = 0; if (isset($_POST['title'])) { $this->title = StringUtil::trim($_POST['title']); } if (isset($_POST['enabled'])) { $this->enabled = intval($_POST['enabled']); } if (isset($_POST['logicalOperator'])) { $this->logicalOperator = $_POST['logicalOperator']; } if (isset($_POST['ruleAction'])) { $this->ruleAction = $_POST['ruleAction']; } if (isset($_POST['ruleDestination'])) { $this->ruleDestination = $_POST['ruleDestination']; } if (isset($_POST['ruleConditions']) && is_array($_POST['ruleConditions'])) { $this->ruleConditions = $_POST['ruleConditions']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['warningID'])) { $this->warningID = intval($_POST['warningID']); } if (isset($_POST['title'])) { $this->title = StringUtil::trim($_POST['title']); } if (isset($_POST['points'])) { $this->points = abs(intval($_POST['points'])); } if (isset($_POST['expiresWeek'])) { $this->expiresWeek = intval($_POST['expiresWeek']); } if (isset($_POST['expiresDay'])) { $this->expiresDay = intval($_POST['expiresDay']); } if (isset($_POST['expiresHour'])) { $this->expiresHour = intval($_POST['expiresHour']); } if (isset($_POST['reason'])) { $this->reason = StringUtil::trim($_POST['reason']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); // check permissions if (WCF::getUser()->disableAvatar) { throw new PermissionDeniedException(); } if (isset($_POST['avatarID'])) { $this->avatarID = intval($_POST['avatarID']); } else { $this->avatarID = -1; } if (isset($_POST['avatarURL'])) { $this->avatarURL = StringUtil::trim($_POST['avatarURL']); } if (MODULE_GRAVATAR == 1 && $this->avatarID == -1 && isset($_POST['gravatar'])) { $this->gravatar = StringUtil::trim($_POST['gravatar']); } if (isset($_FILES['avatarUpload'])) { $this->avatarUpload = $_FILES['avatarUpload']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); // check security token $this->checkSecurityToken(); }