login: move logged in message to static contents
[minimedit.git] / login.php
index 1c7dfe0c2c5f6878fe893235887be4848611cdda..b0d7c5857006e715cd3a1ea319331929f7fc2fee 100644 (file)
--- a/login.php
+++ b/login.php
@@ -28,12 +28,12 @@ if (isset($_GET['goto'])) {
        http_response_code(302);
        exit;
 }
-?>
-<p>Ingelogd als <em><?php print $User['name']; ?></em>.</p>
 
-<p class="nav"><a href="?logout">Uitloggen</a></p>
+$part = [
+       'user'  => $User['name'],
+];
+print getoutput($part);
 
-<?php
 if (!empty($User['admin'])) {
        include_once 'admin/index.html';
        include_once 'admin.php';