コード例 #1
0
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     // set active tab
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.management.' . $this->listType . 'list');
     // show form
     parent::show();
 }
コード例 #2
0
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     // set active tab
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.profile.account');
     parent::show();
 }
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     if (!MODULE_INVITATION) {
         throw new IllegalLinkException();
     }
     WCF::getUser()->checkPermission($this->neededPermissions);
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.management.invitations');
     parent::show();
 }