More work on the authentication bit.

This commit is contained in:
flash 2015-04-08 17:18:19 +00:00
parent a1320350bd
commit 9fc133aeb0
3 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,8 @@
{% include 'global/header.tpl' %}
<div class="content standalone">
<h1>Information</h1>
<hr class="default" />
{{ page.message }}
{% if page.redirect %}<br /><a href="{{ page.redirect }}" class="default">Click here if you aren't being redirected.</a>{% endif %}
</div>
{% include 'global/footer.tpl' %}

View file

@ -7,6 +7,9 @@
<meta name="description" content="Any community that gets its laughs by pretending to be idiots will eventually be flooded by actual idiots who mistakenly believe that they're in good company. Welcome to Flashii." />
<meta name="keywords" content="Flashii, Media, Flashwave, Murasaki, Misaka, Circle, Zeniea, MalwareUp, Cybernetics, Saibateku, Community" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
{% if page.redirect %}
<meta http-equiv="refresh" content="5; URL={{ page.redirect }}" />
{% endif %}
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="//{{ sakura.urls.content }}/global.css" />
<link rel="stylesheet" type="text/css" href="//{{ sakura.urls.content }}/css/yuuno/yuuno.css" />

View file

@ -9,6 +9,33 @@ namespace Sakura;
// Include components
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
// Page actions
if(
isset($_REQUEST['mode']) &&
isset($_REQUEST['time']) &&
isset($_REQUEST['session'])
) {
switch($_REQUEST['mode']) {
case 'login':
case 'register':
case 'forgotpassword':
// Add page specific things
$renderData['page'] = [
'title' => 'auth test',
'redirect' => $_SERVER['PHP_SELF'],
'message' => 'meow meow meow meow meow meow meow meow meow meow meow meow'
];
// Print page contents
print Templates::render('errors/information.tpl', $renderData);
exit;
}
}
// Add page specific things
$renderData['page'] = [
'title' => 'Login to Flashii'