--- /dev/null
+<?php
+$ALLOWED = [
+ '127.0.0.1',
+ '192.168.178.0/24',
+ '94.208.83.16', # arie.ziggo
+ '83.161.198.138', # shiar.demon
+ '145.131.141.219', # shiar@1m
+];
+
+$editable = in_array($_SERVER['REMOTE_ADDR'], $ALLOWED) ?
+ $_SERVER['REMOTE_ADDR'] : FALSE;
+
exit;
}
+require 'auth.inc.php';
+if (!$editable)
+ abort('401 unauthorised', "geen beheersrechten");
+
if (!$_POST)
abort('405 post error', "niets te doen");
if (!isset($_SERVER['PATH_INFO']) or strlen($_SERVER['PATH_INFO']) <= 1)
<?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