public function verifyPermissions() { try { if (!$this->userPermissions['canUseGuestbook']) { throw new NamedUserException(WCF::getLanguage()->get('wcf.user.profile.error.guestbook.permissionDenied')); } if (!$this->frame->getUser()->getPermission('user.guestbook.canUseGuestbook')) { throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.profile.error.guestbook.notActivated', array('username' => $this->frame->getUser()->username))); } if (!$this->userPermissions['canViewGuestbook']) { throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.profile.error.guestbook.protected', array('username' => $this->frame->getUser()->username))); } } catch (NamedUserException $e) { $this->frame->assignVariables(); WCF::getTPL()->assign('errorMessage', $e->getMessage()); WCF::getTPL()->display('userProfileAccessDenied'); exit; } }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); $this->frame->assignVariables(); WCF::getTPL()->assign(array('userWarnings' => $this->userWarningList->getObjects(), 'userSuspensions' => $this->userSuspensionList->getObjects())); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); $this->frame->assignVariables(); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); $this->frame->assignVariables(); WCF::getTPL()->assign(array('action' => $this->action)); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); $this->frame->assignVariables(); WCF::getTPL()->assign(array('categories' => $this->categories, 'contactInformation' => $this->contactInformation, 'generalInformation' => $this->generalInformation, 'friends' => $this->friends, 'profileVisitors' => $this->profileVisitors, 'allowSpidersToIndexThisPage' => true)); }