login: replace http authentication by cookie system
[minimedit.git] / page.php
index 51ef900455c485d78bd770afaa59ea55d9ccce77..f6088dd859dcb2906477307b99a52088610ee554 100644 (file)
--- a/page.php
+++ b/page.php
@@ -2,6 +2,9 @@
 error_reporting(E_ALL);
 ini_set('display_errors', TRUE);
 
+include_once 'auth.inc.php';
+$Edit = isset($_GET['edit']);
+
 $Args = '';
 $Page = preg_replace('/\?.*/', '', $_SERVER['REQUEST_URI']);
 $Page = urldecode(trim($Page, '/')) ?: 'index';
@@ -29,6 +32,4 @@ while (TRUE) {
        $Page = substr($Page, 0, $up);
 }
 
-$Edit = isset($_GET['edit']);
-
-include 'head.inc.php';
+include 'page.inc.php';