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 37 38 39 40 41 42 43 44
| <?
echo ("<br><br><center><font size='+2'><u>Control Panel</u></font><br><br><br>");
echo ("<link rel='stylesheet' href='administration/style.css' type='text/css'>");
echo ("<table border='1' bordercolor='#FFFFFF'><tr><td colspan='2' align='center'><font size='+1'>Connexion</font></td></tr>");
echo ("<tr><td><form action='index.php3' method='post'>Identifiant</td><td><input type='text' name='log' size='20' maxlength='20'></td></tr>");
echo ("<tr><td>Mot de passe</td><td><input type='password' name='pass' size='20' maxlength'20'></td></tr>");
echo ("<tr><td colspan='2' align='center'><input type='submit' name='submit' value='Connexion'></td></tr></center>");
$jlog='henry-nicolas';
$jpass='21121987';
$state= false;
$log=$_POST['log'];
$pass=$_POST['pass'];
$submit=$_POST['submit'];
if ($submit == true)
{
if ( $log != $jlog || $pass!= $jpass)
{
echo ('Votre mot de passe ou votre identifiant est incorrect');
echo ("<script language='javascript'>window.location='index.php3';</script>");
exit;
}
else if ($log == $jlog && $pass == $jpass)
{
echo ("<script language='javascript'>window.location='administration/index.php';</script>");
$state = true;
session_start();
session_register("state");
exit;
}
else
{
echo("Erreur, veuillez recommencé svp...");
echo ("<script language='javascript'>window.location='index.php3';</script>");
exit;
}
}
?> |
Partager