Ejemplo n.º 1
0
 public function configureData()
 {
     // Logout user
     Model_User::logout();
     // Go back to home or to where I was
     if (substr($_SERVER['HTTP_REFERER'], 0, strlen(Conf::get('ROOT_PATH'))) == Conf::get('ROOT_PATH')) {
         header('Location: ' . $_SERVER['HTTP_REFERER']);
     } else {
         header('Location: ' . Conf::get('ROOT_PATH'));
     }
 }
Ejemplo n.º 2
0
 /**
  * 退出
  */
 public function logoutAction()
 {
     $model = new Model_User();
     $model->logout();
     $this->gotoUri('index', 'login');
 }
Ejemplo n.º 3
0
 /**
     User logs in
 */
 public function logout()
 {
     Model_User::logout();
 }
Ejemplo n.º 4
0
 public function action_logout()
 {
     Model_User::logout();
     Response::redirect('portal');
 }
Ejemplo n.º 5
0
<?php

require_once './global.php';
require_once './helpers/secure.php';
Model_User::logout();
header("Location: index.php");