X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/9dc3198f0265a80f5a232327733974f9980ed7f2..0e699432ba7d5b10b24ef5355dbe9b0036ebd248:/page.inc.php diff --git a/page.inc.php b/page.inc.php index 4cc6939..654f37f 100644 --- a/page.inc.php +++ b/page.inc.php @@ -24,8 +24,18 @@ print "\n\n"; print $body; +$footinc = realpath('footer.html'); # cwd lost during shutdown register_shutdown_function(function () { - include 'foot.inc.php'; + print '\n"; + + global $User; + if (isset($User) and $User['admin']) { + print ''."\n"; + print ''."\n"; + } + print "\n"; });