<?php

// If the user is not logged in, redirect to the login page
if (isset($_COOKIE['uuid'])) {
	header('Location: home.php');
	exit;
} else {
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,minimum-scale=1">
	        <link rel="stylesheet" href="style.css">
		<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
		<link rel="manifest" href="/site.webmanifest">

		<title>Aanmelden nieuwe gebruiker</title>
		
	</head>
    <body>
		<div class="login">

			<h1>Aanmelden in de App</h1>

			<form action="register-process.php" method="post" class="form login-form">

				<!-- <label class="form-label" for="username">Gebruikersnaam</label> -->
				Geef je naam op:
				<div class="form-group">
					<svg class="form-icon-left" width="14" height="14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"/></svg>
					<input class="form-input" type="text" name="username" placeholder="Username" id="username" required>
				</div><br>
				Geef het bekende ultra-geheime wachtwoord op:
				<!-- toevoeging voor wachtwoord -->
				<div class="form-group">
					<input class="form-input" type="password" name="secretz" placeholder="Hieâh het wachtwoord" id="secretz" required>
				</div>

				<button class="btn blue" type="submit">aanmelden</button>


			</form>

		</div>
    </body>
</html>
<?php 
}
?>
