コード例 #1
0
ファイル: AdminPage.php プロジェクト: hugutux/booked
 public function PageLoad()
 {
     $user = ServiceLocator::GetServer()->GetUserSession();
     if (!$this->page->IsAuthenticated() || !$user->IsAdmin) {
         $this->RedirectResume(sprintf("%s%s?%s=%s", $this->page->path, Pages::LOGIN, QueryStringKeys::REDIRECT, urlencode($this->page->server->GetUrl())));
         die;
     }
     $this->page->PageLoad();
 }
コード例 #2
0
ファイル: SecurePage.php プロジェクト: Trideon/gigolo
 public function PageLoad()
 {
     $this->page->PageLoad();
 }
コード例 #3
0
 public function PageLoad()
 {
     $typeLookup = array(CustomAttributeTypes::SINGLE_LINE_TEXTBOX => 'SingleLineTextbox', CustomAttributeTypes::MULTI_LINE_TEXTBOX => 'MultiLineTextbox', CustomAttributeTypes::CHECKBOX => 'Checkbox', CustomAttributeTypes::SELECT_LIST => 'SelectList');
     $this->Set('Types', $typeLookup);
     parent::PageLoad();
 }