X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fpurge%2Fpurge-general.php;h=fa5cf3f0569ee48472f5690a4759e9089becabc9;hb=0b4c98232a5c9c5b934a5049dc3c84ad32ab1125;hp=896442769b01ca7276ec01774effb633526d8c45;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689;p=mailer.git diff --git a/inc/purge/purge-general.php b/inc/purge/purge-general.php index 896442769b..fa5cf3f056 100644 --- a/inc/purge/purge-general.php +++ b/inc/purge/purge-general.php @@ -17,7 +17,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -41,7 +41,7 @@ if (!defined('__SECURITY')) { die(); } elseif ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) { // Abort here - return false; + return FALSE; } if (getAutoPurge() > 0) { @@ -88,11 +88,11 @@ ORDER BY // Remove confirmation links from queue addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s", - array(bigintval($content['id'])), __FILE__, __LINE__, false)); + array(bigintval($content['id'])), __FILE__, __LINE__, FALSE)); // Update status of order addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='DELETED' WHERE `id`=%s LIMIT 1", - array(bigintval($content['pool_id'])), __FILE__, __LINE__, false)); + array(bigintval($content['pool_id'])), __FILE__, __LINE__, FALSE)); } // END - if } // END - while @@ -104,9 +104,9 @@ ORDER BY SQL_FREERESULT($result); // Is the 'bonus' extension installed and activated? - if (isExtensionActive('bonus', true)) { + if (isExtensionActive('bonus', TRUE)) { // Check for bonus campaigns - $result = SQL_QUERY("SELECT `id`,`points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__); + $result = SQL_QUERY("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__); if (!SQL_HASZERONUMS($result)) { // Start deleting procedure $points = '0'; @@ -123,16 +123,18 @@ ORDER BY // Remove confirmation links from queue addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s", - array(bigintval($content['id'])), __FILE__, __LINE__, false)); + array(bigintval($content['id'])), __FILE__, __LINE__, FALSE)); // Update status of order addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='DELETED' WHERE `id`=%s LIMIT 1", - array(bigintval($content['id'])), __FILE__, __LINE__, false)); + array(bigintval($content['id'])), __FILE__, __LINE__, FALSE)); } // END - if } // END - while // Add points to jackpot - if (isExtensionActive('jackpot')) addPointsToJackpot($points); + if (isExtensionActive('jackpot')) { + addPointsToJackpot($points); + } // END - if // Add points for the admin $admin_points += $points;