X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmails%2Fbeg_mails.php;h=fb2292c127152042d77bc9c35f9d57aeacfca76b;hp=db78e472b640c4bb15c20e2c1db0c1fc7d6731c9;hb=63f159414369b5ea19a8ca75d8cd8033c45d8341;hpb=a454def0bfba8288ffc839d034c710f034cf4728 diff --git a/inc/mails/beg_mails.php b/inc/mails/beg_mails.php index db78e472b6..fb2292c127 100644 --- a/inc/mails/beg_mails.php +++ b/inc/mails/beg_mails.php @@ -16,7 +16,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 * @@ -39,12 +39,13 @@ if (!defined('__SECURITY')) { die(); } elseif ((!isExtensionActive('beg')) || (isExtensionInstalledAndOlder('beg', '0.2.8'))) { + // Do not execute script on missing/out-dated extension ext-beg + return; +} elseif (!isHtmlOutputMode()) { + // Do not execute script if not in HTML mode return; } -// Do not execute when script is in CSS mode -if (!isHtmlOutputMode()) return; - // Create timemark from saved month $mark = mktime(0, 0, 0, getLastMonth(), getDay(), getYear()); $sql = ''; $mode = ''; @@ -77,7 +78,7 @@ switch (getBegRallye()) { if (!empty($sql)) { // The SQL command needs to be finisched here (only confirmed accounts!) - $sql .= ") AND `status`='CONFIRMED' ORDER BY `last_online` ASC"; + $sql .= ')' . runFilterChain('user_exclusion_sql', " AND `status`='CONFIRMED'") . ' ORDER BY `last_online` ASC'; // No IP locking setuped by default $content['ip_locker'] = '{--BEG_NO_LIMITATION--}'; @@ -118,7 +119,7 @@ LIMIT 1", // Load email template and send it to the user! if ($sentBonusMails === true) { // Add userid to queue - $userids[] = $content['userid']; + array_push($userids, $content['userid']); } else { // Send normal notification mail to the members $message = loadEmailTemplate('beg_' . $mode . '_notify', $content, $content['userid']);