diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_fr> | 2011-04-06 20:17:13 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-04-06 20:25:51 +0200 |
commit | e13b752406e1ea78296fd3b844b056747aee528f (patch) | |
tree | dd8410f013f266154f9721005f5bf901a785eed1 /registration.php | |
parent | ba0d17ead08ec1b979efbda8367cbc687888dabe (diff) | |
download | website-e13b752406e1ea78296fd3b844b056747aee528f.tar.gz website-e13b752406e1ea78296fd3b844b056747aee528f.tar.bz2 website-e13b752406e1ea78296fd3b844b056747aee528f.tar.xz website-e13b752406e1ea78296fd3b844b056747aee528f.zip |
Updated the website content in several places
* Corrected information about getting the latest development version
of the client
* Removed the outdated Servers page and link again to the wiki
* Removed some outdated links to external pages
* Removed the empty and unused Screenshots page
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'registration.php')
-rw-r--r-- | registration.php | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/registration.php b/registration.php index a845d40..c4c4b95 100644 --- a/registration.php +++ b/registration.php @@ -4,7 +4,7 @@ require_once('recaptcha-php/recaptchalib.php'); require_once('recaptcha-php/keys.php'); - + $enable_captcha = true; // modify this in production $showform = true; @@ -18,7 +18,7 @@ $acc->setPassword($_POST['password1']); $acc->setEMail($_POST['email']); $acc->setGender($_POST['gender']); - + $val = $acc->validate(); if (is_array($val)) { @@ -28,23 +28,23 @@ } $showform = true; } - + if ($_POST['password2'] != $_POST['password1']) { $err .= "The given passwords don't match!"; $showform = true; } - + if (TMWAccount::existsUsername( $_POST['username'] )) { $err .= "The username is in use!"; $showform = true; } - + if ($enable_captcha) { // check captcha $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); - + if (!$resp->is_valid) { $err .= "The captcha was incorrect!"; $showform = true; @@ -61,26 +61,33 @@ } } } - + include("includes/common.php"); placeHeader("Registration"); - - + + if ($showform) { - + ?> <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> <p><em>This system looks to be broken again. After submitting this form, wait five minutes and then try using the account. If it doesn't work, contact Freeyorp or Jaxad0127 on the forums or IRC. We can make it for you.</em></p> +<p style="background-color: #ede2da; padding: 5px; border: 1px solid +#9f9894; -moz-border-radius: 10px;"><i>Security warning:</i> Do not use the same username and password on +two different servers. The server admins can read all of them in clear text and +nothing stops them from trying them on other servers. It happened a lot in the +past that users of the official server got "hacked" because they ignored this +important precaution.</p> + <form action="registration.php" method="post"> <input type="hidden" name="register" value="true" /> <table> <?php if (isset($err)) { - echo "<tr><td colspan=\"2\" style=\"border: 1px solid red; color: red;\">" . + echo "<tr><td colspan=\"2\" style=\"border: 1px solid red; color: red;\">" . $err . "</td></tr>"; } ?> |