2024-06-11 10:56:40 +02:00
|
|
|
<?php
|
|
|
|
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
|
|
|
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
|
|
|
header("Pragma: no-cache");
|
|
|
|
|
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/tools/dbConnect.php';
|
|
|
|
session_start();
|
|
|
|
|
|
|
|
if (isset($_COOKIE['userData'])) {
|
|
|
|
header("Location: /account/profile");
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2024-06-09 15:56:00 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<link rel="stylesheet" href="../../styles/main.css" />
|
|
|
|
<link rel="stylesheet" href="../../styles/header.css" />
|
|
|
|
<link rel="stylesheet" href="../../styles/footer.css" />
|
|
|
|
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32"
|
|
|
|
href="https://tickets.paris2024.org/obj/media/FR-Paris2024/specialLogos/favicons/favicon-32x32.png" />
|
|
|
|
<title>Nouveau compte | Jeux Olympiques - Paris 2024</title>
|
|
|
|
<script src="https://kit.fontawesome.com/f16a36bad3.js" crossorigin="anonymous">
|
|
|
|
function verifMDP() {
|
|
|
|
var pw1 = document.getElementById("password");
|
|
|
|
var pw2 = document.getElementById("password-bis");
|
|
|
|
if (pw1 != pw2) {
|
|
|
|
alert("Les mots de passe ne correspondent pas. Veuillez réessayer.");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2024-06-09 17:07:43 +02:00
|
|
|
<?php include ($_SERVER['DOCUMENT_ROOT'] . '/views/header.php') ?>
|
2024-06-09 15:56:00 +02:00
|
|
|
|
|
|
|
<div class="login-container">
|
|
|
|
<img src="https://cdn-icons-png.flaticon.com/512/4139/4139948.png" alt="Avatar">
|
|
|
|
<h2>Créer un compte</h2>
|
|
|
|
<p>Créez un nouveau compte afin d'accéder à l'entièreté du site.</p>
|
2024-06-11 09:32:41 +02:00
|
|
|
<form action="/account/register/register.php" method="post">
|
2024-06-09 17:07:43 +02:00
|
|
|
<div class="form-group">
|
2024-06-10 16:24:30 +02:00
|
|
|
<label for="name"><span style="color:red;"><abbr title="Requis">*</abbr></span> Prénom</label>
|
2024-06-09 17:07:43 +02:00
|
|
|
<input type="text" id="name" name="name" placeholder="Jean" required placeholder=" ">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2024-06-11 09:35:16 +02:00
|
|
|
<label for="family_name"><span style="color:red;"><abbr title="Requis">*</abbr></span> Nom</label>
|
|
|
|
<input type="text" id="family_name" name="family_name" placeholder="DUPONT" required placeholder=" ">
|
2024-06-09 17:07:43 +02:00
|
|
|
</div>
|
2024-06-09 15:56:00 +02:00
|
|
|
<div class="form-group">
|
2024-06-10 16:24:30 +02:00
|
|
|
<label for="email"><span style="color:red;"><abbr title="Requis">*</abbr></span> Adresse mail</label>
|
2024-06-09 17:07:43 +02:00
|
|
|
<input type="email" id="email" name="email" placeholder="username@example.com" required placeholder=" ">
|
2024-06-09 15:56:00 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2024-06-10 16:24:30 +02:00
|
|
|
<label for="password"><span style="color:red;"><abbr title="Requis">*</abbr></span> Mot de passe</label>
|
2024-06-09 17:07:43 +02:00
|
|
|
<input type="password" id="password" name="password" required placeholder="••••••••" placeholder=" ">
|
2024-06-09 15:56:00 +02:00
|
|
|
</div>
|
2024-06-10 16:24:30 +02:00
|
|
|
|
|
|
|
|
2024-06-09 15:56:00 +02:00
|
|
|
<div class="form-group">
|
2024-06-10 16:24:30 +02:00
|
|
|
<label for="code-role">Code rôle :</label>
|
2024-06-10 23:23:51 +02:00
|
|
|
<input type="text" id="code-role" name="code-role" placeholder="A69DP" placeholder=" ">
|
2024-06-09 15:56:00 +02:00
|
|
|
</div>
|
2024-06-09 17:07:43 +02:00
|
|
|
|
2024-06-10 16:24:30 +02:00
|
|
|
<button type="submit" class="submit-button"><i class="fas fa-sign-in-alt"></i>
|
2024-06-09 15:56:00 +02:00
|
|
|
Créer un compte</i></button>
|
|
|
|
</form>
|
2024-06-11 09:31:02 +02:00
|
|
|
<p class="no-account">Vous avez déjà un compte ? <a href="/account/login">Connectez-vous !</a></p>
|
2024-06-10 16:24:30 +02:00
|
|
|
|
2024-06-09 15:56:00 +02:00
|
|
|
</div>
|
|
|
|
|
2024-06-09 17:07:43 +02:00
|
|
|
<?php include ($_SERVER['DOCUMENT_ROOT'] . '/views/footer.php') ?>
|
2024-06-09 15:56:00 +02:00
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|