login: emulate apache authentication to check admin login
[minimedit.git] / foot.inc.php
index 586d6a84353cb3a34b54f01c9f6717cabaaae41f..229cae8dea3294ee46aa3fa0ecdd16fd4a06f516 100755 (executable)
@@ -3,6 +3,8 @@
 <?php
 define('N', "\n");
 
+include 'auth.inc.php';
+
 $curfile = ltrim($_SERVER['SCRIPT_NAME'], '/');
 if (is_executable(__DIR__ . '/' . $curfile)) {
        // dynamic code is +x
@@ -26,7 +28,7 @@ EOT;
        }
 
        echo '<p class="footer">'.N;
-       echo "Beheer toegestaan voor $editable:".N;
+       echo "Beheer toegestaan voor $User:".N;
        printf('<a href="?%s">%s</a>'.N,
                $edit ? '' : 'edit',
                $edit ? 'lezen' : ($notfound ? 'aanmaken' : 'aanpassen')