summaryrefslogtreecommitdiff
path: root/www/register.php
diff options
context:
space:
mode:
authoroweissbarth2014-03-11 20:02:10 +0100
committeroweissbarth2014-03-11 20:02:10 +0100
commita9d708cf9638686d81caf2cc9534a5d34dd63b7e (patch)
tree67abfa3c17aa534c638bc6431263a01ce99be3ec /www/register.php
parented809aa402ef6b97a129f06d2ba2e7a97101291f (diff)
downloadfiles.iamfabulous.de-a9d708cf9638686d81caf2cc9534a5d34dd63b7e.tar.gz
Added errors for register-form. Gave errors more room
Diffstat (limited to 'www/register.php')
-rw-r--r--www/register.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/register.php b/www/register.php
index daf6afa..e4c4b79 100644
--- a/www/register.php
+++ b/www/register.php
@@ -19,6 +19,21 @@
<div class="register-area">
<h1 class="register-area"> Register </h1>
+ <div class="register-area" id="register-info-bar">
+ <?php if(isset($_GET['reason']) && $_GET['reason'] == 'password'){
+ echo '<h1 id="register-error">Passwords don&#39t match</h1>
+ ';
+ }elseif(isset($_GET['reason']) && $_GET['reason'] == 'encoding'){
+ echo '<h1 id="register-error">The password contains unsupported characters</h1>
+ ';
+ }elseif(isset($_GET['reason']) && $_GET['reason'] == 'database'){
+ echo '<h1 id="register-error"> Internal Error. Please contact admin</h1>
+ ';
+ }elseif(isset($_GET['reason']) && $_GET['reason'] == 'prohibited'){
+ echo '<h1 id="register-error">Activation of your account is prohibited</h1>
+ ';
+ }?>
+ </div>
<form id="register-form" action="/register" method='post'>
<input type="text" placeholder="username" name="username" id="username-input" class="register-input" required>