X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/d092b634576730fc2ead1dc4c88711da09415f75..b04f76050d54c67844d5d4026993f6fab0edeae5:/head.inc.php?ds=inline diff --git a/head.inc.php b/head.inc.php index 2522ad7..4082b92 100644 --- a/head.inc.php +++ b/head.inc.php @@ -1,29 +1,19 @@ -\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 '