/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_GET['result'])) { $this->result = StringUtil::trim($_GET['result']); } if (isset($_GET['success'])) { $this->success = true; } }
/** * @see Page::readParameters() */ public function readParameters() { $this->setDefaults(); parent::readParameters(); if (!WCF::getUser()->userID || !WCF::getUser()->getPermission('admin.general.wantedPoster.canEdit')) { require_once WCF_DIR . 'lib/system/exception/PermissionDeniedException.class.php'; throw new PermissionDeniedException(); } $this->userID = WCF::getUser()->userID; $uwp = new UserWantedPosterData($this->userID); }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['pageID'])) { $this->pageID = intval($_REQUEST['pageID']); } // create a new instance of DynamicPage $this->page = new DynamicPageEditor($this->pageID); // validate if (!$this->page->pageID) { throw new IllegalLinkException(); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); $this->canUseSmilies = WCF::getUser()->getPermission('user.message.canUseSmilies'); $this->canUseHtml = WCF::getUser()->getPermission('user.message.canUseHtml'); $this->canUseBBCodes = WCF::getUser()->getPermission('user.message.canUseBBCodes'); if (empty($_POST)) { if ($this->canUseSmilies) { $this->enableSmilies = true; } if ($this->canUseBBCodes) { $this->enableBBCodes = true; } $this->showSignature = true; $this->maxLifeTime = PMTOUSERGROUPS_MAXLIFETIME; } $this->maxTextLength = WCF::getUser()->getPermission('user.pm.maxLength'); }
/** * @see Form::readParameters() */ public function readParameters() { WysiwygCacheloaderForm::readParameters(); // read parameters if (isset($_REQUEST['instanceID'])) { $this->instanceID = intval($_REQUEST['instanceID']); } // create instance $this->instance = new InstanceableModule($this->instanceID); // validate instance if (!$this->instance->instanceID) { throw new IllegalLinkException(); } // write group option list $this->optionGroupList = $this->instance->options; // validate if (!$this->optionGroupList->getCount()) { HeaderUtil::redirect('index.php?form=DynamicPageEdit&pageID=' . $this->instance->pageID . '&packageID=' . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED); } // write pageID $this->pageID = $this->instance->pageID; }