misuzu/public/auth.php

27 lines
533 B
PHP

<?php
// Delete this file in April 2019
require_once '../misuzu.php';
switch ($_GET['m'] ?? '') {
case 'logout':
echo tpl_render('auth.logout');
break;
case 'reset':
header('Location: ' . url('auth-reset'));
break;
case 'forgot':
header('Location: ' . url('auth-forgot'));
break;
case 'login':
default:
header('Location: ' . url('auth-login'));
break;
case 'register':
header('Location: ' . url('auth-register'));
break;
}