git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e936f8
)
login: move logged in message to static contents
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 22 Dec 2017 23:02:32 +0000
(
00:02
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 22 Dec 2017 23:59:18 +0000
(
00:59
+0100)
Allow site customisation.
login.html
patch
|
blob
|
history
login.php
patch
|
blob
|
history
diff --git
a/login.html
b/login.html
index b29920d4db632b28fff1d18c949e0d2727c28334..7039aabfe27645172d33dd3a1dff008eed74d403 100644
(file)
--- a/
login.html
+++ b/
login.html
@@
-1,2
+1,5
@@
<h2>Ingelogd</h2>
+<p>Ingelogd als <em>[[user]]</em>.</p>
+
+<p class="nav"><a href="?logout">Uitloggen</a></p>
diff --git
a/login.php
b/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';