X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/85536cb70f85743054b6b3abfc36d05662e6878d..1f8560a20d5d1aa8886688bd7553b8a8fd704fff:/page.inc.php diff --git a/page.inc.php b/page.inc.php index c4884b9..1253338 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,11 +1,11 @@ \n"; ob_start(); -include DOCROOT.'menu.html'; +include 'menu.html'; ob_start(); if (!empty($User)) { print '

'; @@ -46,13 +46,17 @@ print $body; register_shutdown_function(function () { print '

\n"; global $User; if (!empty($User['admin'])) { - print ''."\n"; - print ''."\n"; + $ckesrc = '/lib/ckeditor'; # local install + if (!file_exists(DOCROOT . $ckesrc)) { + $ckesrc = '//cdn.ckeditor.com/4.7.3/full-all'; # remote fallback + } + printf(''."\n", "$ckesrc/ckeditor.js"); + print ''."\n"; } print "\n";