mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 16:17:01 +02:00
added the webui to the tarball
This commit is contained in:
29
webui/controller/login/logout.php
Normal file
29
webui/controller/login/logout.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?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'];
|
||||
|
||||
logout();
|
||||
|
||||
$this->render();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user