예제 #1
0
 /**
  * @see	\wcf\page\IPage::show()
  */
 public function show()
 {
     if (empty($_POST) && $this->submit) {
         if ($this->userID) {
             $this->useCaptcha = false;
         }
         $this->submit();
     }
     parent::show();
 }
예제 #2
0
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('username' => $this->username, 'password' => $this->password, 'url' => $this->url));
 }
예제 #3
0
 /**
  * @see	\wcf\page\IPage::show()
  */
 public function show()
 {
     WCF::getSession()->checkPermissions(array('user.profile.canMail'));
     if (!$this->user->isAccessible('canMail')) {
         throw new PermissionDeniedException();
     }
     parent::show();
 }
예제 #4
0
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('username' => $this->username, 'email' => $this->email));
 }
예제 #5
0
 /**
  * @see	\wcf\page\IPage::assignVariables();
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('attachmentHandler' => $this->attachmentHandler, 'attachmentObjectID' => $this->attachmentObjectID, 'attachmentObjectType' => $this->attachmentObjectType, 'attachmentParentObjectID' => $this->attachmentParentObjectID, 'availableContentLanguages' => $this->availableContentLanguages, 'defaultSmilies' => $this->defaultSmilies, 'enableBBCodes' => $this->enableBBCodes, 'enableHtml' => $this->enableHtml, 'enableSmilies' => $this->enableSmilies, 'languageID' => $this->languageID ?: 0, 'maxTextLength' => $this->maxTextLength, 'permissionCanUseBBCodes' => $this->permissionCanUseBBCodes, 'permissionCanUseHtml' => $this->permissionCanUseHtml, 'permissionCanUseSmilies' => $this->permissionCanUseSmilies, 'preParse' => $this->preParse, 'showSignature' => $this->showSignature, 'showSignatureSetting' => $this->showSignatureSetting, 'smileyCategories' => $this->smileyCategories, 'subject' => $this->subject, 'text' => $this->text, 'tmpHash' => $this->tmpHash));
     if ($this->allowedBBCodesPermission) {
         WCF::getTPL()->assign('allowedBBCodes', explode(',', ArrayUtil::trim(WCF::getSession()->getPermission($this->allowedBBCodesPermission))));
     }
 }