<!DOCTYPE html>
<html>
	<head>
		<title>Login</title>
		<meta charset="UTF-8">
		<link rel="stylesheet" href="style/style.css" />
		<?php include 'session.inc.php';
			if (isset($_POST['login']) && isset($_POST['password']) && (check_auth($_POST['login'], $_POST['password']))) {
				header('Location: index.php');
			}
		?>
		<link rel="stylesheet" href="css_ext.css" />
	</head>

	<body id='home'>
		<div>
			<form id = 'home' method="post" action="logmein.php">
				Identifiaction:<br>
	        	Nom : <input type="text" name="login" required> <br>
	        	Mdp : <input type="password" name="password" required><br>
	        	<input type="submit" value="Login">
			</form>
		</div>
	</body>
</html>