diff --git a/checkpoint/f.php b/checkpoint/f.php new file mode 100644 index 0000000..5c9ad64 --- /dev/null +++ b/checkpoint/f.php @@ -0,0 +1,2 @@ + diff --git a/checkpoint/index.php b/checkpoint/index.php new file mode 100644 index 0000000..5a681a5 --- /dev/null +++ b/checkpoint/index.php @@ -0,0 +1,108 @@ + + + + + Checkpoint - Misdew + + + + + + + "; + } + if($css_type == "raw") { + echo ""; + } + ?> + + + + + + +
+
+
+   You must take action to continue using Misdew.com + + + + + + + + + + + + + +
+ + Checkpoint: Email Storing Update + +
+ + An email update is needed for your Misdew account. +
Please enter a valid email address below. You will receive an email from us asking you to confirm the linking of this email address to your Misdew.com account.

+ If you encounter any issues or need help, please send an email to me@justa.us

+
+
+
+
+
+
+
Update
+
+
+ +
+ Still need help? Send an email to me@justa.us
+ +
+ + + + + diff --git a/checkpoint/link.php b/checkpoint/link.php new file mode 100644 index 0000000..06843f5 --- /dev/null +++ b/checkpoint/link.php @@ -0,0 +1,79 @@ + 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/verify.php?k=$resetid

+ + "; + $headers = "Content-Type: text/html; charset=utf-8"; + mail($to,$subject,$txt,$headers); + $_SESSION['m4'] = "em_ss"; + header("location: /checkpoint"); + exit(); + + + + + } + else { + header("location: /throw_error"); + exit(); + } + } + else { + header("location: /throw_error"); + exit(); + } + } + else { + header("location: /throw_error"); + exit(); + } +} +?> diff --git a/checkpoint/verify.php b/checkpoint/verify.php new file mode 100644 index 0000000..df4b646 --- /dev/null +++ b/checkpoint/verify.php @@ -0,0 +1,57 @@ + 0) { + $_SESSION['m6'] = "gen_error"; + header("location: /"); + exit(); + } + + # MAKE SURE LINK HASN'T REACHED ONE HOUR EXPIRE LIMIT + $tttstamp = $rs_tstamp + 3600; + if($tstamp >= $tttstamp) { + mysqli_query($conx, "DELETE FROM forgot_password WHERE email_secure='$rs_email'"); + $_SESSION['m5'] = "ef_hef"; + header("location: /"); + exit(); + } + mysqli_query($conx, "UPDATE accounts SET email_secure='$rs_email' WHERE username='$u_username'"); + mysqli_query($conx, "DELETE FROM forgot_password WHERE email_secure='$rs_email'"); + header("location: /"); + exit(); +} +else { + header("location: /"); + exit(); +} +?>