21 lines
489 B
PHP
21 lines
489 B
PHP
<?php
|
|
/*****************************************************************************
|
|
* Logout.php
|
|
* Contains the controller for logging the user out.
|
|
*
|
|
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
|
|
*****************************************************************************/
|
|
|
|
class Logout extends HTMLController
|
|
{
|
|
public function __construct()
|
|
{
|
|
// Clear the entire sesssion.
|
|
Session::clear();
|
|
|
|
// Back to the frontpage you go.
|
|
header('Location: ' . BASEURL);
|
|
exit;
|
|
}
|
|
}
|