From 78a374fd8db2491b461d15554a2172a959efc579 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 23 Jan 2013 18:32:10 +0000 Subject: [PATCH] For these IP locks, the real IP address is required, not any anonymized --- beg.php | 4 ++-- doubler.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beg.php b/beg.php index e333315d8a..35e020dd82 100644 --- a/beg.php +++ b/beg.php @@ -103,7 +103,7 @@ if (isGetRequestElementSet('userid')) { $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE ((UNIX_TIMESTAMP() - `timeout`) >= {?beg_timeout?} OR ((UNIX_TIMESTAMP() - `timeout`) >= {?beg_userid_timeout?} AND `userid`=%s)) AND (`remote_ip`='%s' OR `sid`='%s') LIMIT 1", array( getUserData('userid'), - detectRemoteAddr(), + determineRealRemoteAddress(), session_id() ), __FILE__, __LINE__); @@ -123,7 +123,7 @@ if (isGetRequestElementSet('userid')) { SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_beg_ips` (`userid`, `remote_ip`, `sid`, `timeout`) VALUES ('%s','%s','%s', UNIX_TIMESTAMP())", array( getUserData('userid'), - detectRemoteAddr(), + determineRealRemoteAddress(), session_id() ), __FILE__, __LINE__); diff --git a/doubler.php b/doubler.php index 04fb0d6a93..8815109d2a 100644 --- a/doubler.php +++ b/doubler.php @@ -104,7 +104,7 @@ if (isFormSent()) { getUserData('userid'), convertZeroToNull(determineReferralId()), bigintval(postRequestElement('points') * 2), - detectRemoteAddr() + determineRealRemoteAddress() ), __FILE__, __LINE__); // Subtract entered points and ignore return status @@ -122,7 +122,7 @@ if (isFormSent()) { array( convertZeroToNull(determineReferralId()), (postRequestElement('points') * 2 * getDoublerRef() / 100), - detectRemoteAddr() + determineRealRemoteAddress() ), __FILE__, __LINE__); // And that's why we don't want to you more than one referral level of doubler-points. ^^^ -- 2.39.5