M includes/index.php +4 -5
@@ 1,15 1,14 @@
-<?php include 'includes/header.php'; ?>
+<?php include 'header.php'; ?>
<main>
<h1>Your personal wiki</h1>
<p>
lipu li is a little wiki engine that lets you manage your pages online. When a page references another page,
- lipu
- li generates a backlink.
+ lipu li generates a backlink.
</p>
- <?php include 'includes/login_form.php' ?>
+ <?php include 'login_form.php' ?>
<p>
<a href="manual.php" class="link">Manual</a><br>
@@ 17,4 16,4 @@
</p>
</main>
-<?php include 'includes/footer.php'; ?>
+<?php include 'footer.php'; ?>
A => includes/login_form.php +18 -0
@@ 0,0 1,18 @@
+<form action="login.php" method="post">
+ <?php include 'csrf.php' ?>
+
+ <label for="form-name">Email:</label>
+ <input type="email" name="email" value="" class="form-control"/>
+
+ <label for="form-password">Password:</label>
+ <input type="password" name="password" class="form-control" required/>
+
+ <p>
+ <input type="submit" value="Login"/>
+ <input type="checkbox" id="remember" name="remember"> <label for="remember">Remember me</label>
+ </p>
+
+ <nav>
+ <a href="password-lost.php">Password lost?</a> <a href="register.php">Register</a>
+ </nav>
+</form>
No newline at end of file