From: Mischa POSLAWSKY Date: Tue, 12 Sep 2017 21:40:13 +0000 (+0200) Subject: page: exclude dynamic output from article container X-Git-Tag: v2.1~17 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/85cba03008bb578b92db4c9876e5e0f96c76f543 page: exclude dynamic output from article container Restrict editor to only static contents. --- diff --git a/page.inc.php b/page.inc.php index dcb0573..2c1fc6c 100644 --- a/page.inc.php +++ b/page.inc.php @@ -13,14 +13,14 @@ $nav = preg_replace_callback('{(.*?)}', function ($m) { print $nav; print "\n\n"; -print '
'."\n\n"; - register_shutdown_function(function () { - print "
\n\n"; include 'foot.inc.php'; print "\n"; }); +print '
'."\n\n"; include "./$Page.html"; +print "
\n\n"; + if (file_exists("$Page.php")) include_once("./$Page.php");