From 07297d606d209aa4d70d25fe9d72d80e1131c19e Mon Sep 17 00:00:00 2001 From: oweissbarth Date: Sun, 16 Mar 2014 20:21:32 +0100 Subject: Added print_register --- www/register.php | 87 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 50 insertions(+), 37 deletions(-) (limited to 'www/register.php') diff --git a/www/register.php b/www/register.php index 71bd87b..0981c20 100755 --- a/www/register.php +++ b/www/register.php @@ -4,65 +4,78 @@ TODO the email cannot differ from the address the mail was sent to. + TODO Username is not checked for duplicates. + + TODO invites should have it's own error. + It has already been checked that the user isn't already logged in. - $_GET["reason"] can have the following values: + $case can have the following values: - password: Specifies that the password wasn't the same in both fields. The user is not registered. - - database: Specifies that the request could not be fullfilled due to a database error. The user is not registered. - - encoding: Specifies that the request could not be fullfilled due to invalid symbols in the password. TODO we should support the whole UTF-8 - - prohibited: Specifies that the request could not be fullfilled because the account has been marked "blocked" + REGISTER_PASSWORD: Specifies that the password wasn't the same in both fields. The user is not registered. - TODO success? + REGISTER_DATABASE: Specifies that the request could not be fullfilled due to a database error. The user is not registered. - TODO provide the entered data if an error occurred. + REGISTER_EMAIL: Specifies that the request could not be fullfilled due to invalid symbols in the password. - TODO username? + REGISTER_PROHIBITED: Specifies that the request could not be fullfilled because the account has been marked "blocked" - TODO email? - TODO invite-key? - ================================================================================================================================================== +================================================================================================================================================== */ -?> - - - +function print_register($case){ + include("static/header.html"); -