diff options
Diffstat (limited to 'www/register.php')
| -rw-r--r-- | www/register.php | 15 |
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't 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> |
