From 8c48d7e676efc23118ce2631642126c869ce4efb Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 12 Sep 2017 02:40:41 +0200 Subject: [PATCH] page: global var to indicate edit mode --- foot.inc.php | 9 ++++----- page.php | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/foot.inc.php b/foot.inc.php index e3e36b6..a7f52d6 100755 --- a/foot.inc.php +++ b/foot.inc.php @@ -2,13 +2,12 @@ '.N; echo ''.N; if ($notfound) { @@ -24,8 +23,8 @@ EOT; echo ''.N; } diff --git a/page.php b/page.php index 5d79cf6..e2043ed 100644 --- a/page.php +++ b/page.php @@ -29,4 +29,6 @@ while (TRUE) { $Page = substr($Page, 0, $up); } +$Edit = isset($_GET['edit']); + include 'head.inc.php'; -- 2.30.0