<?php
+$body = ob_get_clean();
+
include_once './head.inc.php';
print "<header>\n";
print $nav;
print "</header>\n\n";
+print $body;
+
register_shutdown_function(function () {
include 'foot.inc.php';
print "</body></html>\n";
});
-print '<div class="article">'."\n\n";
-include "./$Page.html";
-print "</div>\n\n";
-
-if (file_exists("$Page.php")) include_once("./$Page.php");
-