]> git.mxchange.org Git - mailer.git/blobdiff - beg.php
For these IP locks, the real IP address is required, not any anonymized
[mailer.git] / beg.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__);