login: replace http authentication by cookie system
[minimedit.git] / page.php
index c88852416c9ccc531b015ce25eec163157d1e452..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 'page.inc.php';