$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
// If not currently doubled set it to zero
unset($_GET['DOUBLER_UID']);
unset($_POST['DOUBLER_UID']);
// If not currently doubled set it to zero
unset($_GET['DOUBLER_UID']);
unset($_POST['DOUBLER_UID']);
$result_total = SQL_QUERY_ESC("SELECT DISTINCT d.id, d.userid, d.points, d.remote_ip, d.timemark
FROM "._MYSQL_PREFIX."_doubler AS d
LEFT JOIN "._MYSQL_PREFIX."_user_data AS u
$result_total = SQL_QUERY_ESC("SELECT DISTINCT d.id, d.userid, d.points, d.remote_ip, d.timemark
FROM "._MYSQL_PREFIX."_doubler AS d
LEFT JOIN "._MYSQL_PREFIX."_user_data AS u
-LIMIT %d", array($DOUBLER_POINTS, $min, $CONFIG['doubler_max_sent']), __FILE__, __LINE__);
+LIMIT %d", array($DOUBLER_POINTS, $min, $_CONFIG['doubler_max_sent']), __FILE__, __LINE__);
// At least one account was found
while(list($id, $uid, $points, $ip, $time) = SQL_FETCHROW($result_load))
// At least one account was found
while(list($id, $uid, $points, $ip, $time) = SQL_FETCHROW($result_load))
- $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET used_points=used_points+%s WHERE userid='' LIMIT 1",
- array($points, $CONFIG['doubler_uid']), __FILE__, __LINE__);
+ $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET used_points=used_points+%s WHERE userid='%d' LIMIT 1",
+ array($points, $_CONFIG['doubler_uid']), __FILE__, __LINE__);
array($points), __FILE__, __LINE__);
// Destroy cache
if (GET_EXT_VERSION("cache") >= "0.1.2")
{
array($points), __FILE__, __LINE__);
// Destroy cache
if (GET_EXT_VERSION("cache") >= "0.1.2")
{