$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__);
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__);
getUserData('userid'),
convertZeroToNull(determineReferralId()),
bigintval(postRequestElement('points') * 2),
- detectRemoteAddr()
+ determineRealRemoteAddress()
), __FILE__, __LINE__);
// Subtract entered points and ignore return status
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. ^^^