From 85cba03008bb578b92db4c9876e5e0f96c76f543 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 12 Sep 2017 23:40:13 +0200 Subject: [PATCH] page: exclude dynamic output from article container Restrict editor to only static contents. --- page.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); -- 2.30.0