X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/6ce5695197ca6b3137a44d775baff00aaa6e0673..9be973973162c972e1bbaac46ccdf82049f75e7c:/page.inc.php?ds=sidebyside diff --git a/page.inc.php b/page.inc.php index 54a3944..80f773d 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,11 +1,11 @@ \n"; ob_start(); -include DOCROOT.'menu.html'; +include 'menu.html'; ob_start(); if (!empty($User)) { print '

'; @@ -20,7 +20,7 @@ if (!empty($User)) { else { $editpage .= '.html'; } - if (is_writable($editpage)) { + if (!file_exists($editpage) or is_writable($editpage)) { print ' Wijzig'; } } @@ -46,7 +46,7 @@ print $body; register_shutdown_function(function () { print '

\n"; global $User;