From e13b752406e1ea78296fd3b844b056747aee528f Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 6 Apr 2011 20:17:13 +0200 Subject: Updated the website content in several places MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- registration.php | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'registration.php') 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) { - + ?>

With this form you can register for a new account. 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.

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.

+

Security warning: 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.

+
"; } ?> -- cgit v1.2.3-70-g09d2
" . + echo "
" . $err . "