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