page: exclude dynamic output from article container
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 12 Sep 2017 21:40:13 +0000 (23:40 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 18 Sep 2017 18:21:28 +0000 (20:21 +0200)
Restrict editor to only static contents.

page.inc.php

index dcb0573223a06f4f9e6601a857ef2e1314b384a7..2c1fc6c7e201f160dbc4642a8e8d1b8fc09a0dc2 100644 (file)
@@ -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");