X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fautopurge.php;h=6873a1542ad1cb5345402087602c28d2bfbf5d44;hb=8127c0351f2fe329e72d9fd302ba3c5f30d1fab0;hp=0871b6ce80aa14ae21a16ebaa91ba513e28d7248;hpb=43885129ac24cee5545a8a5ad51e90aa182fdf46;p=mailer.git diff --git a/inc/autopurge.php b/inc/autopurge.php index 0871b6ce80..6873a1542a 100644 --- a/inc/autopurge.php +++ b/inc/autopurge.php @@ -311,8 +311,7 @@ if ((GET_EXT_VERSION("task") > "0.0") && ($_CONFIG['ap_tasks'] == "Y")) } // Search for mails from deleted members? -if ($_CONFIG['ap_del_mails']) -{ +if ($_CONFIG['ap_del_mails']) { // Okay, let's check for them... $since = bigintval(time() - $_CONFIG['ap_dm_timeout']); $result_mails = SQL_QUERY_ESC("SELECT sender FROM "._MYSQL_PREFIX."_pool WHERE data_type='DELETED' AND timestamp <= %s ORDER BY sender", @@ -322,15 +321,12 @@ if ($_CONFIG['ap_del_mails']) $DELETED = 0; // Do we have "purged" mails? - if (SQL_NUMROWS($result_mails) > 0) - { + if (SQL_NUMROWS($result_mails) > 0) { // Okay, check for their sender's - while(list($sender) = SQL_FETCHROW($result_mails)) - { + while(list($sender) = SQL_FETCHROW($result_mails)) { // Check now... $fount = SQL_NUMROWS(SQL_QUERY_ESC("SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array(bigintval($sender)), __FILE__, __LINE__)); - if ($found == 0) - { + if ($found == 0) { // Okay we found some mails! $result_remove = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_pool WHERE sender=%s", array(bigintval($sender)), __FILE__, __LINE__); @@ -353,15 +349,12 @@ if ($_CONFIG['ap_del_mails']) array($since), __FILE__, __LINE__); // Do we have "purged" mails? - if (SQL_NUMROWS($result_mails) > 0) - { + if (SQL_NUMROWS($result_mails) > 0) { // Okay, check for their sender's - while(list($sender) = SQL_FETCHROW($result_mails)) - { + while(list($sender) = SQL_FETCHROW($result_mails)) { // Check now... $found = SQL_NUMROWS(SQL_QUERY_ESC("SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array(bigintval($sender)), __FILE__, __LINE__)); - if ($found == 0) - { + if ($found == 0) { // Okay we found some mails! $result_remove = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_stats WHERE sender=%s", array(bigintval($sender)), __FILE__, __LINE__); $DELETED += SQL_AFFECTEDROWS(); @@ -378,25 +371,23 @@ if ($_CONFIG['ap_del_mails']) SQL_FREERESULT($result_mails); // Do we have deleted mails and the admin want's to receive a notification - if (($DELETED > 0) && ($_CONFIG['ap_dm_notify'] == "Y")) - { + if (($DELETED > 0) && ($_CONFIG['ap_dm_notify'] == "Y")) { // Send out email to admin SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_DEL_MAILS_SUBJECT, "admin_autopurge_del_mails", $DELETED, ""); } } -if (EXT_IS_ACTIVE("rallye")) -{ +if (EXT_IS_ACTIVE("rallye")) { // Check expired rallyes (hard-coded 3 days limit for displaying expired rallyes!) require_once(PATH."inc/libs/rallye_functions.php"); RALLYE_DELETE_EXPIRED_RALLYES(); } -// -if (EXT_IS_ACTIVE("bonus")) -{ + +if (EXT_IS_ACTIVE("bonus")) { // Check for expired turbo bonus lines require_once(PATH."inc/libs/bonus_functions.php"); BONUS_PURGE_EXPIRED_TURBO_BONUS(); } + // ?>