Enforce on all sites, appending (editable) footer.html instead for
site-specific contents.
+++ /dev/null
-<hr class="footer" />
-<?php
-define('N', "\n");
-
-global $User;
-
-if ($User['admin']) {
- echo '<script src="/ckeditor/ckeditor.js"></script>'.N;
- echo '<script src="/edit.js"></script>'.N;
-
- echo '<p class="footer">'.N;
- echo "Beheer toegestaan voor {$User['name']}.".N;
- echo '</p>'.N;
-}
-
print $body;
+$footinc = realpath('footer.html'); # cwd lost during shutdown
register_shutdown_function(function () {
- include 'foot.inc.php';
+ print '<footer>';
+ @include $GLOBALS['footinc'];
+ print "</footer>\n";
+
+ global $User;
+ if (isset($User) and $User['admin']) {
+ print '<script src="//cdn.ckeditor.com/4.7.3/full-all/ckeditor.js"></script>'."\n";
+ print '<script src="/edit.js"></script>'."\n";
+ }
+
print "</body></html>\n";
});