2013-07-24 22:14:05 +02:00

35 lines
617 B
PHP

<?php
class ControllerLoginLogout extends Controller {
private $error = array();
public function index(){
$this->id = "content";
$this->template = "login/logout.tpl";
$this->layout = "common/layout";
$request = Registry::get('request');
$db = Registry::get('db');
$this->load->model('user/auth');
$this->document->title = $this->data['text_logout'];
if(ENABLE_SAAS == 1) {
$this->load->model('saas/customer');
$this->model_saas_customer->offline(Registry::get('username'));
}
logout();
$this->render();
}
}
?>