chiro-canto/public/auth/register/index.php

50 lines
2.2 KiB
PHP
Executable File

<?php
session_start();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
require("$root/lang/gettext.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?=_('Register')?> | Chiro - Canto</title>
<link rel="stylesheet" type="text/css" href="/styles/style.css">
</head>
<?php
include("$root/analytics/matomo.php");
include("$root/analytics/owa.php");
?>
<body>
<?php include("$root/menu.php");?>
<?php include("$root/header.php");?>
<section>
<h2><?=_('Register')?></h2>
<?=(isset($_SESSION['error_msg']) and ! $_SESSION['error_msg'] == "") ? '<div class="error">'.$_SESSION['error_msg'].'</div>' : ""?>
<form action="register.php" method="post">
<label for="firstname"><?=_('First Name')?>*</label>
<input id="firstname" type="text" name="firstname" placeholder="John" required>
<label for="lastname"><?=_('Last Name')?>*</label>
<input id="lastname" type="text" name="lastname" placeholder="Doe" required>
<label for="username"><?=_('Username')?>*</label>
<input id="username" type="text" name="username" placeholder="jojo" required>
<label for="password"><?=_('Password')?>*</label>
<input type="password" name="password" id="password" placeholder="************" required>
<label for="email"><?=_('Your email')?>*</label>
<input type="email" name="email" id="email" placeholder="john.doe@example.com" required>
<label for="website"><?=_('Your website (optional)')?></label>
<input type="url" name="website" id="website" placeholder="https://example.com">
<input type="submit" name="submit" value="<?=_('submit')?>"><input type="reset" name="reset" value="<?=_('reset')?>">
</form>
<a href="/auth/login"><?=_('Already registered ?')?></a>
</section>
<?php include("$root/footer.php");?>
</body>
<script src="/scripts/script.js"></script>
</html>