/home/techb158/immovalet.ca
Edit: /home/techb158/immovalet.ca/activate.php (2696B)
0) {
if ( $accessed == 1) {
header("Location: index.php?err=Votre compte a déjà été activé.");
exit();
} else if ( $accessed == 0)
{
$sql = mysqli_query($mysqli,"UPDATE Clients SET User_Access = '1' WHERE Username = '".$id ."'");
header("Location: index.php?err=Merci d'activer votre compte!");
exit();
$Emailid = $id;
//$checkloginr = mysql_query("SELECT * FROM Clients WHERE Username='".$Emailid."'");
//$rowr = mysql_fetch_array($checkloginr);
//$rowCounts = mysql_num_rows($checkloginr);
//
//if($rowCounts > 0){
// $User_Type="Client";
// $date = date('Y/m/d H:i:s');
//
// $useraccess = $rowr['access'];
// $email = $rowr['email'];
// $userid = $rowr['ID_Client'];
// $usertypes = $rowr['User_Type'];
// $_SESSION['EmailAddress'] = $email;
// $_SESSION['ID_Client'] = $userid;
// $_SESSION['$useraccess'] = $useraccess;
// $_SESSION['User_Type'] = $User_Type;
// $_SESSION['Usertyep'] = $usertypes;
// $_SESSION['LoggedIn'] = 1;
//
//}
// $_SESSION['start'] = time(); // Taking now logged in time.
// // Ending a session in 30 minutes from the starting time.
// $_SESSION['expire'] = $_SESSION['start'] + (30 * 60);
// $date = date('Y/m/d H:i:s');
// mysql_query("UPDATE Profile_Client set Login_Date='" . $date . "' WHERE email='" . $id . "'");
// echo "
Success
";
// echo "
We are now redirecting you to the User area.
";
// echo "
";
}
} else {
header("Location: index.php?err=Attention! Aucun compte trouvé");
exit();
}
} catch (Exception $ex) {
echo $ex->getMessage();
}
}
?>