X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/9de683f8c399ee4a78fbc86b5ee96ce5662acf97..d1d031e348974975891a7ad232ef387e95abdd61:/page.inc.php diff --git a/page.inc.php b/page.inc.php index b3fa5f7..2c1fc6c 100644 --- a/page.inc.php +++ b/page.inc.php @@ -13,16 +13,14 @@ $nav = preg_replace_callback('{(.*?)}', function ($m) { print $nav; print "\n\n"; -print '
'."\n\n"; - -include_once 'auth.inc.php'; - register_shutdown_function(function () { - print "
\n\n"; include 'foot.inc.php'; print "\n"; }); +print '
'."\n\n"; include "./$Page.html"; +print "
\n\n"; + if (file_exists("$Page.php")) include_once("./$Page.php");