2 include_once 'head.inc.html';
9 $nav = preg_replace_callback('{<a href="([^"]+)">(.*?)</a>}', function ($m) {
10 $request = $_SERVER['REQUEST_URI'];
11 $html = $request == $m[1] ? $m[2] : $m[0]; # text or full link
12 return $m[1] == substr($request, 0, strlen($m[1])) ? "<b>$html</b>" : $html;
15 print "</header>\n\n";
17 print '<div class="article">'."\n\n";
19 include_once 'auth.inc.php';
21 register_shutdown_function(function () {
23 include 'foot.inc.php';
24 print "</body></html>\n";
28 if (file_exists("$Page.php")) include_once("$Page.php");