/** * Run application. * * Starts application execution. * * @return void */ public function run() { if (isset($_GET['logout'])) { unset($_SESSION['login']); header('Location: /'); exit; } else { if (isset($_POST['u']) && isset($_POST['p'])) { $_SESSION['post'] = $_POST; header('Location: /'); exit; } } if ($this->authenticate()) { $this->mBase->run(); } else { $this->tpl('login'); } }
/** * Run application. * * Starts application execution. * * @return void */ public function run() { $this->mBase->run(); $this->tpl('main'); }
/** * Run application. * * Starts application execution. * * @return void */ public function run() { $this->mBase->run(); // TODO: Implement actions here. }