login: replace http authentication by cookie system
[minimedit.git] / page.inc.php
index 0ca658920d98877769933d9ab9eace195de48ed8..dcb0573223a06f4f9e6601a857ef2e1314b384a7 100644 (file)
@@ -1,9 +1,9 @@
 <?php
-include_once 'head.inc.php';
+include_once './head.inc.php';
 
 print "<header>\n";
 ob_start();
-include 'menu.html';
+include './menu.html';
 $nav = ob_get_clean();
 $nav = preg_replace_callback('{<a href="([^"]+)">(.*?)</a>}', function ($m) {
        $request = $_SERVER['REQUEST_URI'];
@@ -15,14 +15,12 @@ print "</header>\n\n";
 
 print '<div class="article">'."\n\n";
 
-include_once 'auth.inc.php';
-
 register_shutdown_function(function () {
        print "</div>\n\n";
        include 'foot.inc.php';
        print "</body></html>\n";
 });
 
-include "$Page.html";
-if (file_exists("$Page.php")) include_once("$Page.php");
+include "./$Page.html";
+if (file_exists("$Page.php")) include_once("./$Page.php");