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:
97bc8f5
)
page: exclude dynamic output from article container
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 12 Sep 2017 21:40:13 +0000
(23:40 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 18 Sep 2017 18:21:28 +0000
(20:21 +0200)
Restrict editor to only static contents.
page.inc.php
patch
|
blob
|
history
diff --git
a/page.inc.php
b/page.inc.php
index dcb0573223a06f4f9e6601a857ef2e1314b384a7..2c1fc6c7e201f160dbc4642a8e8d1b8fc09a0dc2 100644
(file)
--- a/
page.inc.php
+++ b/
page.inc.php
@@
-13,14
+13,14
@@
$nav = preg_replace_callback('{<a href="([^"]+)">(.*?)</a>}', function ($m) {
print $nav;
print "</header>\n\n";
-print '<div class="article">'."\n\n";
-
register_shutdown_function(function () {
- print "</div>\n\n";
include 'foot.inc.php';
print "</body></html>\n";
});
+print '<div class="article">'."\n\n";
include "./$Page.html";
+print "</div>\n\n";
+
if (file_exists("$Page.php")) include_once("./$Page.php");