misuzu/public/auth.php

30 lines
594 B
PHP
Raw Normal View History

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