* -------------------------------------------------------------------- *
* Kurzbeschreibung : Nach Mailbestaetigungen mit 100% Klickrate s. *
* -------------------------------------------------------------------- *
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Nach Mailbestaetigungen mit 100% Klickrate s. *
* -------------------------------------------------------------------- *
* Needs to be in all Files and every File needs "svn propset *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Needs to be in all Files and every File needs "svn propset *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
$result_bonus = SQL_QUERY("SELECT id, userid, subject, timestamp_ordered, clicks, url
FROM `{!_MYSQL_PREFIX!}_user_stats`
WHERE max_rec=clicks AND clicks>0 AND bonus_stats_active='N'
$result_bonus = SQL_QUERY("SELECT id, userid, subject, timestamp_ordered, clicks, url
FROM `{!_MYSQL_PREFIX!}_user_stats`
WHERE max_rec=clicks AND clicks>0 AND bonus_stats_active='N'
// We found some mail orders...
while ($content = SQL_FETCHARRAY($result_bonus)) {
// Add points
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET bonus_stats=bonus_stats+%s WHERE userid=%s LIMIT 1",
// We found some mail orders...
while ($content = SQL_FETCHARRAY($result_bonus)) {
// Add points
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET bonus_stats=bonus_stats+%s WHERE userid=%s LIMIT 1",
- array(getConfig('bonus_stats'), bigintval($content['userid'])), __FILE__, __LINE__);
+ array(getConfig('bonus_stats'), bigintval($content['userid'])), __FILE__, __LINE__);
// Load email template and send email
$msg = LOAD_EMAIL_TEMPLATE("member_stats_bonus", $content, bigintval($content['userid']));
// Load email template and send email
$msg = LOAD_EMAIL_TEMPLATE("member_stats_bonus", $content, bigintval($content['userid']));
- $result_update = SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_stats` SET bonus_stats_active='Y' WHERE id=%s LIMIT 1",
- array(bigintval($content['id'])), __FILE__, __LINE__);
+ $result_update = SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_stats` SET bonus_stats_active='Y' WHERE `id`=%s LIMIT 1",
+ array(bigintval($content['id'])), __FILE__, __LINE__);