X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/c5d71935bf920cae82c602ff3d644d2e4bb6df47..d3ed59c2753c2babd5aa9a1c5e0109c644904ba8:/page.inc.php?ds=inline diff --git a/page.inc.php b/page.inc.php index 0ca6589..120fb95 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,10 +1,33 @@ \n"; ob_start(); -include 'menu.html'; -$nav = ob_get_clean(); +include 'menu.inc.html'; +ob_start(); +if ($User and property_exists($User, 'login') and $User->login) { + print '
'; + printf('Ingelogd: %s', '/login', $User->login); + if ($User->admin("edit $Page$Args")) { + $editpage = $Page.$Args; + if (is_dir($editpage)) { + if (file_exists("$editpage/index.html")) { + $editpage .= '/index.html'; + } + } + else { + $editpage .= '.html'; + } + if (!file_exists($editpage) or is_writable($editpage)) { + print ' Wijzig'; + } + } + print "