login: templating support for warning message
[minimedit.git] / login.inc.php
index 69607dfb897a42edb92814d8930365cab01514c7..9c2a604448b9c52e11a147ad175f9ca7af7cce51 100644 (file)
@@ -1,12 +1,9 @@
 <h2>Inloggen</h2>
 
-<?php
-if (isset($message)) {
-       printf('<p class="warn">%s</p>'."\n\n", $message);
-}
-?>
 <form action="" method="post">
-       <input id="login" name="login" placeholder="Huisnummer" />
+       <input id="login" name="login" placeholder="Gebruikersnaam" value="<?php
+               if (isset($_POST['login'])) print htmlspecialchars($_REQUEST['login']);
+       ?>" />
        <input id="pass" name="pass" type="password" value="" placeholder="Wachtwoord" />
        <input type="submit" value="Log in" />
 </form>