/**
  * @see wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     // get installation stack
     if ($this->packageInstallationStack !== null && $this->packageUpdate !== null) {
         $this->packageInstallationStack = $this->packageUpdate->getPackageInstallationStack();
     }
 }
 /**
  * @see wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     if (!count($_POST)) {
         $this->url = WCF::getSession()->requestURI;
     }
 }
Example #3
0
 /**
  * @see wcf\page\IPage::assignVariables()
  */
 public function readData()
 {
     parent::readData();
     if (!count($_POST)) {
         // get marked user ids
         if (empty($this->action)) {
             // get type id
             $typeID = ClipboardHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.user');
             if ($typeID === null) {
                 throw new SystemException("clipboard item type 'com.woltlab.wcf.user' is unknown.");
             }
             // get user ids
             $users = ClipboardHandler::getInstance()->getMarkedItems($typeID);
             if (!isset($users['com.woltlab.wcf.user']) || empty($users['com.woltlab.wcf.user'])) {
                 throw new IllegalLinkException();
             }
             // load users
             $this->userIDs = array_keys($users['com.woltlab.wcf.user']);
             $this->users = $users['com.woltlab.wcf.user'];
         }
         if (MAIL_USE_FORMATTED_ADDRESS) {
             $this->from = MAIL_FROM_NAME . ' <' . MAIL_FROM_ADDRESS . '>';
         } else {
             $this->from = MAIL_FROM_ADDRESS;
         }
     }
     if (!empty($this->userIDs) && empty($this->users)) {
         $userList = new UserList();
         $userList->getConditionBuilder()->add("user.userID IN (?)", array($this->userIDs));
         $userList->sqlOrderBy = "user.username ASC";
         $userList->readObjects();
         $this->users = $userList->getObjects();
     }
     $this->groups = UserGroup::getAccessibleGroups(array(), array(UserGroup::GUESTS, UserGroup::EVERYONE));
 }
 /**
  * @see wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->updateServers = PackageUpdateServer::getActiveUpdateServers();
 }
 /**
  * @see wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     // extract realm
     if (preg_match('/realm="(.*?)"/i', $this->header, $match)) {
         $this->realm = $match[1];
     }
     // get existing auth data
     if ($this->packageUpdateServerID) {
         $updateServer = new PackageUpdateServer($this->packageUpdateServerID);
         $authData = $updateServer->getAuthData();
         if (isset($authData['loginUsername'])) {
             $this->loginUsername = $authData['loginUsername'];
         }
         if (isset($authData['loginPassword'])) {
             $this->loginPassword = $authData['loginPassword'];
         }
         if (isset($authData['loginUsername']) || isset($authData['loginPassword'])) {
             $this->errorField = 'loginPassword';
             $this->errorType = 'invalid';
         }
     }
     $this->buildPostParameters();
     $this->buildGetParameters();
 }
 /**
  * @see wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->readGroups();
 }