0) {
$_SESSION['m6'] = "gen_error";
header("location: /");
exit();
}
# INSERT RESET DETAILS
mysqli_query($conx, "INSERT INTO forgot_password (tstamp,uqid,email_secure,username) VALUES ('$tstamp','$resetid','$email_hashed','$u_username')");
# PUSH OUT EMAIL
$to = $new_email;
$subject = "misdew.com email update";
$txt = "$u_username,
An email update was requested for your account.
Follow the link below to continue.
https://misdew.com/checkpoint/2-23-21/verify.php?k=$resetid
";
$headers = "Content-Type: text/html; charset=utf-8";
mail($to,$subject,$txt,$headers);
$_SESSION['m4'] = "em_ss";
header("location: /checkpoint/2-23-21");
exit();
}
else {
header("location: /throw_error");
exit();
}
}
else {
header("location: /throw_error");
exit();
}
}
else {
header("location: /throw_error");
exit();
}
}
?>