コード例 #1
0
 /**
  * @see	\wcf\action\IAction::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['mode'])) {
         $this->mode = $_REQUEST['mode'];
     }
 }
コード例 #2
0
 /**
  * @see	wcf\action\IAction::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     $this->statementList = new UserJcoinsStatementList();
     $this->statementList->getConditionBuilder()->add('user_jcoins_statement.userID = ?', array(WCF::getUser()->userID));
     if ($this->statementList->countObjects() < 2) {
         throw new PermissionDeniedException();
     }
     $this->statementList->readObjectIDs();
 }
コード例 #3
0
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_GET['id'])) {
         $this->entryID = intval($_GET['id']);
     }
     $this->entry = new Entry($this->entryID);
     if ($this->entry === null) {
         throw new IllegalLinkException();
     }
 }
コード例 #4
0
 /**
  * @see	\wcf\action\IAction::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['id'])) {
         $this->notificationID = intval($_REQUEST['id']);
     }
     $this->notification = new UserNotification($this->notificationID);
     if (!$this->notification->notificationID) {
         throw new IllegalLinkException();
     }
     if ($this->notification->userID != WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
 }
コード例 #5
0
 /**
  * @see	\wcf\action\IAction::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['userID'])) {
         $this->userID = intval($_REQUEST['userID']);
     }
     $this->user = new User($this->userID);
     if (!$this->user->userID) {
         throw new IllegalLinkException();
     }
     if (!empty($_REQUEST['size'])) {
         $this->size = intval($_REQUEST['size']);
         if (!in_array($this->size, UserAvatar::$avatarThumbnailSizes)) {
             $this->size = 150;
         }
     }
 }
コード例 #6
0
 /**
  * @see	\wcf\action\IAction::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['eventID'])) {
         $this->eventID = intval($_REQUEST['eventID']);
         $this->event = new UserNotificationEvent($this->eventID);
         if (!$this->event->eventID) {
             throw new IllegalLinkException();
         }
     }
     if (isset($_REQUEST['userID'])) {
         $this->userID = intval($_REQUEST['userID']);
     }
     $this->user = new User($this->userID);
     if (!$this->user->userID) {
         throw new IllegalLinkException();
     }
     if (isset($_REQUEST['token'])) {
         $this->token = StringUtil::trim($_REQUEST['token']);
     }
     if (empty($this->token) || $this->token != $this->user->notificationMailToken) {
         throw new IllegalLinkException();
     }
 }
コード例 #7
0
	/**
	 * @see	wcf\action\IAction::readParameters()
	 */
	public function readParameters() {
		parent::readParameters();
		
		// check security token
		$this->checkSecurityToken();
	}