public function SetFooter($value) { $this->footer = $value; } public function GetFooter() { return $this->RenderText($this->footer); } public function BeginRender() { $this->loginControl->ProcessMessages(); } public function EndRender() { echo $this->renderer->Render($this); } public function addListeners() { $this->OnGetCustomTemplate->AddListener('Global_GetCustomTemplateHandler'); $this->loginControl->OnGetCustomTemplate->AddListener('Global_GetCustomTemplateHandler'); } } $loginPage = new LoginPage(new LoginControl(GetIdentityCheckStrategy(), 'Dashboard.php', GetCaptions('UTF-8'))); SetUpUserAuthorization(); $loginPage->addListeners(); $loginPage->SetHeader(GetPagesHeader()); $loginPage->SetFooter(GetPagesFooter()); $loginPage->BeginRender(); $loginPage->BeginRender(); $loginPage->EndRender();