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

45 lines
2.1 KiB
PHP

<?php
require_once __DIR__ . '/../startup.php';
if($flashii->loggedIn()){
header('Location: ../');
}
?>
<!DOCTYPE html>
<html lang="en-gb">
<head>
<meta charset="utf-8" />
<title>Flashii - Register</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" />
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.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>
<?php
if($regCheck)
print '<h3 class="miotitle" style="margin:0px;text-align:center;">The Registration Lockdown is currently in effect, registering without a Registration Code is currently impossible.</h3><br />';
?>
<div id="flashii-register"><h3>Register</h3>
<form method="post" action="/sys/register">
<table>
<tr><td>Username</td><td><input type="text" name="username" placeholder="Alphabetical with no spaces" /></td></tr>
<tr><td>E-mail</td><td><input type="text" name="email" placeholder="Used for e.g. password retrieval" /></td></tr>
<tr><td>Password</td><td><input type="password" name="password" placeholder="No restrictions (except having one)" /></td></tr>
<tr><td>Confirm Password</td><td><input type="password" name="confirmpassword" placeholder="Just to make sure" /></td></tr>
<?php
if($regCheck)
print '<tr><td>Registration Code</td><td><input type="password" name="registrationcode" placeholder="Ask a Flashii member for one" /></td></tr>';
?>
<tr><td>Verification</td><td><?=recaptcha_get_html($RECAPTCHApublickey);?></td></tr>
<tr><td>Agreements</td><td><input name="tos" type="checkbox" id="tos" /><label for="tos">I agree to the <a href="/r/terms" target="_blank">Terms of Service</a>.</label></td></tr>
<tr><td colspan="2"><input type="submit" name="submit" value="Register" /></td></tr>
</table>
</form>
</div>
<?php include(FII_SRC_DIR . '/mio_copyright.php'); ?>
</body>
</html>