]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
Next wave of lesser getMessage()
[mailer.git] / inc / monthly / monthly_bonus.php
index 7ae9f44a17ea74ea69fc90d40bb0ec45f12b9c28..500f9f23d471c6e37bc6eee3dc638bc97288bcb1 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 11/14/2004 *
- * ===============                              Last change: 11/19/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 11/14/2004 *
+ * ===================                          Last change: 06/20/2010 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : monthly_bonus.php                                *
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
+} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
+       // Do not execute when script is in CSS mode or no daily reset
+       return;
 } elseif (!isExtensionActive('bonus')) {
+       logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension disabled.');
        return;
 }
 
-// Do not execute when script is in CSS mode or no daily reset
-if ((getOutputMode() == 1) || (!isResetModeEnabled())) return;
-//* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
-
 // Get current month (2 digits)
 $curr = date('m', time());
 
@@ -97,13 +98,9 @@ LIMIT {?bonus_ranks?}", __FILE__, __LINE__);
                                // Add points to user's account directly
                                addPointsDirectly('monthly_bonus', $content['userid'], $content['points']);
 
-                               // Translate gender/points
-                               $content['gender'] = translateGender($content['gender']);
-                               $content['points'] = translateComma($content['points']);
-
                                // Load email template and email it away
                                $message = loadEmailTemplate('member_bonus', $content, bigintval($content['userid']));
-                               sendEmail($content['email'], getMessage('BONUS_MONTHLY_ONLINE_BONUS'), $message);
+                               sendEmail($content['email'], '{--BONUS_MONTHLY_ONLINE_BONUS--}', $message);
                        } // END - if
                } // END - while
 
@@ -121,5 +118,5 @@ SET
        SQL_FREERESULT($result_main);
 } // END - if
 
-//
+// [EOF]
 ?>