Пример #1
0
 /**
  * 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');
     }
 }
Пример #2
0
 /**
  * Run application.
  *
  * Starts application execution.
  *
  * @return void
  */
 public function run()
 {
     $this->mBase->run();
     $this->tpl('main');
 }
Пример #3
0
 /**
  * Run application.
  *
  * Starts application execution.
  *
  * @return void
  */
 public function run()
 {
     $this->mBase->run();
     // TODO: Implement actions here.
 }