battles/views/register.php

29 lines
1.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
# Date: 22.02.2022 (23:56)
use Battles\Template;
Template::header('Регистрация персонажа');
?>
<a href="/"> ← на главную</a>
<?php if ($_COOKIE[GAMEDOMAIN] ?? null): ?>
<h3>Не больше одной регистрации в час!</h3>
<?php else: ?>
<h1>Регистрация</h1>
<form method="post">
<label>
<input required name="login" placeholder='Имя персонажа'> Имя персонажа.
</label><br>
<label>
<input required name="email" type=email placeholder='Электронная почта'> Электронная почта.
</label><br>
<label>
<input required name="psw" type=text placeholder='Пароль'> Пароль.
</label><br>
<label for="bday">Дата рождения:</label><br>
<input required id="bday" name="birthday" type='date' min=1970-01-01 max=2010-01-01><br>
<input required id="law" name="law" type=checkbox> <label for="law">Это мой единственный персонаж!</label><br>
<input required id="law2" name="law2" type=checkbox> <label for="law2">Я согласен на любые
условия, давайте играть!</label><br>
<input type=submit value=Зарегистрироваться>
</form>
<?php endif; ?>