From: Mischa POSLAWSKY Date: Tue, 12 Sep 2017 00:40:41 +0000 (+0200) Subject: page: global var to indicate edit mode X-Git-Tag: v2.0^0 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/8c48d7e676efc23118ce2631642126c869ce4efb page: global var to indicate edit mode --- 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';