summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Fröhlich <bernhard@cacert.org>2018-05-14 21:33:55 +0200
committerBernhard Fröhlich <bernhard@cacert.org>2018-05-14 21:33:55 +0200
commit751d54c7bbf6ef7c8c4dd00c6fa44aae5e887103 (patch)
tree98a702c5d4b916de82d5cf8226b7f5ec7b77b7d7
parent0c67f4112e8e553dcea767442ba270cbfa32010e (diff)
downloadcacert-devel-751d54c7bbf6ef7c8c4dd00c6fa44aae5e887103.tar.gz
cacert-devel-751d54c7bbf6ef7c8c4dd00c6fa44aae5e887103.tar.xz
cacert-devel-751d54c7bbf6ef7c8c4dd00c6fa44aae5e887103.zip
Adjusted accepted IP to new testsystem
-rw-r--r--www/cats/cats_import.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/cats/cats_import.php b/www/cats/cats_import.php
index eefbb85..9faa1e6 100644
--- a/www/cats/cats_import.php
+++ b/www/cats/cats_import.php
@@ -19,8 +19,8 @@
// Comment (to be romeved): better to disable shot open tags in php.ini
/*
- cats_import.php
-
+ cats_import.php
+
API for CATS to import passed tests into main CAcert database.
*/
@@ -32,7 +32,7 @@ function sanitize_string($buffer) {
define ('UNDEFINED', 'nd');
// Specific for testserver: Accept Test-CATS-Server
-define ('ALLOWED_IP', '192.109.159.27');
+define ('ALLOWED_IP', '172.16.2.10');
//define ('ALLOWED_IP', '213.154.225.243');
define ('ALLOWED_IP2', '192.109.159.28');
define ('CONFIG_FILEPATH', '/www/');
@@ -47,7 +47,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_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?)
// Ted: Is this specified? I don't think so, therefore I'd keep stristr
strlen(stristr($ssl_client_s_dn, '/emailAddress=cats@cacert.org')) > 0
@@ -85,7 +85,7 @@ if (get_magic_quotes_gpc()) {
$variant = $_POST['variant'];
$date = $_POST['date'];
}
-
+
// Explicitly select all those IDs so I can insert new rows if needed.
$query = mysql_query('SELECT `id` FROM `cats_type` WHERE `type_text` = \''.mysql_real_escape_string($type).'\';');
if (!$query) {
@@ -164,6 +164,6 @@ if (!fix_assurer_flag($userID)) {
exit();
}
-echo 'OK'."\r\n";
+echo 'OK'."\r\n";
?>