]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/beg_filter.php
Introduced interruptFilterChain() and continueFilterChain(). Please DO ALWAYS use...
[mailer.git] / inc / filter / beg_filter.php
index c96ba0b254e82f252d2b27d346b439a6d1d79a93..ed1c378eb2f9205da0cea90bf80fd1627ef1afd8 100644 (file)
@@ -16,7 +16,7 @@
  * $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 *
@@ -52,7 +52,7 @@ function FILTER_BEG_RALLYE_USER_REGISTRATION_ADD_SQL_COLUMNS ($filterData) {
 
        // Return filter data
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
-       //* NOISY-DEBUG: */ print __FUNCTION__.':filterData=<pre>'.print_r($filterData,true).'</pre>';
+       //* NOISY-DEBUG: */ print __FUNCTION__.':filterData=<pre>'.print_r($filterData,TRUE).'</pre>';
        return $filterData;
 }
 
@@ -67,7 +67,7 @@ function FILTER_BEG_PURGE_IPS_NOTIFY_USER ($filterData) {
        } // END - if
 
        // Run the SQL query
-       SQL_QUERY_ESC('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE (UNIX_TIMESTAMP() - `timeout`) >= %s',
+       sqlQueryEscaped('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE (UNIX_TIMESTAMP() - `timeout`) >= %s',
                array($OLD + 60*60), __FUNCTION__, __LINE__);
 
        // Check for beg rallye is active and send mails out
@@ -81,5 +81,17 @@ function FILTER_BEG_PURGE_IPS_NOTIFY_USER ($filterData) {
        return $filterData;
 }
 
+// Filter to add exclusion SQL for configured userid
+function FILTER_EXCLUDE_BEG_USERID ($filterData = array()) {
+       // Is it valid?
+       if (isValidId(getBegUserid())) {
+               // Exclude it
+               array_push($filterData, '{?beg_userid?}');
+       } // END - if
+
+       // Return it
+       return $filterData;
+}
+
 // [EOF]
 ?>