blob: b68b26ee94eb9a388ca01f1f41d9c1d6a77eeacd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
<?
/*
$_GET Paramter für Oli von Max:
--REGISTER--
$_GET["username"]: derjenige, der sich registriert (wird immer mitgegeben)
$_GET["reason"]: password: leeres Passwort, oder die beiden einzugebenen stimmen nicht überein
encoding: es wurden unzulässige Zeichen eingegeben #TODO volle Unicode Unterstützung
prohibited: a) invite key stimmt nicht, b) status bit in der Datenbank ist falsch gesetzt (gesperrt), c) die versuchte E-Mail stimmt nicht mit der überein, die vom Inviter angegeben wurd # c) sollten wir noch ändern, nich?
database: Fehler mit der Datenbank
*/
?>
<?php include("static/header.html");?>
<link rel="stylesheet" type="text/css" href="/static/register.css">
<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>
<input type="password" placeholder="password" name="pswd" id="password-input" class="register-input" required>
<input type="password" placeholder="repeat password" name="2ndpswd" id="password-repeat-input" class="register-input" required>
<input type="text" placeholder="invite-key" name="key" id="key-input" class="register-input" required>
<input type="email" placeholder="email" name="email" id="email-input" class="register-input" required>
<input type="submit" name="register" id="button-input" class="register-input" value="register">
</form>
</div>
<?php include("static/footer.html");?>
|