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:
4f8a1fc
)
login/edit: admin links to doc/post user pages
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 15 Oct 2019 03:29:23 +0000
(
05:29
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 16 Oct 2019 16:40:54 +0000
(18:40 +0200)
widget/login/edit.php
patch
|
blob
|
history
diff --git
a/widget/login/edit.php
b/widget/login/edit.php
index 0d61a4f2a029e2ffa2a3758da6e09c8f47ee1fe9..829631e875da16065cf069026ea26fbb4364d3da 100644
(file)
--- a/
widget/login/edit.php
+++ b/
widget/login/edit.php
@@
-161,7
+161,28
@@
if ($_POST) {
}
}
}
}
+if ($User->admin('user')) {
?>
?>
+<aside>
+<h2>Gebruikersbeheer</h2>
+<?php
+ $postdir = 'doc/post';
+ if (is_dir($postdir)) {
+ print "<h3>Brieven</h3><ul>\n";
+ foreach (glob("$postdir/*.html") as $link) {
+ $page = new ArchiveArticle($link);
+ printf('<li><a href="/%s?login=%s">%s</a></li>'."\n",
+ $page->link, $user->login, $page->name
+ );
+ }
+ print "</ul>\n";
+ }
+?>
+</aside>
+<?php
+}
+?>
+
<form method="post" enctype="multipart/form-data">
<ul class="grid">
<?php
<form method="post" enctype="multipart/form-data">
<ul class="grid">
<?php