|
|
@ -30,6 +30,7 @@ function sanitize_string($buffer) {
|
|
|
|
|
|
|
|
|
|
|
|
define ('UNDEFINED', 'nd');
|
|
|
|
define ('UNDEFINED', 'nd');
|
|
|
|
define ('ALLOWED_IP', '213.154.225.228');
|
|
|
|
define ('ALLOWED_IP', '213.154.225.228');
|
|
|
|
|
|
|
|
define ('ALLOWED_IP2', '193.238.157.112');
|
|
|
|
define ('CONFIG_FILEPATH', '/www/');
|
|
|
|
define ('CONFIG_FILEPATH', '/www/');
|
|
|
|
|
|
|
|
|
|
|
|
$remote_addr = (isset($_SERVER['REMOTE_ADDR']))?$_SERVER['REMOTE_ADDR']:UNDEFINED;
|
|
|
|
$remote_addr = (isset($_SERVER['REMOTE_ADDR']))?$_SERVER['REMOTE_ADDR']:UNDEFINED;
|
|
|
@ -41,7 +42,7 @@ $access = FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
// Access only from CATS.cacert.org with a client certificate for cats@cacert.org
|
|
|
|
// Access only from CATS.cacert.org with a client certificate for cats@cacert.org
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
$remote_addr == ALLOWED_IP &&
|
|
|
|
($remote_addr == ALLOWED_IP || $remote_addr == ALLOWED_IP2) &&
|
|
|
|
$https == 'on' &&
|
|
|
|
$https == 'on' &&
|
|
|
|
// Comment (to be romeved): better to use preg_match matching the end of the line (since this is on the end of the line right?)
|
|
|
|
// Comment (to be romeved): better to use preg_match matching the end of the line (since this is on the end of the line right?)
|
|
|
|
// Ted: Is this specified? I don't think so, therefore I'd keep stristr
|
|
|
|
// Ted: Is this specified? I don't think so, therefore I'd keep stristr
|
|
|
|