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
|
<?php
include_once( "Configuration.php") ;
include_once( "functions.php");
$ClientMail2=$_REQUEST['IdimpClientMail2'];
$IdimpClientPass=$_REQUEST['IdimpClientPass'];
// ------------------------------function authentication -----------------------------------
function checkAuthentication($mail,$pass)
{
$res= "SELECT * FROM registration WHERE Mail='".$mail."' AND Password='".$pass."'";
$resultat = $mysqli->query($res );
/* Determines the number of rows of results */
$n= $resultat->num_rows;
if ($n >0)
/* Users found */
return true;
else
/* Users not found */
return false;
}
if (checkAuthentication($ClientMail2,$IdimpClientPass))
echo"connexion etablie";
else
echo"connexion echoué";
?> |
Partager