X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/0e699432ba7d5b10b24ef5355dbe9b0036ebd248..87ae71d836e57d6952f4c11ee6ffc02a79d8bdf7:/page.inc.php diff --git a/page.inc.php b/page.inc.php index 654f37f..7c8e191 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,12 +1,33 @@ \n"; ob_start(); -include './menu.html'; -$nav = ob_get_clean(); +include DOCROOT.'menu.html'; +ob_start(); +if (isset($User)) { + print '
'; + printf('Ingelogd: %s', $User['name']); + if ($User['admin']) { + $editpage = $Page.$Args; + if (is_dir($editpage)) { + if (file_exists("$editpage/index.html")) { + $editpage .= '/index.html'; + } + } + else { + $editpage .= '.html'; + } + if (is_writable($editpage)) { + print ' Wijzig'; + } + } + print "