Config = new Config(); $this->Messages = new Messages(); $this->Language = new Language(); $this->InitLinks(); $this->InitPages(); $this->User = $User; //have to be after inicialization of pages $this->Feedback($User); } //init links private function InitLinks() { $this->Links['SourceCode'] = new Link('Zdrojové kódy','http://svn.zdechov.net/svn/phpvpsadmin/',''); $this->Links['logout'] = new Link('Odhlásit', '?logout' , 'Odhlásit se z webového systému'); } //init Pages private function InitPages() { $this->Pages['home'] = new PageHome($this->Language); $this->Pages['login'] = new PageLogin($this->Language); $this->Pages['register'] = new PageRegister($this->Language); } //gets feedback from post and get private function Feedback($User) { $this->Messages->RegMess($User); $this->ActivePage = $this->Messages->WhichPage($this->Pages); } //shows page concent public function ShowPage() { $this->ShowHeader(); //generate and shows active page if (isset($this->Pages[$this->ActivePage])) $this->Pages[$this->ActivePage]->Show(); $this->ShowFooter(); } //shows header of web page private function ShowHeader() { echo('Config->Web['Charset'].'"?> '. ''. ''. ''. ''. ''. ''. ''. ''); echo(''.$this->Config->Web['Title'].''. ''. ''); echo('
'); //left panel foreach($this->Pages as $Key => $Page ) { echo $Page->Link->Get(); echo '
'; } if ($this->User->Licence(0)) { echo 'Přihlášen '; echo $this->Links['logout']->Get(); } // else echo 'notlog'; echo ('
'); //right panel } //shows footer of webpage private function ShowFooter() { echo('
'.$this->Language->Texts['autors'].': '.$this->Config->Web['Authors'].'   '.$this->Links['SourceCode']->Get().''); echo('
'. ''. ''); } } ?>