page: move client authentication to php include
[minimedit.git] / foot.inc.php
index 799fb133ed688cce2dc91c77f921ebeb25ffb9ef..586d6a84353cb3a34b54f01c9f6717cabaaae41f 100755 (executable)
@@ -3,12 +3,6 @@
 <?php
 define('N', "\n");
 
-$ALLOWED = [
-       '127.0.0.1',
-];
-$editable = in_array($_SERVER['REMOTE_ADDR'], $ALLOWED) ?
-       $_SERVER['REMOTE_ADDR'] : FALSE;
-
 $curfile = ltrim($_SERVER['SCRIPT_NAME'], '/');
 if (is_executable(__DIR__ . '/' . $curfile)) {
        // dynamic code is +x