added a flash and also some basic UCP code
This commit is contained in:
43
ucp.php
43
ucp.php
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/* This file is part of 3words
|
||||
*
|
||||
* (c) 2014 Leafcat Coding -- http://leafc.at
|
||||
*
|
||||
* License: AGPLv3, see LICENSE for full license text
|
||||
*
|
||||
* This file was touched by:
|
||||
* - nilsding <nilsding@nilsding.org>
|
||||
*
|
||||
* Oh, and before I forget...
|
||||
* ________ __________ __ ____ __ ______
|
||||
* / ____/ / / / ____/ //_/ / __ \/ / / / __ \
|
||||
* / /_ / / / / / / ,< / /_/ / /_/ / /_/ / with
|
||||
* / __/ / /_/ / /___/ /| | / ____/ __ / ____/ a
|
||||
* /_/ \____/\____/_/ |_| /_/ /_/ /_/_/ cactus!
|
||||
*
|
||||
* Thanks for listening.
|
||||
*/
|
||||
|
||||
include_once 'config.php';
|
||||
|
||||
switch ($_GET['page']) {
|
||||
case "login": {
|
||||
$tpl->draw("login");
|
||||
break;
|
||||
}
|
||||
case "logout": {
|
||||
session_destroy();
|
||||
session_start();
|
||||
$_SESSION['flash'] = "Sucessfully logged out";
|
||||
header('Location: index.php');
|
||||
break;
|
||||
}
|
||||
case "settings": {
|
||||
$tpl->draw("settings");
|
||||
break;
|
||||
}
|
||||
case "inbox":
|
||||
default: {
|
||||
$tpl->draw("inbox");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user