diff options
| author | Horus3 | 2016-09-28 14:43:44 +0200 |
|---|---|---|
| committer | Horus3 | 2016-09-28 14:43:44 +0200 |
| commit | 6decb91aa4cc27c83c866d1b128dc719aeb1c986 (patch) | |
| tree | 477a08f5296bbf4ab75b53893b25f900b6e0ad8f /intern.gospeladlershof.de/login.php | |
| parent | 4c39424720d6be708896f42b73a93df3c2637a10 (diff) | |
| parent | 006da29841a225675fc7dc4981b69336409737e1 (diff) | |
| download | gospeladlershof.de-6decb91aa4cc27c83c866d1b128dc719aeb1c986.tar.gz | |
Merge branch 'master' of git.iamfabulous.de:gospeladlershof.de
Diffstat (limited to 'intern.gospeladlershof.de/login.php')
| -rw-r--r-- | intern.gospeladlershof.de/login.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/intern.gospeladlershof.de/login.php b/intern.gospeladlershof.de/login.php new file mode 100644 index 0000000..aba1467 --- /dev/null +++ b/intern.gospeladlershof.de/login.php @@ -0,0 +1,48 @@ +<?php +define('LOGIN_SITE', true); +require_once __DIR__ . '/code/session.php'; +$title="Login"; +require_once __DIR__ . '/header.php'; +?> + <body> + + <div class="container"> + + <form class="form-signin" method="POST" action="/code/login.php"> + +<?php +if ( ! empty($_SESSION) ) { + if ( isset($_SESSION["login"]) && $_SESSION["login"]){ + header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); + header("Location: /"); + exit; + } + if ( !is_null($_SESSION["error"]) ) { +?> +<div class="alert alert-danger" role="alert"> +<?php + echo htmlentities($_SESSION["error"]); + unset($_SESSION["error"]); +?> +</div> +<?php + } +} +?> + <h2 class="form-signin-heading">Bitte melde dich an</h2> + <label for="inputEmail" class="sr-only">E-Mail Adresse</label> + <input name="email" type="text" id="inputEmail" class="form-control" placeholder="E-Mail-Adresse" required autofocus> + <label for="inputPassword" class="sr-only">Passwort</label> + <input name="password" type="password" id="inputPassword" class="form-control" placeholder="Passwort" required> + <!--div class="checkbox"> + <label> + <input type="checkbox" value="remember-me"> Bleib angemeldet + </label> + </div--> + <button class="btn btn-lg btn-primary btn-block" type="submit">Lass mich rein</button> + </form> + + </div> <!-- /container --> +<?php +require_once __DIR__ . '/footer.php'; +?> |
