aboutsummaryrefslogtreecommitdiff
path: root/www/register.php
diff options
context:
space:
mode:
authorroot2014-04-14 08:35:13 +0200
committerroot2014-04-14 08:35:13 +0200
commit12734da8826299ffd24c0a15f6dbf205892d7221 (patch)
tree3b894dd30e332df23a564ce44e42ce164c8abd78 /www/register.php
parent7b9d516cd3bcdb8eaa5f1eb533d71010061c681b (diff)
downloadjungegemeinde-12734da8826299ffd24c0a15f6dbf205892d7221.tar.gz
Pushed to v3
Diffstat (limited to 'www/register.php')
-rw-r--r--www/register.php23
1 files changed, 11 insertions, 12 deletions
diff --git a/www/register.php b/www/register.php
index 39d22f9..6283f14 100644
--- a/www/register.php
+++ b/www/register.php
@@ -3,12 +3,13 @@
/* Copyright Maximilian Möhring, 2013
Licensed under the GPL. Read LICENSE for more Information.*/
-include('auth.php');
-include("header.php");
+function print_register($var){
-if ($_GET["false"] == 1){
-$failure= "<div style='color:red;'>Fehler! Entweder ist der Nutzer schon registriert oder dein Passwort war leer!</div><br>";
-}
+ include("static/header.php");
+
+ if ($var != ""){
+ $failure= "<div style='color:red;'>Fehler! Entweder ist der Nutzer schon registriert oder dein Passwort war leer!</div><br>";
+ }
echo "
@@ -29,7 +30,7 @@ Registriere dich, um einen persönlichen Zugang zu erhalten. Such dir einen beli
$failure
<div class='katze'>
-<form method='post' action='inreg.php'>
+<form method='post' action='/register'>
<table width='320px'>
<tr>
<td align='left'><p>Name:</td><td align='right'><input name='name' type='text' size='20' maxlength='30'></p></td>
@@ -37,6 +38,9 @@ $failure
<tr>
<td align='left'><p>Passwort:</td><td align='right'><input name='pswd' type='password' size='20' maxlength='30'></p></td>
</tr>
+<tr>
+ <td align='left'><p>Passwort wiederholen:</td><td align='right'><input name='2ndpswd' type='password' size='20' maxlength='30'></p></td>
+</tr>
<tr><td align='left'><p>E-Mail:</td> <td align='right'><input name='email' type='text' size='20' maxlength='30'></p></td>
</tr>
</table>
@@ -45,10 +49,5 @@ $failure
</div>
</div>
-</body>
-</html>
";
-
-
-
-?>
+}