login: replace http authentication by cookie system
[minimedit.git] / foot.inc.php
index a7f52d692a1c5930d86724bfdbb6e6ee09a240a1..493dcc9ee72c1967943af17265331818d5a811aa 100755 (executable)
@@ -2,9 +2,9 @@
 <?php
 define('N', "\n");
 
-global $Page, $User, $Admin, $Edit;
+global $Page, $User, $Edit;
 
-if ($Admin) {
+if ($User['admin']) {
        $notfound = $Page == '404';
 
        if ($Edit) {
@@ -21,7 +21,7 @@ EOT;
        }
 
        echo '<p class="footer">'.N;
-       echo "Beheer toegestaan voor $User:".N;
+       echo "Beheer toegestaan voor {$User['name']}:".N;
        printf('<a href="?%s">%s</a>'.N,
                $Edit ? '' : 'edit',
                $Edit ? 'lezen' : ($notfound ? 'aanmaken' : 'aanpassen')