X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=beg.php;h=f53f158f2ee2f8a3c0f5738cbce052198d7f6d87;hp=9d1ef62d0895f25fff1abad51f92b0ef2e476836;hb=1090de8d4e7bf659002468fec8571388e7487a00;hpb=06c7c6a05e15658be2d6e70b1cbe4812c8e3dcf4 diff --git a/beg.php b/beg.php index 9d1ef62d08..f53f158f2e 100644 --- a/beg.php +++ b/beg.php @@ -62,7 +62,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { $uid = 0; // Validate if it is not a number - if ("".bigintval($_GET['uid'])."" !== "".$_GET['uid']."") { + if ("".($_GET['uid'] + 0)."" !== "".$_GET['uid']."") { if (EXT_IS_ACTIVE("nickname")) { // Maybe we have found a nickname? $result = SQL_QUERY_ESC("SELECT userid, beg_clicks, ref_payout, status, last_online FROM "._MYSQL_PREFIX."_user_data WHERE nickname='%s' LIMIT 1", @@ -132,7 +132,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { // Remember remote address, userid and timestamp for next click // but only when there is no admin begging. // Admins shall be able to test it! - $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_beg_ips (userid, remote_ip, timeout) VALUES('%s','%s', UNIX_TIMESTAMP())", + $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_beg_ips (userid, remote_ip, timeout) VALUES ('%s','%s', UNIX_TIMESTAMP())", array($uid, GET_REMOTE_ADDR()), __FILE__, __LINE__); } @@ -147,7 +147,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { array($points, $uid), __FILE__, __LINE__); } else { // Add points to account - $DEPTH = 0; + unset($DEPTH); ADD_POINTS_REFSYSTEM($uid, $points, false, "0", $locked, strtolower($_CONFIG['beg_mode'])); }