X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/882347cba815e99ba8e7ad28d077420aa986e7c5..6212e202d229f2301931f72cea4370d4e931ed1d:/page.inc.php diff --git a/page.inc.php b/page.inc.php index 8298c6d..577f1e0 100644 --- a/page.inc.php +++ b/page.inc.php @@ -5,12 +5,12 @@ include_once 'head.inc.php'; print "
\n"; ob_start(); -include 'menu.html'; +include 'menu.inc.html'; ob_start(); if ($User) { print '

'; printf('Ingelogd: %s', '/login', $User->login); - if ($User->admin) { + if ($User->admin('edit')) { $editpage = $Page.$Args; if (is_dir($editpage)) { if (file_exists("$editpage/index.html")) { @@ -40,11 +40,11 @@ print $body; register_shutdown_function(function () { print '

\n"; global $User; - if ($User and $User->admin) { + if ($User and $User->admin('edit')) { $ckesrc = '/lib/ckeditor'; # local install if (!file_exists(DOCROOT . $ckesrc)) { $ckesrc = '//cdn.ckeditor.com/4.7.3/full-all'; # remote fallback