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

50 lines
2.2 KiB
PHP
Raw Normal View History

2021-03-29 19:35:47 +02:00
<?php
session_start();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
2021-04-20 17:05:13 +02:00
require("$root/lang/gettext.php");
2021-03-29 19:35:47 +02:00
?>
<!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">
2021-04-20 17:05:13 +02:00
<title><?=_('Register')?> | Chiro - Canto</title>
2021-03-29 19:35:47 +02:00
<link rel="stylesheet" type="text/css" href="/styles/style.css">
</head>
2021-04-01 08:57:34 +02:00
<?php
include("$root/analytics/matomo.php");
2021-04-16 19:14:52 +02:00
include("$root/analytics/owa.php");
2021-04-01 08:57:34 +02:00
?>
2021-03-29 19:35:47 +02:00
<body>
<?php include("$root/menu.php");?>
<?php include("$root/header.php");?>
<section>
2021-04-20 17:05:13 +02:00
<h2><?=_('Register')?></h2>
2021-03-29 19:35:47 +02:00
<?=(isset($_SESSION['error_msg']) and ! $_SESSION['error_msg'] == "") ? '<div class="error">'.$_SESSION['error_msg'].'</div>' : ""?>
<form action="register.php" method="post">
2021-04-20 17:05:13 +02:00
<label for="firstname"><?=_('First Name')?>*</label>
2021-03-29 19:35:47 +02:00
<input id="firstname" type="text" name="firstname" placeholder="John" required>
2021-04-20 17:05:13 +02:00
<label for="lastname"><?=_('Last Name')?>*</label>
2021-03-29 19:35:47 +02:00
<input id="lastname" type="text" name="lastname" placeholder="Doe" required>
2021-04-20 17:05:13 +02:00
<label for="username"><?=_('Username')?>*</label>
2021-03-29 19:35:47 +02:00
<input id="username" type="text" name="username" placeholder="jojo" required>
2021-04-20 17:05:13 +02:00
<label for="password"><?=_('Password')?>*</label>
2021-03-29 19:35:47 +02:00
<input type="password" name="password" id="password" placeholder="************" required>
2021-04-20 17:05:13 +02:00
<label for="email"><?=_('Your email')?>*</label>
2021-03-29 19:35:47 +02:00
<input type="email" name="email" id="email" placeholder="john.doe@example.com" required>
2021-04-20 17:05:13 +02:00
<label for="website"><?=_('Your website (optional)')?></label>
2021-03-29 19:35:47 +02:00
<input type="url" name="website" id="website" placeholder="https://example.com">
2021-04-20 17:05:13 +02:00
<input type="submit" name="submit" value="<?=_('submit')?>"><input type="reset" name="reset" value="<?=_('reset')?>">
2021-03-29 19:35:47 +02:00
</form>
2021-04-20 17:05:13 +02:00
<a href="/auth/login"><?=_('Already registered ?')?></a>
2021-03-29 19:35:47 +02:00
</section>
<?php include("$root/footer.php");?>
</body>
<script src="/scripts/script.js"></script>
</html>