1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
<?php
if (isset($_POST['pass'])) {
$name = $_POST['ident'];
$mot_de_passe = $_POST['pass'];
}else {
$mot_de_passe = "";
}
if ($mot_de_passe == "kennedy" && $name == "douglas") {
header('Location: config.php');
}else{
?>
<html>
<head>
<title>Your Site / Admin</title>
<link rel="stylesheet" type="text/css" href="admin.css">
</head>
<body>
<div id="conteneur">
<h1 class="h1Font">Hello</h1>
<div id="formBox">
<h2 class="h1Font">Admin Acces</h2>
<form action="admin.php" method="post">
<p class="h1Font">Name : <input type="text" name="ident" ></input> </p>
<p class="h1Font">Pass : <input type="password" name="pass" ></input> </p>
<p> <input type="submit" value="Valider" ></input> </p>
</form>
</br>
</div>
<?php
}
?>
</div>
<body>
</html> |