X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/50f9b29cc21f5adef555d3cf21940124ceadb0eb..9b5016ca5c340cc4f3b6f39d0f1d52a58946235b:/page.inc.php diff --git a/page.inc.php b/page.inc.php index 8eba91b..23a7106 100644 --- a/page.inc.php +++ b/page.inc.php @@ -10,20 +10,6 @@ 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 "

\n"; } $menu->place['login'] = ob_get_clean(); @@ -37,23 +23,10 @@ $nav = preg_replace_callback('{(.*?)}', function ($m) { print $nav; print "\n\n"; -print $Page->render(); - register_shutdown_function(function () { print '\n"; - - global $User, $Page; - if ($User and $User->admin("edit {$Page->link}")) { - $ckesrc = '/lib/ckeditor'; # local install - if (!file_exists(DOCROOT . $ckesrc)) { - $ckesrc = '//cdn.ckeditor.com/4.15.1/full-all'; # remote fallback - } - printf("\n", "$ckesrc/ckeditor.js"); - print ''."\n"; - } - print "\n"; });