X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/d092b634576730fc2ead1dc4c88711da09415f75..ac0eaa8a44ed4336c7405c737675cc8d5cb11252:/head.inc.php diff --git a/head.inc.php b/head.inc.php index 2522ad7..9ff6495 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 '