diff --git a/recovery.php b/recovery.php index d07541b..9fd7f22 100644 --- a/recovery.php +++ b/recovery.php @@ -1,92 +1,142 @@ +include 'layout/overall/header.php'; +if ($config['mailserver']['accountRecovery']) { + // Fetch, sanitize and assign POST and GET variables. + $mode = (isset($_GET['mode']) && !empty($_GET['mode'])) ? getValue($_GET['mode']) : false; + $email = (isset($_POST['email']) && !empty($_POST['email'])) ? getValue($_POST['email']) : false; + $character = (isset($_POST['character']) && !empty($_POST['character'])) ? getValue($_POST['character']) : false; + $password = (isset($_POST['password']) && !empty($_POST['password'])) ? getValue($_POST['password']) : false; + $username = (isset($_POST['username']) && !empty($_POST['username'])) ? getValue($_POST['username']) : false; + //data_dump($_GET, $_POST, "Posted data."); -
Your username is: $user[name]
";
+ $body .= "Enjoy your stay at ".$config['mailserver']['fromName'].".
";
+ $body .= "
We have sent your username to .
+If you can't find the email within 5 minutes, check your junk/trash inbox as it may be mislocated there.
+ +Submitted data is wrong.
+ Account Recovery"; + $body .= "Your new password is: $newpass
";
+ $body .= "We recommend you to login and change it before you continue playing.
";
+ $body .= "Enjoy your stay at ".$config['mailserver']['fromName'].".
";
+ $body .= "
We have sent your new password to .
+If you can't find the email within 5 minutes, check your junk/trash inbox as it may be mislocated there.
+ +Submitted data is wrong.
+ +Do you wish to recover your username or password?
+ - - - - +The admin have disabled automatic account recovery.
+ - - \ No newline at end of file +include 'layout/overall/footer.php'; ?> \ No newline at end of file