/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); // validate action switch ($this->action) { case 'icq': case 'msn': case 'aim': case 'yim': case 'skype': case 'jabber': break; default: throw new IllegalLinkException(); } // set template name $this->templateName = 'messenger' . ucfirst($this->action); // user id if (isset($_REQUEST['userID'])) { $this->userID = intval($_REQUEST['userID']); } $this->user = new UserProfile($this->userID); if (!$this->user->userID) { throw new IllegalLinkException(); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['cleared'])) { $this->cleared = intval($_REQUEST['cleared']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['userID'])) { $this->userID = ArrayUtil::toIntegerArray($_REQUEST['userID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['type'])) { $this->type = StringUtil::trim($_REQUEST['type']); } if (isset($_REQUEST['name'])) { $this->name = StringUtil::trim($_REQUEST['name']); } if (isset($_REQUEST['startInput']) && !empty($_REQUEST['startInput'])) { $this->start = LWUtil::checkInt($_REQUEST['startInput'], 1); if ($this->start >= 1 && $this->start <= 99) { // e.g. 5 => 501; 14 => 1401 $this->start *= 100; $this->start++; } } else { if (isset($_REQUEST['start'])) { $this->start = LWUtil::checkInt($_REQUEST['start'], 0); } else { if (isset($_REQUEST['relationalID'])) { $this->relationalID = LWUtil::checkInt($_REQUEST['relationalID']); } } } if (isset($_REQUEST['rowCount'])) { $this->rowCount = LWUtil::checkInt($_REQUEST['rowCount'], 10, 500); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['decline'])) { $this->decline = $_REQUEST['decline']; } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (!MODULE_ABOUT_LISTING) { throw new IllegalLinkException(); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['q'])) { $this->input = StringUtil::trim($_REQUEST['q']); } }
/** * @see Page::readParameters */ public function readParameters() { global $resource; parent::readParameters(); // maxships /*foreach($_POST as $key => $row) { if(strstr($key, 'maxShip')) { unset($_POST[$key]); $key = substr($key, 7, 3); $maxShips[$key] = intval($row); } }*/ // ships foreach ($_POST as $key => $row) { if (strstr($key, 'ship')) { $key = substr($key, 4, 3); if (intval($row) == 0) { continue; } if ($row > LWCore::getPlanet()->{$resource[$key]}) { $ships[$key] = LWCore::getPlanet()->{$resource[$key]}; } else { $ships[$key] = intval($row); } } } $this->fleet = $ships; $this->checkQueue(); }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['activePackageID'])) { $this->packageID = intval($_REQUEST['activePackageID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); // load cache $cache = WCF::getCache()->get('help-' . PACKAGE_ID); $this->items = $cache['items']; $this->helpStructure = $cache['structure']; unset($cache); // check item options and permissions $this->checkOptions(); $this->checkPermissions(); // check active item if (isset($_REQUEST['item'])) { $this->parentHelpItem = $_REQUEST['item']; if (!isset($this->items[$this->parentHelpItem])) { throw new IllegalLinkException(); } } else { // get parent by referer if (WCF::getSession()->lastRequestURI) { foreach ($this->items as $item) { if ($item->refererPattern) { if (preg_match('~' . $item->refererPattern . '~i', WCF::getSession()->lastRequestURI)) { $this->parentHelpItem = $item->helpItem; } } } } } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (!empty($_POST['action']) && $_POST['action'] == 'compare') { if (!empty($_POST['version1']) && !empty($_POST['version2'])) { require_once WCF_DIR . 'lib/acp/package/Package.class.php'; $this->verResult = Package::compareVersion($_POST['version1'], $_POST['version2']); // $this->verResult = version_compare($_POST['version1'], $_POST['version2']); $this->verFirst = $_POST['version1']; $this->verSecond = $_POST['version2']; if ($this->logFile) { $entries = array(); $u = WCF::getUser()->username ? WCF::getUser()->username : '******'; $t = TIME_NOW; if (is_file(WBB_DIR . '/' . $this->logFile)) { $entries = file(WBB_DIR . '/' . $this->logFile); } array_push($entries, $t . '||' . date('d.m.Y H:i:s', $t) . '||' . $u . '||' . $this->verFirst . '||' . $this->verSecond); rsort($entries); if (!empty($this->logMaxEntries) && $this->logMaxEntries > 0) { $output = array_slice($entries, 0, $this->logMaxEntries); } else { $output = $entries; } if (count($output) && ($fh = @fopen(WBB_DIR . '/' . $this->logFile, 'w'))) { foreach ($output as $k => $line) { fwrite($fh, trim($line) . "\n"); } fclose($fh); } } } } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_GET['allianceID'])) { $this->allianceID = intval($_GET['allianceID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['detailedFleetID'])) { $this->detailedFleetID = intval($_REQUEST['detailedFleetID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['deletedItemID'])) { $this->deletedItemID = intval($_REQUEST['deletedItemID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['userID'])) { $this->userID = intval($_REQUEST['userID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_POST['smileyCategoryID'])) { $this->smileyCategoryID = intval($_POST['smileyCategoryID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); // read page number parameter if (isset($_REQUEST['pageNo'])) { $this->pageNo = intval($_REQUEST['pageNo']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['luceneID'])) { $this->luceneID = intval($_REQUEST['luceneID']); } if (isset($_REQUEST['start'])) { $this->start = intval($_REQUEST['start']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['attachmentID'])) { $this->attachmentID = intval($_REQUEST['attachmentID']); } if (isset($_REQUEST['thumbnail'])) { $this->thumbnail = intval($_REQUEST['thumbnail']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['reportID'])) { $this->reportID = intval($_REQUEST['reportID']); } else { require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php'; throw new IllegalLinkException(); } }
/** * @see Page::assignVariables() */ public function readParameters() { parent::readParameters(); if (!count($_POST)) { // refresh package database PackageUpdate::refreshPackageDatabase(); } // get updatable packages $this->availableUpdates = PackageUpdate::getAvailableUpdates(); }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['activePackageID'])) { $this->activePackageID = intval($_REQUEST['activePackageID']); } if (isset($_REQUEST['languageCode'])) { $this->languageCode = StringUtil::trim($_REQUEST['languageCode']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['successfullSorting'])) { $this->successfullSorting = true; } if (isset($_REQUEST['deletedPageMenuItemID'])) { $this->deletedPageMenuItemID = intval($_REQUEST['deletedPageMenuItemID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_POST['query'])) { $this->query = StringUtil::trim($_POST['query']); if (CHARSET != 'UTF-8') { $this->query = StringUtil::convertEncoding('UTF-8', CHARSET, $this->query); } } }
/** * @see Page::readParameters */ public function readParameters() { parent::readParameters(); if (isset($_POST['targetmoon'])) { $this->moonID = intval($_POST['targetmoon']); } else { message('Mond auswählen!'); } $this->getData(); }
/** * @see Page::readParamaters() */ public function readParameters() { $this->page = new DynamicPage($this->pageID); if (!$this->page->pageID) { throw new IllegalLinkException(); } $this->modules = $this->page->getModuleManager()->getModuleInstances(); parent::readParameters(); $this->page->getModuleManager()->readParameters(); }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['templatePackID'])) { $this->templatePackID = intval($_REQUEST['templatePackID']); } if (isset($_REQUEST['deletedTemplates'])) { $this->deletedTemplates = intval($_REQUEST['deletedTemplates']); } }
/** * @see Page::readParameters */ public function readParameters() { parent::readParameters(); require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php'; if (isset($_GET['planetID'])) { $this->planetID = intval($_GET['planetID']); } else { throw new IllegalLinkException(); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['query'])) { $queryString = $_REQUEST['query']; if (CHARSET != 'UTF-8') { $queryString = StringUtil::convertEncoding('UTF-8', CHARSET, $queryString); } $this->query = ArrayUtil::trim(explode(',', $queryString)); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_GET['entryID'])) { $this->entryID = intval($_GET['entryID']); } $this->entry = new Entry($this->entryID); if (!$this->entry->entryID) { throw new IllegalLinkException(); } }