Exemplo n.º 1
0
 /**
  * @see Page::show()
  */
 public function show()
 {
     // enable menu item
     if (!empty($this->activeMenuItem)) {
         WCFACP::getMenu()->setActiveMenuItem($this->activeMenuItem);
     }
     parent::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     // check user
     if (!WCF::getUser()->userID) {
         require_once WCF_DIR . 'lib/system/exception/PermissionDeniedException.class.php';
         throw new PermissionDeniedException();
     }
     $_SERVER['HTTP_ACCEPT'] = str_replace('platzhalter', 'application/xhtml+xml', $_SERVER['HTTP_ACCEPT']);
     parent::show();
     //echo_foot();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!MODULE_PM) {
         throw new IllegalLinkException();
     }
     // check permission
     WCF::getUser()->checkPermission('user.pm.canUsePm');
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     parent::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     // check permission
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     if (MODULE_MODERATED_USER_GROUP != 1) {
         throw new IllegalLinkException();
     }
     // set active tab
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.userGroups');
     parent::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     if (!MODULE_AVATAR) {
         throw new IllegalLinkException();
     }
     // check permission
     WCF::getUser()->checkPermission(array('user.profile.avatar.canUseDefaultAvatar', 'user.profile.avatar.canUploadAvatar'));
     // set active tab
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.profile.avatar');
     // show form
     parent::show();
 }
Exemplo n.º 6
0
 /**
  * @see Page::show()
  */
 public function show()
 {
     // check user
     if (!WCF::getUser()->userID) {
         require_once WCF_DIR . 'lib/system/exception/PermissionDeniedException.class.php';
         throw new PermissionDeniedException();
     }
     parent::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     // set active tab
     require_once WCF_DIR . 'lib/page/util/menu/UserCPMenu.class.php';
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.management.ignoredBoards');
     parent::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     // check user
     if (!WCF::getUser()->userID) {
         message('Zutritt nicht erlaubt!');
     }
     parent::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (MODULE_HELP != 1) {
         throw new IllegalLinkException();
     }
     require_once WCF_DIR . 'lib/page/util/menu/PageMenu.class.php';
     PageMenu::setActiveMenuItem('wcf.header.menu.help');
     if (!count($_POST) && !empty($this->query)) {
         $this->submit();
     }
     parent::show();
 }
 /**
  * @see Form::show()
  */
 public function show()
 {
     // user is already registered
     if (WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     // registration disabled
     if (REGISTER_DISABLED) {
         throw new NamedUserException(WCF::getLanguage()->get('wcf.user.register.error.disabled'));
     }
     // get the default langauge id
     $this->languageID = WCF::getLanguage()->getLanguageID();
     // get user options and categories from cache
     $this->readCache();
     AbstractForm::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     // set active menu item
     require_once WCF_DIR . 'lib/page/util/menu/PageMenu.class.php';
     PageMenu::setActiveMenuItem('wcf.header.menu.icsHolidayExporter');
     // check permission
     WCF::getUser()->checkPermission('user.managepages.canUseIHE');
     // show form
     parent::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     $this->styleID = $this->user->styleID;
     // get user options and categories from cache
     $this->readCache();
     // set active tab
     $this->setCategory();
     // show form
     AbstractForm::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     if (MODULE_USER_SIGNATURE != 1) {
         throw new IllegalLinkException();
     }
     // get max text length
     $this->maxTextLength = WCF::getUser()->getPermission('user.profile.signature.maxLength');
     // set active tab
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.profile.signature');
     // get signature
     if ($this->signatureCache == null) {
         $this->signatureCache = WCF::getUser()->signatureCache;
     }
     $this->text = WCF::getUser()->signature;
     // show form
     AbstractForm::show();
 }
 /**
  * @see Form::show()
  */
 public function show()
 {
     // set active header menu item
     PageMenu::setActiveMenuItem('wcf.header.menu.memberslist');
     // check permission
     WCF::getUser()->checkPermission('user.membersList.canView');
     if (MODULE_MEMBERS_LIST != 1) {
         throw new IllegalLinkException();
     }
     // get user options and categories from cache
     $this->readCache();
     AbstractForm::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     // check permission
     WCF::getUser()->checkPermission('admin.user.infraction.canWarnUser');
     if (MODULE_USER_INFRACTION != 1) {
         throw new IllegalLinkException();
     }
     // show form
     parent::show();
 }