hajime/public/login.php
2023-08-12 00:16:32 +02:00

47 lines
1.8 KiB
PHP

<?php
require_once __DIR__ . '/../startup.php';
if($flashii->loggedIn()){
header('Location: ../');
}
$redirect = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/';
?>
<!DOCTYPE html>
<html lang="en-gb">
<head>
<meta charset="utf-8" />
<title>Flashii - Login</title>
<link rel="stylesheet" type="text/css" href="/assets/global.css" />
<link rel="stylesheet" type="text/css" href="/assets/css/mio.css" />
<link rel="stylesheet" type="text/css" href="/assets/css/bar.css" />
<script type="text/javascript" src="/assets/jquery.js"></script>
<script type="text/javascript" src="/assets/js/flashii.js"></script>
</head>
<body>
<a href="/"><img class="logo" src="/assets/pixel.png" alt="Flashii" /></a>
<div id="flashii-login"><h3>Login</h3>
<form method="post" action="/sys/login">
<input type="hidden" name="redirect" value="<?=$redirect;?>" />
<table>
<tr>
<td>Username</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="submit" value="Login" />
<input type="button" value="Lost Password" onclick="alert('Contact the administator about password changes, as of right now there is no automatic way of doing this.');" />
</td>
</tr>
</table>
</form>
</div>
<?php include(FII_SRC_DIR . '/mio_copyright.php'); ?>
</body>
</html>