From 12734da8826299ffd24c0a15f6dbf205892d7221 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 14 Apr 2014 08:35:13 +0200 Subject: Pushed to v3 --- www/login.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'www/login.php') diff --git a/www/login.php b/www/login.php index bfba63e..f20a568 100644 --- a/www/login.php +++ b/www/login.php @@ -3,22 +3,23 @@ /* Copyright Maximilian Möhring, 2013 Licensed under the GPL. Read LICENSE for more Information.*/ -if ($_GET["logout"] == 1) { - $logout = "
Ausloggen erfolgreich
"; -} -if ($_GET["failure"] == 1) { - $logout = "
Name oder Passwort falsch!
"; -} +function print_login($var){ + if ($var == LOGOUT_SUCCESSFULL) { + $logout = "
Ausloggen erfolgreich
"; + } + if ($var == LOGIN_PASSWORD) { + $logout = "
Name oder Passwort falsch!
"; + } -?> - + echo " + Junge Gemeinde Adlershof. - + @@ -35,9 +36,9 @@ if ($_GET["failure"] == 1) {

JUNGE GEMEINDE ADLERSHOF

- + $logout
-
+

Login:

@@ -46,8 +47,8 @@ if ($_GET["failure"] == 1) {


- Info: You have five attempts. You will be banned for 6 hours after your login attempts run out.
- Passwort vergessen? Klick hier. + Info: You have ".$_SESSION["login_attempts"]." attempts. You will be banned for six hours after your login attempts run out.
+ Passwort vergessen? Klick hier.

@@ -65,6 +66,5 @@ if ($_GET["failure"] == 1) {
- - - +"; +} -- cgit v1.2.3