X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/d092b634576730fc2ead1dc4c88711da09415f75..d780bb75d42fe6e8c12f5e7fc82b50f005b37e92:/head.inc.php?ds=inline diff --git a/head.inc.php b/head.inc.php index 2522ad7..72cbf36 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 '