Added secondary IP address

pull/1/head
root 16 years ago
parent f61112ac81
commit d3e18b7a38

@ -30,6 +30,7 @@ function sanitize_string($buffer) {
define ('UNDEFINED', 'nd');
define ('ALLOWED_IP', '213.154.225.228');
define ('ALLOWED_IP2', '193.238.157.112');
define ('CONFIG_FILEPATH', '/www/');
$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
if (
$remote_addr == ALLOWED_IP &&
($remote_addr == ALLOWED_IP || $remote_addr == ALLOWED_IP2) &&
$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?)
// Ted: Is this specified? I don't think so, therefore I'd keep stristr

Loading…
Cancel
Save