misuzu/public/auth.php

28 lines
533 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 21:47:25 +01:00
switch ($_GET['m'] ?? '') {
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;
}