forked from Public/pics
Initial commit.
This is to be the new HashRU website based on the Aaronweb.net/Kabuki CMS.
This commit is contained in:
20
controllers/Logout.php
Normal file
20
controllers/Logout.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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 = [];
|
||||
|
||||
// Back to the frontpage you go.
|
||||
header('Location: ' . BASEURL);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user