git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
admin/visits: list entries of last logins
[minimedit.git]
/
login.php
diff --git
a/login.php
b/login.php
index 1c7dfe0c2c5f6878fe893235887be4848611cdda..714b5c56d096638fb1fb46ac02989ebddd43e238 100644
(file)
--- a/
login.php
+++ b/
login.php
@@
-28,13
+28,13
@@
if (isset($_GET['goto'])) {
http_response_code(302);
exit;
}
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';
}
include_once 'admin/index.html';
include_once 'admin.php';
}