2021-09-09 01:13:46 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
session_start();
|
|
|
|
if(isset($_SESSION['auth']))
|
|
|
|
{
|
|
|
|
header('Location: ../../');
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isset($_POST['register']))
|
|
|
|
{
|
|
|
|
$mail = filter_input(INPUT_POST, 'mail', FILTER_VALIDATE_EMAIL | FILTER_SANITIZE_EMAIL);
|
|
|
|
|
|
|
|
if($mail)
|
|
|
|
{
|
|
|
|
$pass = filter_input(INPUT_POST, 'passwd', FILTER_SANITIZE_STRING);
|
|
|
|
|
|
|
|
// A continuer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
include "../templates/header.php";
|
|
|
|
?>
|
|
|
|
<form method="POST">
|
|
|
|
<label for="mail">mail</label>
|
|
|
|
<input type="email" id="mail" name="mail" placeholder="Votre identifiant" required value="<?php if($error) echo $_POST['mail'] ?>"/>
|
|
|
|
<label for="passwd">Mot de passe</label>
|
|
|
|
<input type="passwd" id="passwd" name="passwd" placeholder="Votre mot de passe" minlength="6" required value="<?php if($error) echo $_POST['passwd'] ?>" />
|
|
|
|
<label for="conf_passwd">Confirmer votre mot de passe</label>
|
|
|
|
<input type="passwd" id="conf_passwd" name="conf_passwd" placeholder="Confirmation du mot de passe" minlength="6" required />
|
|
|
|
<input type="hidden" name="register" value="true" />
|
|
|
|
<input type="submit" value="valider">
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<a href="login.php">Déjà inscrit ? Connectez-vous !</a>
|
|
|
|
|
|
|
|
<?php include "../templates/footer.php" ?>
|