login: replace http authentication by cookie system
[minimedit.git] / edit.php
index fe80528a7d1c83faca00ef8e751cf5e271baae72..01d83dfa64f602dcf71ca38f2049f7f188432058 100755 (executable)
--- a/edit.php
+++ b/edit.php
@@ -5,8 +5,7 @@ function abort($status, $body) {
        exit;
 }
 
-require 'auth.inc.php';
-if (!$Admin)
+if (!$User['admin'])
        abort('401 unauthorised', "geen beheersrechten");
 
 if (!$_POST)