X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..a257ef8b6e9d435938803471bd655be9d9734370:/page.inc.php diff --git a/page.inc.php b/page.inc.php index 137d266..23a7106 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,11 +1,8 @@ \n"; -ob_start(); -include 'menu.inc.html'; +$menu = new ArchiveArticle('menu.inc.html'); ob_start(); if ($User and property_exists($User, 'login') and $User->login) { print '
'; @@ -13,23 +10,10 @@ if ($User and property_exists($User, 'login') and $User->login) { '👤', '/login', $User->login ); - if ($User->admin("edit {$Page->link}")) { - $editpage = $Page->link; - 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 ' ✍'; - } - } print "