/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['id'])) { $this->questionID = intval($_REQUEST['id']); } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['search'])) { $this->search = StringUtil::trim($_REQUEST['search']); } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_GET['packageID'])) { $this->packageID = intval($_GET['packageID']); } }
/** * @see wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['deletedPackageUpdateServerID'])) { $this->deletedPackageUpdateServerID = intval($_REQUEST['deletedPackageUpdateServerID']); } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); // detect group deletion if (isset($_REQUEST['deletedGroups'])) { $this->deletedGroups = intval($_REQUEST['deletedGroups']); } }
/** * @see wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); // get session log if (isset($_REQUEST['id'])) $this->sessionLogID = intval($_REQUEST['id']); $this->sessionLog = new ACPSessionLog($this->sessionLogID); if (!$this->sessionLog->sessionLogID) { throw new IllegalLinkException(); } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['id'])) { $this->entryID = intval($_REQUEST['id']); } $this->entry = ViewableEntry::getEntry($this->entryID); if ($this->entry === null) { throw new IllegalLinkException(); } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (WCF::getSession()->getPermission('admin.user.canViewIpAddress')) { $this->validSortFields[] = 'ipAddress'; $this->validSortFields[] = 'userAgent'; } if (!empty($_POST)) { HeaderUtil::redirect(LinkHandler::getInstance()->getLink('UsersOnlineList', array(), 'sortField=' . $this->sortField . '&sortOrder=' . $this->sortOrder)); exit; } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['templateGroupID'])) { $this->templateGroupID = intval($_REQUEST['templateGroupID']); } if (isset($_REQUEST['searchTemplateName'])) { $this->searchTemplateName = StringUtil::trim($_REQUEST['searchTemplateName']); } if (isset($_REQUEST['application'])) { $this->application = StringUtil::trim($_REQUEST['application']); } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (!empty($_REQUEST['username'])) { $this->username = StringUtil::trim($_REQUEST['username']); } if (!empty($_REQUEST['filename'])) { $this->filename = StringUtil::trim($_REQUEST['filename']); } if (!empty($_REQUEST['fileType'])) { $this->fileType = $_REQUEST['fileType']; } }
/** * @see \wcf\page\AbstractPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['transactionID'])) { $this->transactionID = StringUtil::trim($_REQUEST['transactionID']); } if (isset($_REQUEST['username'])) { $this->username = StringUtil::trim($_REQUEST['username']); } if (isset($_REQUEST['subscriptionID'])) { $this->subscriptionID = intval($_REQUEST['subscriptionID']); } }
public function readParameters() { parent::readParameters(); if (isset($_REQUEST['id'])) { $this->categoryID = intval($_REQUEST['id']); } $this->category = CategoryHandler::getInstance()->getCategory($this->categoryID); if ($this->category === null) { throw new IllegalLinkException(); } $this->category = new NewsCategory($this->category); if (!$this->category->isAccessible()) { throw new PermissionDeniedException(); } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['id'])) { $this->categoryID = intval($_REQUEST['id']); $this->category = CategoryHandler::getInstance()->getCategory($this->categoryID); if ($this->category === null) { throw new IllegalLinkException(); } } else { // load first category $categories = CategoryHandler::getInstance()->getCategories('de.codequake.cms.file'); $this->category = array_shift($categories); $this->categoryID = $this->category->categoryID; } }
/** * @see wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); $this->conditions = new PreparedStatementConditionBuilder(); if (!empty($_REQUEST['id'])) { $this->searchID = intval($_REQUEST['id']); if ($this->searchID) { $this->readSearchResult(); } if (!count($this->userIDs)) { throw new IllegalLinkException(); } $this->conditions->add("user_table.userID IN (?)", array($this->userIDs)); } // get user options $this->readUserOptions(); }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['assignedUserID'])) { $this->assignedUserID = intval($_REQUEST['assignedUserID']); } if (isset($_REQUEST['status'])) { $this->status = intval($_REQUEST['status']); } $this->availableDefinitions = ModerationQueueManager::getInstance()->getDefinitions(); if (isset($_REQUEST['definitionID'])) { $this->definitionID = intval($_REQUEST['definitionID']); if ($this->definitionID && !isset($this->availableDefinitions[$this->definitionID])) { throw new IllegalLinkException(); } } }
/** * @see wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['searchID'])) { $this->searchID = intval($_REQUEST['searchID']); } // get search data $conditions = new PreparedStatementConditionBuilder(); $conditions->add("searchID = ?", array($this->searchID)); $conditions->add("userID = ?", array(WCF::getUser()->userID)); $conditions->add("searchType = ?", array('packages')); $sql = "SELECT\t*\n\t\t\tFROM\twcf" . WCF_N . "_search\n\t\t\t" . $conditions; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($conditions->getParameters()); $this->search = new Search(null, $statement->fetchArray()); if (empty($this->search->searchID)) { throw new IllegalLinkException(); } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); // letter if (isset($_REQUEST['letter']) && mb_strlen($_REQUEST['letter']) == 1 && mb_strpos(self::$availableLetters, $_REQUEST['letter']) !== false) { $this->letter = $_REQUEST['letter']; } if (!empty($_REQUEST['id'])) { $this->searchID = intval($_REQUEST['id']); $this->search = new Search($this->searchID); if (!$this->search->searchID || $this->search->userID != WCF::getUser()->userID || $this->search->searchType != 'users') { throw new IllegalLinkException(); } } if (!empty($_POST)) { $parameters = http_build_query($_POST, '', '&'); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('MembersList', array(), $parameters)); exit; } }
/** * * @see wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); // categorized entries if (isset($_REQUEST['id'])) { $this->categoryID = intval($_REQUEST['id']); $this->category = CategoryHandler::getInstance()->getCategory($this->categoryID); if ($this->category === null) { throw new IllegalLinkException(); } $this->category = new LinklistCategory($this->category); if (!$this->category->isAccessible()) { throw new PermissionDeniedException(); } } else { if (isset($_REQUEST['userID'])) { $this->userID = intval($_REQUEST['userID']); $this->user = new User($this->userID); if (!$this->user->userID) { throw new IllegalLinkException(); } } } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['filter'])) { $this->filter = $_REQUEST['filter']; } if (!in_array($this->filter, UserConversationList::$availableFilters)) { $this->filter = ''; } // user settings if (WCF::getUser()->conversationsPerPage) { $this->itemsPerPage = WCF::getUser()->conversationsPerPage; } // labels $this->labelList = ConversationLabel::getLabelsByUser(); if (isset($_REQUEST['labelID'])) { $this->labelID = intval($_REQUEST['labelID']); $validLabel = false; foreach ($this->labelList as $label) { if ($label->labelID == $this->labelID) { $validLabel = true; break; } } if (!$validLabel) { throw new IllegalLinkException(); } } }
/** * @see \wcf\page\IPage::readParameters() */ public function readParameters() { parent::readParameters(); // letter if (isset($_REQUEST['letter']) && mb_strlen($_REQUEST['letter']) == 1 && mb_strpos(self::$availableLetters, $_REQUEST['letter']) !== false) { $this->letter = $_REQUEST['letter']; } // news by category if (isset($_REQUEST['id'])) { // get category id $this->categoryID = intval($_REQUEST['id']); // get category by id $this->category = CategoryHandler::getInstance()->getCategory($this->categoryID); // check category if ($this->category === null) { throw new IllegalLinkException(); } $this->category = new NewsCategory($this->category); if (!$this->category->isAccessible()) { throw new PermissionDeniedException(); } } }