X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/97bc8f54b09859842e53d4886234a3b09122ea71..d8990050a9613532c92b86ad86bfbc58a9c2e5c9:/page.inc.php?ds=sidebyside diff --git a/page.inc.php b/page.inc.php index dcb0573..c0282ee 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,26 +1,40 @@ \n"; ob_start(); -include './menu.html'; +include DOCROOT.'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); +if (isset($User)) { + $nav = preg_replace('{\s*