/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['username'])) { $this->username = StringUtil::trim($_POST['username']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['preview'])) { $this->preview = $_POST['preview']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['username'])) { $this->username = StringUtil::trim($_POST['username']); } if (isset($_POST['send'])) { $this->send = (bool) $_REQUEST['send']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (!empty($_POST['pageName'])) $this->pageName = StringUtil::trim($_POST['pageName']); if (!empty($_POST['menuItem'])) $this->menuItem = StringUtil::trim($_POST['menuItem']); if (!empty($_POST['showOrder'])) $this->showOrder = intval($_POST['showOrder']); }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['preview'])) { $this->preview = (bool) intval($_POST['preview']); } if (isset($_POST['send'])) { $this->send = (bool) intval($_POST['send']); } $this->authorID = WCF::getUser()->userID; $this->ipAddress = WCF::getSession()->ipAddress; }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['text'])) { $this->text = $_POST['text']; } if (isset($_POST['preview'])) { $this->preview = $_POST['preview']; } if (isset($_POST['upload'])) { $this->upload = $_POST['upload']; } if (isset($_POST['tplSelect'])) { $this->tplSelect = true; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); // get parameters if (isset($_POST['preview'])) { $this->preview = (bool) $_POST['preview']; } if (isset($_POST['send'])) { $this->send = (bool) $_POST['send']; } if (isset($_POST['ownerID'])) { $this->ownerID = intval($_POST['ownerID']); } if (isset($_POST['state'])) { $this->state = $_POST['state']; } if ($this->ownerID == 0) { $this->userID = WCF::getUser()->userID; } else { $this->groupID = $this->ownerID; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); // get parameters if (isset($_POST['ownerID'])) { $this->ownerID = $_POST['ownerID']; } if (isset($_POST['state'])) { $this->state = $_POST['state']; } if (isset($_POST['subject'])) { $this->subject = StringUtil::trim($_POST['subject']); } if (isset($_POST['text'])) { $this->text = StringUtil::trim($_POST['text']); } if (isset($_POST['secretMessage'])) { $this->secretMessage = StringUtil::trim($_POST['secretMessage']); } // assume current user if ($this->ownerID == 0) { $this->userID = WCF::getUser()->userID; $this->groupID = 0; $this->sponsorID = 0; } else { if (0 === strpos($this->ownerID, 'g')) { $this->userID = 0; $this->groupID = intval(substr($this->ownerID, 1)); $this->sponsorID = 0; } else { $this->userID = 0; $this->groupID = 0; $this->sponsorID = intval($this->ownerID); } } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['username'])) { $this->username = StringUtil::trim($_POST['username']); } if (isset($_POST['preview'])) { $this->preview = (bool) intval($_POST['preview']); } if (isset($_POST['send'])) { $this->send = (bool) intval($_POST['send']); } if (isset($_POST['pokedexNumber'])) { $this->pokedexNumber = intval($_POST['pokedexNumber']); } if (isset($_POST['nickname'])) { $this->nickname = StringUtil::trim($_POST['nickname']); } if (isset($_POST['gender'])) { $this->gender = intval($_POST['gender']); } if (isset($_POST['trainerName'])) { $this->trainerName = StringUtil::trim($_POST['trainerName']); } if (isset($_POST['trainerID'])) { $this->trainerID = intval($_POST['trainerID']); } if (isset($_POST['level'])) { $this->level = intval($_POST['level']); } if (isset($_POST['catchLocation'])) { $this->catchLocation = StringUtil::trim($_POST['catchLocation']); } if (isset($_POST['catchDate'])) { $this->catchDate = intval($_POST['catchDate']); } if (isset($_POST['catchLevel'])) { $this->catchLevel = intval($_POST['catchLevel']); } if (isset($_POST['nature'])) { $this->nature = intval($_POST['nature']); } if (isset($_POST['characteristic'])) { $this->characteristic = intval($_POST['characteristic']); } if (isset($_POST['isShiny'])) { $this->isShiny = (bool) intval($_POST['isShiny']); } if (isset($_POST['ball'])) { $this->ball = intval($_POST['ball']); } if (isset($_POST['ribbonIDs']) && is_array($_POST['ribbonIDs'])) { $this->ribbonIDs = ArrayUtil::toIntegerArray($_POST['ribbonIDs']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['username'])) { $this->username = StringUtil::trim($_POST['username']); } if (isset($_POST['prefix']) && $this->board->getPermission('canUsePrefix')) { $this->prefix = $_POST['prefix']; } if (isset($_POST['preview'])) { $this->preview = (bool) $_POST['preview']; } if (isset($_POST['send'])) { $this->send = (bool) $_POST['send']; } if (isset($_POST['boardIDs'])) { $this->boardIDs = ArrayUtil::toIntegerArray($_POST['boardIDs']); } if (isset($_POST['languageID'])) { $this->languageID = intval($_POST['languageID']); } if (isset($_POST['tags'])) { $this->tags = StringUtil::trim($_POST['tags']); } $this->subscription = $this->closeThread = $this->isImportant = 0; // subscription if (isset($_POST['subscription'])) { $this->subscription = intval($_POST['subscription']); } // close thread if (isset($_POST['closeThread']) && $this->board->getModeratorPermission('canCloseThread')) { $this->closeThread = intval($_POST['closeThread']); } // disable thread if (isset($_POST['disableThread']) && $this->board->getModeratorPermission('canEnableThread')) { $this->disableThread = intval($_POST['disableThread']); } // thread status if (isset($_POST['isImportant'])) { $this->isImportant = intval($_POST['isImportant']); } if ($this->isImportant < 0 || $this->isImportant > 2) { $this->isImportant = 0; } if ($this->isImportant == 1 && !$this->board->getModeratorPermission('canPinThread')) { $this->isImportant = 0; } if ($this->isImportant == 2 && !$this->board->getModeratorPermission('canStartAnnouncement')) { $this->isImportant = 0; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['recipients'])) { $this->recipients = StringUtil::trim($_POST['recipients']); } if (isset($_POST['blindCopies'])) { $this->blindCopies = StringUtil::trim($_POST['blindCopies']); } if (isset($_POST['preview'])) { $this->preview = (bool) $_POST['preview']; } if (isset($_POST['send'])) { $this->send = (bool) $_POST['send']; } if (isset($_POST['draft'])) { $this->draft = (bool) $_POST['draft']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); $this->enableSolution = intval(isset($_POST['enableSolution'])); $this->enableOpenSolution = intval(isset($_POST['enableOpenSolution'])); $this->enableParticipantCheck = intval(isset($_POST['enableParticipantCheck'])); $this->enablePricechoice = intval(isset($_POST['enablePricechoice'])); $this->enableSponsorCheck = intval(isset($_POST['enableSponsorCheck'])); if (isset($_POST['preview'])) { $this->preview = (bool) $_POST['preview']; } if (isset($_POST['send'])) { $this->send = (bool) $_POST['send']; } if (isset($_POST['priceExpireSeconds'])) { $this->priceExpireSeconds = intval($_POST['priceExpireSeconds']); } if (isset($_POST['tags'])) { $this->tags = StringUtil::trim($_POST['tags']); } if (isset($_POST['send'])) { $this->send = (bool) $_POST['send']; } if (isset($_POST['classIDArray']) && is_array($_POST['classIDArray'])) { $this->classIDArray = $_POST['classIDArray']; } if (isset($_POST['sponsor']) && is_array($_POST['sponsor'])) { $this->sponsors = $_POST['sponsor']; } if (isset($_POST['jury']) && is_array($_POST['jury'])) { $this->jurys = $_POST['jury']; } if (isset($_POST['participant']) && is_array($_POST['participant'])) { $this->participants = $_POST['participant']; } if (isset($_POST['price']) && is_array($_POST['price'])) { $this->prices = $_POST['price']; } if (isset($_POST['ownerID'])) { $this->ownerID = intval($_POST['ownerID']); } // add contest user to jury if ($this->enableSolution) { $this->jurys[] = array('type' => $this->ownerID ? 'group' : 'user', 'id' => $this->ownerID); } // jurytalk $this->jurytalk_trigger = isset($_POST['jurytalk_trigger']); if ($this->jurytalk_trigger && isset($_POST['jurytalkAddText'])) { $this->jurytalk_message = $_POST['jurytalkAddText']; } // sponsortalk $this->sponsortalk_trigger = isset($_POST['sponsortalk_trigger']); if ($this->sponsortalk_trigger && isset($_POST['sponsortalkAddText'])) { $this->sponsortalk_message = $_POST['sponsortalkAddText']; } // comment $this->comment_trigger = isset($_POST['comment_trigger']); if ($this->comment_trigger && isset($_POST['commentAddText'])) { $this->comment_message = $_POST['commentAddText']; } if ($this->ownerID == 0) { $this->userID = WCF::getUser()->userID; } else { $this->groupID = $this->ownerID; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); $this->enableSolution = intval(isset($_POST['enableSolution'])); $this->enableOpenSolution = intval(isset($_POST['enableOpenSolution'])); $this->enableParticipantCheck = intval(isset($_POST['enableParticipantCheck'])); $this->enablePricechoice = intval(isset($_POST['enablePricechoice'])); $this->priceExpireSeconds = intval($_POST['priceExpireSeconds']); $this->enableSponsorCheck = intval(isset($_POST['enableSponsorCheck'])); $this->isFullDay = isset($_POST['isFullDay']); if (isset($_POST['tags'])) { $this->tags = StringUtil::trim($_POST['tags']); } if (isset($_POST['preview'])) { $this->preview = (bool) $_POST['preview']; } if (isset($_POST['send'])) { $this->send = (bool) $_POST['send']; } if (isset($_POST['state'])) { $this->state = StringUtil::trim($_POST['state']); } if (isset($_POST['classIDArray']) && is_array($_POST['classIDArray'])) { $this->classIDArray = $_POST['classIDArray']; } if (isset($_POST['ownerID'])) { $this->ownerID = intval($_POST['ownerID']); } 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 ($this->isFullDay) { $this->fromHour = $this->fromMinute = 0; } else { if (isset($_POST['fromHour'])) { $this->fromHour = intval($_POST['fromHour']); } if (isset($_POST['fromMinute'])) { $this->fromMinute = intval($_POST['fromMinute']); } } // starttime $this->fromTime = mktime($this->fromHour, $this->fromMinute, 0, $this->fromMonth, $this->fromDay, $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 ($this->isFullDay) { $this->untilHour = 23; $this->untilMinute = 55; } else { if (isset($_POST['untilHour'])) { $this->untilHour = intval($_POST['untilHour']); } if (isset($_POST['untilMinute'])) { $this->untilMinute = intval($_POST['untilMinute']); } } // endtime $this->untilTime = mktime($this->untilHour, $this->untilMinute, 0, $this->untilMonth, $this->untilDay, $this->untilYear); if ($this->ownerID == 0) { $this->userID = WCF::getUser()->userID; } else { $this->groupID = $this->ownerID; } }