]> git.mxchange.org Git - mailer.git/blobdiff - inc/daily/daily_user_subids.php
Opps, not all elements for sprintf() has been set.
[mailer.git] / inc / daily / daily_user_subids.php
index 449350faa90ca31a66d999b7c24d6a8853dd7333..18125af10d59abbf07d5b5de1695569b8ce13393 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 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -38,8 +33,8 @@
 // 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 (!isExtensionInstalledAndNewer('user', '0.5.8')) {
        if (isDebugModeEnabled()) logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-user disabled or out-dated.');
@@ -52,16 +47,16 @@ if (!defined('__SECURITY')) {
 // Is auto-purging activated and configured correctly?
 if ((isApSubidsEnabled()) && (getApSubidsSince() > 0)) {
        // Start purging
-       SQL_QUERY('DELETE LOW_PRIORITY FROM
+       sqlQuery('DELETE LOW_PRIORITY FROM
        `{?_MYSQL_PREFIX?}_subid_log`
 WHERE
        (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(`entry_added`)) >= {?ap_subids_since?}',
                __FILE__, __LINE__);
 
        // Are some entries deleted?
-       if (SQL_AFFECTEDROWS() > 0) {
+       if (sqlAffectedRows() > 0) {
                // Okay, then send an email to the admin
-               sendAdminNotification('{--ADMIN_PURGE_USER_SUBID_LOG_SUBJECT--}', 'admin_purge_user_subid_log', SQL_AFFECTEDROWS());
+               sendAdminNotification('{--ADMIN_PURGE_USER_SUBID_LOG_SUBJECT--}', 'admin_purge_user_subid_log', sqlAffectedRows());
        } // END - if
 } // END - if