/** * @see MultipleLinkPage::countItems() */ public function countItems() { parent::countItems(); $sql = "SELECT\tCOUNT(*) AS count\n\t\t\tFROM\twcf" . WCF_N . "_style"; $row = WCF::getDB()->getFirstRow($sql); return $row['count']; }
/** * @see Page::show() */ public function show() { // check permission WCF::getUser()->checkPermission('user.guestbook.canViewList'); HeaderMenu::setActiveMenuItem('wcf.header.menu.userGuestbook'); parent::show(); }
/** * @see Page::show() */ public function show() { // check permission WCF::getUser()->checkPermission('user.wantedPoster.canViewWantedPoster'); HeaderMenu::setActiveMenuItem('wcf.header.menu.userWantedPoster'); parent::show(); }
/** * @see MultipleLinkPage::countItems() */ public function countItems() { parent::countItems(); $sql = "SELECT\t\tCOUNT(*) AS count\n\t\t\tFROM \t\twcf" . WCF_N . "_user\n\t\t\tWHERE\t\tuserID IN (\n\t\t\t\t\t\tSELECT\tuserID\n\t\t\t\t\t\tFROM\twcf" . WCF_N . "_user_to_groups\n\t\t\t\t\t\tWHERE\tgroupID = " . $this->groupID . "\n\t\t\t\t\t)"; $result = WCF::getDB()->getFirstRow($sql); return $result['count']; }
/** * @see Page::show() */ public function show() { // check permission WCF::getUser()->checkPermission('user.wantedPoster.canViewWantedPoster'); if (WCF::getUser()->getPermission('user.membersList.canView')) { HeaderMenu::setActiveMenuItem('wcf.header.menu.memberslist'); } else { if (WCF::getUser()->getPermission('user.wantedPoster.canViewHeaderMenu')) { HeaderMenu::setActiveMenuItem('wcf.header.menu.userWantedPoster'); } } parent::show(); }
/** * @see Page::show() */ public function show() { // check permission WCF::getUser()->checkPermission('user.guestbook.canViewList'); if (WCF::getUser()->getPermission('user.membersList.canView')) { HeaderMenu::setActiveMenuItem('wcf.header.menu.memberslist'); } else { if (WCF::getUser()->getPermission('user.guestbook.canViewListMenuButton')) { HeaderMenu::setActiveMenuItem('wcf.header.menu.userGuestbook'); } } parent::show(); }
/** * @see Page::show() */ public function show() { UserProfileMenu::getInstance()->setActiveMenuItem('wcf.user.profile.menu.link.guestbook'); if (!MODULE_USER_GUESTBOOK) { throw new IllegalLinkException(); } parent::show(); }
/** * @see Page::show() */ public function show() { if (!$this->userID) { require_once WCF_DIR . 'lib/system/exception/PermissionDeniedException.class.php'; throw new PermissionDeniedException(); } WCF::getUser()->checkPermission('user.profile.attachmentManager.canView'); // set active tab UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.profile.attachmentManager'); WCF::getSession()->register('showThumbnails', $this->showThumbnails); WCF::getSession()->register('showOnlyMessageType', $this->showOnlyMessageType); WCF::getSession()->register('showOnlyFileType', $this->showOnlyFileType); WCF::getSession()->register('showOnlyImages', $this->showOnlyImages); // show form parent::show(); }
/** * @see MultipleLinkPage::countItems() */ public function countItems() { parent::countItems(); return $this->postList->countPosts(); }
/** * @see Page::show() */ public function show() { // check permission WCF::getUser()->checkPermission('user.contest.canViewContest'); if (!MODULE_CONTEST) { throw new IllegalLinkException(); } parent::show(); }
/** * @see Form::show() */ public function show() { // set active header menu item PageMenu::setActiveMenuItem('wcf.header.menu.user.contest'); // set active menu item ContestMenu::getInstance()->setContest($this->entry); ContestMenu::getInstance()->setActiveMenuItem('wcf.contest.menu.link.sponsortalk'); // check permission WCF::getUser()->checkPermission('user.contest.canViewContest'); if (!MODULE_CONTEST) { throw new IllegalLinkException(); } parent::show(); }
/** * @see MultipleLinkPage::countItems() */ public function countItems() { parent::countItems(); return count($this->result); }
/** * @see Page::show() */ public function show() { require_once WCF_DIR . 'lib/page/util/menu/PageMenu.class.php'; PageMenu::setActiveMenuItem('wcf.header.menu.help'); parent::show(); }
/** * @see MembersListPage::countItems() */ public function countItems() { return MultipleLinkPage::countItems(); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('pageList' => $this->pageList, 'host' => $this->host, 'hostID' => $this->hostID)); }
/** * @see Page::show() */ public function show() { WCF::getUser()->checkPermission('admin.general.attachmentManager.canView'); // enable menu item WCFACP::getMenu()->setActiveMenuItem('wcf.acp.menu.link.attachmentManager'); WCF::getSession()->register('showThumbnails', $this->showThumbnails); WCF::getSession()->register('showOnlyMessageType', $this->showOnlyMessageType); WCF::getSession()->register('showOnlyFileType', $this->showOnlyFileType); WCF::getSession()->register('showOnlyImages', $this->showOnlyImages); // show form parent::show(); }
public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('entries' => $this->entries, 'sidebarFactory' => $this->sidebarFactory)); }
/** * @see Page::show() */ public function show() { if (!MODULE_TAGGING) { throw new IllegalLinkException(); } parent::show(); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('avatars' => $this->availableAvatars, 'avatarCategories' => $this->availableAvatarCategories, 'avatarCategoryID' => $this->avatarCategoryID, 'avatarCategory' => $this->avatarCategory, 'hasDefaultAvatars' => $this->hasDefaultAvatars)); }
/** * @see Page::show() */ public function show() { require_once WCF_DIR . 'lib/page/util/menu/UserProfileMenu.class.php'; UserProfileMenu::getInstance()->userID = $this->userID; UserProfileMenu::getInstance()->setActiveMenuItem('wcf.user.profile.menu.link.guestbook'); // check permission WCF::getUser()->checkPermission('user.guestbook.canRead'); if ($this->user->ignoredUser) { require_once WCF_DIR . 'lib/system/exception/NamedUserException.class.php'; throw new NamedUserException(WCF::getLanguage()->get('wcf.user.profile.error.ignoredUser', array('$username' => StringUtil::encodeHTML($this->user->username)))); } if (WCF::getUser()->getPermission('user.guestbook.canViewMembersListTab') && WCF::getUser()->getPermission('user.membersList.canView')) { HeaderMenu::setActiveMenuItem('wcf.header.menu.memberslist'); } else { if (WCF::getUser()->getPermission('user.guestbook.canViewListMenuButton')) { HeaderMenu::setActiveMenuItem('wcf.header.menu.userGuestbook'); } } parent::show(); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); // assign sorting parameters WCF::getTPL()->assign(array('sortField' => $this->sortField, 'sortOrder' => $this->sortOrder)); }
/** * @see Page::show() */ public function show() { // set active header menu item PageMenu::setActiveMenuItem('wcf.header.menu.user.contest'); // check permission WCF::getUser()->checkPermission('user.contest.canViewContest'); if (!MODULE_CONTEST) { throw new IllegalLinkException(); } parent::show(); }