/home/techb158/immovalet.ca/includes
Edit: /home/techb158/immovalet.ca/includes/process_login.php (2203B)
success){
// //$succMsg = 'Your contact request have submitted successfully.';
if (isset($_POST['email'], $_POST['p'])) {
$email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL);
$password = $_POST['p']; // The hashed password.
if (login($email, $password, $mysqli) == true) {
$user_type= $_SESSION['User_type'];
if($user_type == "Clients")
{
header("Location: ../Client/dashboard.php");
exit();
//}else if($user_type == "User")
//{
//header("Location: ../User/index.php");
// exit();
//}else if($user_type == "Agent")
//{
//header("Location: ../Agent/index.php");
// exit();
}else if($user_type == "Master")
{
header("Location: ../Master/dashboard.php");
exit();
}else if($user_type == "Admin")
{
header("Location: ../Admin/dashboard.php");
exit();
}else{
header('Location: ../index.php?error=2');
exit();
}
} else {
// Login failed
header('Location: ../index.php?error=Échec de la connexion');
exit();
}
}else {
// The correct POST variables were not sent to this page.
header('Location: ../error.php?err=Impossible de traiter la connexion');
exit();
}
//}else{
// header('Location: ../index.php?err=Robot verification failed, please try again');
// exit();
//}
//}else
//{
// header('Location: ../index.php?err=Please click on the reCAPTCHA box.');
// exit();
//}