/**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['interceptorMissiles'])) {
         $this->interceptorMissiles = intval($_POST['interceptorMissiles']);
     }
 }
 /**
  * @see AbstractSecureAction::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_GET['id'])) {
         $this->newsletterID = intval($_GET['id']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['production'])) {
         $this->production = StringUtil::trim($_REQUEST['production']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['filename'])) {
         $this->filename = StringUtil::trim($_POST['filename']);
     }
     if (isset($_POST['saveSelection'])) {
         $this->saveSelection = true;
     }
     if (isset($_POST['sourceID'])) {
         $this->sourceID = intval($_POST['sourceID']);
     }
     if (isset($_POST['wcfSetupResource'])) {
         $this->wcfSetupResource = StringUtil::trim($_POST['wcfSetupResource']);
         // override package name if building WCFSetup
         $this->filename = 'pn';
     }
     $this->source = new Source($this->sourceID);
     if (!$this->source->sourceID) {
         throw new IllegalLinkException();
     }
     if (!$this->source->hasAccess()) {
         throw new PermissionDeniedException();
     }
     // read selected resources
     $this->readPackageSelection();
     // handle current directory resource
     $sourceData = WCF::getSession()->getVar('source' . $this->source->sourceID);
     if ($sourceData === null) {
         throw new SystemException('Resource directory missing');
     }
     $sourceData = unserialize($sourceData);
     $this->directory = $sourceData['directory'];
 }
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['action'])) {
         $this->action = $_REQUEST['action'];
     }
 }
Пример #6
0
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['fleetID'])) {
         $this->fleetID = LWUtil::checkInt($_REQUEST['fleetID']);
     }
 }
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['serverID'])) {
         $this->serverID = intval($_REQUEST['serverID']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['sourceListPositions']) && is_array($_POST['sourceListPositions'])) {
         $this->positions = ArrayUtil::toIntegerArray($_POST['sourceListPositions']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['templatePackID'])) {
         $this->templatePackID = intval($_REQUEST['templatePackID']);
     }
 }
Пример #10
0
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['allianceID'])) {
         $this->allianceID = intval($_REQUEST['allianceID']);
     } else {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
     if (isset($_REQUEST['userID'])) {
         $this->userID = intval($_REQUEST['userID']);
     } else {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
     if ($this->allianceID != WCF::getUser()->ally_id) {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
     if ($this->userID != WCF::getUser()->userID) {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
     $this->alliance = Alliance::getByUserID(WCF::getUser()->userID, true);
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['languageID'])) {
         $this->languageID = intval($_REQUEST['languageID']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_GET['buildingID'])) {
         $this->buildingID = intval($_GET['buildingID']);
     }
 }
 /**
  * @see	Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     // check permissions
     WCF::getUser()->checkPermission('admin.content.cms.canEditPages');
     if (isset($_REQUEST['instanceID'])) {
         $this->instanceID = intval($_REQUEST['instanceID']);
     }
 }
 public function readParameters()
 {
     parent::readParameters();
     if (BASHCore::getUser()->userID == 0) {
         throw new PermissionDeniedException();
     }
     if (isset($_REQUEST['entryID'])) {
         $this->entryID = intval($_REQUEST['entryID']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['groupID'])) {
         $this->groupID = intval($_REQUEST['groupID']);
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['parentPmID'])) {
         $this->parentPmID = intval($_REQUEST['parentPmID']);
     }
     if (!$this->parentPmID) {
         throw new IllegalLinkException();
     }
 }
 /**
  * @see	Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['packageName'])) {
         $this->packageName = StringUtil::trim($_POST['packageName']);
     }
     if (isset($_POST['sourceID'])) {
         $this->sourceID = intval($_POST['sourceID']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['status'])) {
         $this->status = $_POST['status'];
     }
     if (isset($_POST['name'])) {
         $this->name = $_POST['name'];
     }
 }
Пример #19
0
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['oventID'])) {
         $this->oventID = LWUtil::checkInt($_REQUEST['oventID']);
     }
     if (isset($_REQUEST['highlighted'])) {
         $this->highlighted = LWUtil::checkInt($_REQUEST['highlighted'], 0, 1);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['userID'])) {
         $this->userID = intval($_REQUEST['userID']);
     }
     if (isset($_REQUEST['pageNo'])) {
         $this->pageNo = intval($_REQUEST['pageNo']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['userID'])) {
         $this->userID = intval($_REQUEST['userID']);
     }
     if (isset($_REQUEST['doIgnore'])) {
         $this->doIgnore = intval($_REQUEST['doIgnore']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['fleetID'])) {
         $this->fleetID = intval($_REQUEST['fleetID']);
     } else {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['templateID']) && is_array($_REQUEST['templateID'])) {
         $this->templateID = ArrayUtil::toIntegerArray($_REQUEST['templateID']);
     }
     if (isset($_REQUEST['templatePackID'])) {
         $this->templatePackID = intval($_REQUEST['templatePackID']);
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_GET['id'])) {
         $this->subscriberID = intval($_GET['id']);
     }
     if (isset($_GET['t'])) {
         $this->token = StringUtil::trim($_GET['t']);
     }
 }
 /**
  * @see	Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_GET['languageID'])) {
         $this->languageID = intval($_GET['languageID']);
     }
     if (isset($_GET['url'])) {
         $this->url = StringUtil::trim(urldecode($_GET['url']));
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['smileyCategoryID'])) {
         $this->smileyCategoryID = intval($_REQUEST['smileyCategoryID']);
     }
     $this->smileyCategory = new SmileyCategoryEditor($this->smileyCategoryID);
     if (!$this->smileyCategory->smileyCategoryID) {
         throw new IllegalLinkException();
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['packageUpdateServerID'])) {
         $this->packageUpdateServerID = intval($_REQUEST['packageUpdateServerID']);
     }
     $this->updateServer = new UpdateServerEditor($this->packageUpdateServerID);
     if (!$this->updateServer->packageUpdateServerID) {
         throw new IllegalLinkException();
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['invitationID'])) {
         $this->invitationID = intval($_REQUEST['invitationID']);
     }
     $this->invitation = new InvitationEditor($this->invitationID);
     if (!MODULE_INVITATION || !$this->invitation->invitationID || $this->invitation->isSealed) {
         throw new IllegalLinkException();
     }
 }
 /**
  * @see	Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['sourceID'])) {
         $this->sourceID = intval($_POST['sourceID']);
     }
     $this->source = new Source($this->sourceID);
     if (!$this->source->sourceID) {
         throw new IllegalLinkException();
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['helpItemID'])) {
         $this->helpItemID = intval($_REQUEST['helpItemID']);
     }
     $this->helpItem = new HelpItemEditor($this->helpItemID);
     if (!$this->helpItem->helpItemID) {
         throw new IllegalLinkException();
     }
 }