]> git.mxchange.org Git - mailer.git/commitdiff
For these IP locks, the real IP address is required, not any anonymized
authorRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 18:32:10 +0000 (18:32 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 18:32:10 +0000 (18:32 +0000)
beg.php
doubler.php

diff --git a/beg.php b/beg.php
index e333315d8ae1c2152cd2b5995bfa1dd6cc04ff2d..35e020dd82821c3440f2b0e174db8454133f5a1f 100644 (file)
--- 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__);
 
index 04fb0d6a93596483fef630d8c6a0075c552dfda8..8815109d2a489b3372965fe4a2e6a1ae27d06d6a 100644 (file)
@@ -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. ^^^