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(); }
public function PageLoad() { $this->page->PageLoad(); }
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(); }