/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['username'])) { $this->username = StringUtil::trim($_POST['username']); } if (isset($_POST['email'])) { $this->email = StringUtil::trim($_POST['email']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); // get parameters if (isset($_POST['comment'])) { $this->comment = StringUtil::trim($_POST['comment']); } if (isset($_POST['username'])) { $this->username = StringUtil::trim($_POST['username']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['message'])) { $this->message = StringUtil::trim($_POST['message']); } if (isset($_POST['subject'])) { $this->subject = StringUtil::trim($_POST['subject']); } if (isset($_POST['email'])) { $this->email = StringUtil::trim($_POST['email']); } if (isset($_POST['showAddress'])) { $this->showAddress = intval($_POST['showAddress']); } else { $this->showAddress = 0; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['subject'])) { $this->subject = StringUtil::trim($_POST['subject']); } if (isset($_POST['text'])) { $this->text = MessageUtil::stripCrap(StringUtil::trim($_POST['text'])); } if (isset($_POST['activeTab'])) { $this->activeTab = $_POST['activeTab']; } // wysiwyg if (isset($_POST['wysiwygEditorMode'])) { $this->wysiwygEditorMode = intval($_POST['wysiwygEditorMode']); } if (isset($_POST['wysiwygEditorHeight'])) { $this->wysiwygEditorHeight = intval($_POST['wysiwygEditorHeight']); } // settings $this->enableSmilies = $this->enableHtml = $this->enableBBCodes = $this->parseURL = $this->showSignature = 0; if (isset($_POST['parseURL'])) { $this->parseURL = intval($_POST['parseURL']); } if (isset($_POST['enableSmilies'])) { $this->enableSmilies = intval($_POST['enableSmilies']); } $this->enableSmilies = intval($this->enableSmilies && WCF::getUser()->getPermission('user.' . $this->permissionType . '.canUseSmilies')); if (isset($_POST['enableHtml'])) { $this->enableHtml = intval($_POST['enableHtml']); } $this->enableHtml = intval($this->enableHtml && WCF::getUser()->getPermission('user.' . $this->permissionType . '.canUseHtml')); if (isset($_POST['enableBBCodes'])) { $this->enableBBCodes = intval($_POST['enableBBCodes']); } $this->enableBBCodes = intval($this->enableBBCodes && WCF::getUser()->getPermission('user.' . $this->permissionType . '.canUseBBCodes')); if (isset($_POST['showSignature'])) { $this->showSignature = intval($_POST['showSignature']); } // stop shouting if (StringUtil::length($this->subject) >= MESSAGE_SUBJECT_STOP_SHOUTING && StringUtil::toUpperCase($this->subject) == $this->subject) { $this->subject = StringUtil::wordsToUpperCase(StringUtil::toLowerCase($this->subject)); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); $this->nameExactly = 0; if (isset($_POST['nameExactly'])) { $this->nameExactly = intval($_POST['nameExactly']); } if (isset($_POST['subjectOnly'])) { $this->subjectOnly = intval($_POST['subjectOnly']); } // date area if (isset($_POST['fromDay'])) { $this->fromDay = intval($_POST['fromDay']); } if (isset($_POST['fromMonth'])) { $this->fromMonth = intval($_POST['fromMonth']); } if (isset($_POST['fromYear'])) { $this->fromYear = intval($_POST['fromYear']); if (empty($this->fromYear)) { $this->fromYear = ''; } } if (isset($_POST['untilDay'])) { $this->untilDay = intval($_POST['untilDay']); } if (isset($_POST['untilMonth'])) { $this->untilMonth = intval($_POST['untilMonth']); } if (isset($_POST['untilYear'])) { $this->untilYear = intval($_POST['untilYear']); if (empty($this->untilYear)) { $this->untilYear = ''; } } }