SQL_FREERESULT($result);
// Shall we pay the points back to the user?
- if ($_CONFIG['repay_deleted_mails'] == "Y") {
+ if ($_CONFIG['repay_deleted_mails'] != "NEVER") {
// Get all user links
$result = SQL_QUERY_ESC("SELECT COUNT(id) AS 'cnt' FROM "._MYSQL_PREFIX."_user_links WHERE stats_id=%d",
array(bigintval($stats_id)), __FILE__, __LINE__);
$totalPoints = $links * $price;
//* DEBUG: */ echo $stats_id.":".$totalPoints."/".$links."/".$price."<br />\n";
if ($totalPoints > 0) {
+ // Shall we payback to user or jackpot?
+ if ($_CONFIG['repay_deleted_mails'] == "JACKPOT") {
+ // Set jackpot
+ $sender = 0;
+ }
+
// Pay back points
//* DEBUG: */ echo "PAYBACK:".$sender."<br />\n";
ADD_POINTS_REFSYSTEM($sender, $totalPoints, true, "0", false,"direct");