/*if (!empty($_POST['identifiant']) && !empty($_POST['motdepasse']) )
{
if ($_POST['identifiant'] == $yuser && $_POST['motdepasse'] == $ypw)
{
session_start();
setcookie('bh', 'true', 3600);
$_SESSION['favcolor'] = 'green';
}
}*/
?>
IDENTIFICATION
ZONE DE SECURITÉ !!!
include("cgi-bin/motdepasse.inc.php");
@$var_user = strip_tags($_POST['identifiant']);
@$var_pw = strip_tags($_POST['motdepasse']);
if (!empty($var_user) && !empty($var_pw) )
{
if ($var_user == $yuser && $var_pw == $ypw)
{
echo 'Bienvenue dans ma zone privée
EN CONSTRUCTION
';
}
else
{
echo 'Erreur d\'identification !!!
veuillez réessayer, merci ...
';
include ('formulaire.php');
}
}
else
{
if(isset ($_POST['submit']))
{if (empty ($var_user))
{
echo'Veuillez rentrer un identifiant
';
}
else if (empty ($var_pw ))
{
echo 'Veuillez rentrer un mot de passe
';
}
}
include ('formulaire.php');
}
?>