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'])) {
+if (empty($Args) and !empty($User['admin'])) {
include_once 'admin/index.html';
include_once 'admin.php';
}