]> git.mxchange.org Git - mailer.git/blobdiff - inc/daily/daily_yoomedia.php
Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / daily / daily_yoomedia.php
index 592715c95744f1949a0214871100aa51c2510348..edb4b254dce45f279025b8e8b1a69c2ef62c40ba 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Dinge, die beim taeglichen Reset erledigt werden *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif ((!isHtmlOutputMode()) || (!isResetModeEnabled())) {
-       // Do not execute when script is in CSS mode or no daily reset
+} elseif ((!isHtmlOutputMode()) || (!isDailyResetEnabled())) {
+       // Do not execute when script is in non-HTML mode or no daily reset
        return;
 } elseif (!isExtensionActive('yoomedia')) {
-       logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-yoomedia disabled');
+       if (isDebugModeEnabled()) logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-yoomedia disabled.');
        return;
 }
 
 // Debug line
-//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset started');
+//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset started.');
 
 // Simply reset the requests here
 updateConfiguration('yoomedia_requests_remain', getConfig('yoomedia_requests_total'));
 
 // Debug line
-//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset ended');
+//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset ended.');
 
 // [EOF]
 ?>