X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/d092b634576730fc2ead1dc4c88711da09415f75..HEAD:/head.inc.php diff --git a/head.inc.php b/head.inc.php index 2522ad7..9bcae17 100644 --- a/head.inc.php +++ b/head.inc.php @@ -1,29 +1,20 @@ -\n"; - -ob_start(); -include 'menu.html'; -$nav = ob_get_clean(); -$nav = preg_replace_callback('{(.*?)}', function ($m) { - $request = $_SERVER['REQUEST_URI']; - $html = $request == $m[1] ? $m[2] : $m[0]; # text or full link - return $m[1] == substr($request, 0, strlen($m[1])) ? "$html" : $html; -}, $nav); -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"; -}); - -include "$Page.html"; -if (file_exists("$Page.php")) include_once("$Page.php"); - + + + + +title) { ?> + <?= htmlspecialchars($Page->safetitle) ?> + +teaser) { ?> + + + + +image) { ?> + + + + +head)) print $Page->head; ?> + +