diff options
author | wushin <pasekei@gmail.com> | 2014-05-22 23:07:12 -0500 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2014-05-22 23:24:49 -0500 |
commit | 88fc035963ec57beb1da12b2f32b4c30e0946e2a (patch) | |
tree | ccf01e8b86ae1b46c832fba41189f4cbc8373924 /registration.php | |
parent | 41572c3899c716d03f08af82f536b22858ee0646 (diff) | |
download | website-88fc035963ec57beb1da12b2f32b4c30e0946e2a.tar.gz website-88fc035963ec57beb1da12b2f32b4c30e0946e2a.tar.bz2 website-88fc035963ec57beb1da12b2f32b4c30e0946e2a.tar.xz website-88fc035963ec57beb1da12b2f32b4c30e0946e2a.zip |
Fix Account Creations Always Asking!
Sitemap - Robots GA adjustments
Index - News-feed GA adjustments
Added Email template (Text/Html)
Shrunk some margins to reduce empty space
Moved Server Status Up on the list
Added "Support (IRC)" to aide new players
Removed Duplicate Registration
Diffstat (limited to 'registration.php')
-rw-r--r-- | registration.php | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/registration.php b/registration.php index 95a92fb..396ac50 100644 --- a/registration.php +++ b/registration.php @@ -61,13 +61,10 @@ } } } - - include("includes/common.php"); - placeHeader("Registration"); - - if ($showform) { + include("includes/common.php"); + placeHeader("Registration"); ?> <p>With this form you can register for a new account. <i>We will never give your email to someone else or send you spam! Its only purpose is to be able to send you back whether account creation succeeded.</i></p> @@ -131,15 +128,24 @@ important precaution.</p> <?php + placeFooter(); } // end of showform else { - ?> - <p>Your account was scheduled for creation! In a few minutes you should receive an email with verification of your new account.</p> - - <p><em>If the account doesn't work after five minutes, please ask for help on the forums or IRC. We can make it for you.</em></p> - - <?php } - placeFooter(); + include("includes/email.php"); + $mail_to = $_POST['email']; + $boundary = uniqid('np'); + $subject = "The Mana World Registration"; + $headers = "From: Accounts <passwords@themanaworld.org>\r\nReply-To: Accounts <passwords@themanaworld.org>\r\n"; + $data .= "== Account Created ==\n"; + $data .= " Welcome to The Mana World! Your account should now be enabled. If you have any problems with your login contact The Mana World via the Support (live) or Forums (maybe a delay) for help. Game tips & walkthroughs are available on the Wiki. Our Forums are a great place to ask for advice and discuss possible changes. News is available in the client or on the Home Site. + Godspeed Adventurer, + The Mana World\n"; + $message = getEmailTemplate($data); + $headers .= $message[0]; + + mail($mail_to,$subject,$message[1],$headers); + + header("Location: /thank_you.php"); + } ?> - |