/**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     // captcha
     $this->captchaID = 0;
     if (REGISTER_USE_CAPTCHA && !WCF::getSession()->getVar('captchaDone')) {
         $this->captchaID = Captcha::create();
     }
     $this->options = $this->getOptionTree('profile');
     //$this->options = $this->getCategoryOptions();
 }
Ejemplo n.º 2
0
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     if (!count($_POST)) {
         // get visible languages
         $this->readVisibleLanguages();
         // default values
         $this->readDefaultValues();
     }
     parent::readData();
     $this->url = 'index.php?form=UserEdit&userID=' . $this->user->userID . '&packageID=' . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED;
 }