misuzu/public/auth.php

30 lines
594 B
PHP
Raw Normal View History

<?php
2019-03-08 00:35:53 +00:00
// Delete this file in April 2019
require_once '../misuzu.php';
2019-03-18 22:02:30 +00:00
$mode = !empty($_GET['m']) && is_string($_GET['m']) ? $_GET['m'] : '';
switch ($mode) {
case 'logout':
2018-08-15 01:12:58 +00:00
echo tpl_render('auth.logout');
2018-07-21 23:54:12 +00:00
break;
case 'reset':
2019-03-08 00:35:53 +00:00
header('Location: ' . url('auth-reset'));
2018-07-21 23:54:12 +00:00
break;
case 'forgot':
2019-03-08 00:35:53 +00:00
header('Location: ' . url('auth-forgot'));
break;
case 'login':
2019-03-08 00:35:53 +00:00
default:
header('Location: ' . url('auth-login'));
break;
2018-01-28 03:32:28 +00:00
case 'register':
2019-03-08 00:35:53 +00:00
header('Location: ' . url('auth-register'));
break;
}