<?php
ob_start();
session_start();
$login='root';
$pass='4Grdr';
if (isset($_POST['login']) && isset($_POST['mdp'])) {
	if ($_POST['login']==$login && $_POST['mdp']==$pass) {
		$_SESSION['login']=$_POST['login'];
		$_SESSION['pass']=$_POST['mdp'];
		header("location:admin.php");
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Administration GRDR</title>
<link href="style/style_admin.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div id="identification">
		<form action="?" method="post">
        <table>
        	<tr><td class="td_form">Identifiant :</td><td><input name="login" type="text" class="input_text" /></td><td rowspan="2"><img src="images/grdr.jpg" /></td></tr>
            <tr><td class="td_form">Mot de passe :</td><td><input name="mdp" type="pass" class="input_text" /></td></tr>
            <tr><td></td><td colspan="2"><input name="" type="submit" value="Envoyer" class="input_submit" /></td></tr>
        </table>
        </form>
    </div>
</body>
</html>
<?php
	ob_end_flush();
?>