Began to rewrite whole script for newly added filters, new extension stub 'network...
[mailer.git] / inc / autopurge.php
index 15e1832d90e0b7b20f9992ecf6cf887da4ddd377..c3a206f0fb2214e6fa7e05150a2ad64819f47c6c 100644 (file)
@@ -40,20 +40,11 @@ if (!defined('__SECURITY')) {
 // Load all includes
 $INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/autopurge/", "purge-");
 
-// Include them all
-foreach ($INC_POOL as $fqfn) {
-       // Load them only once
-       require_once($fqfn);
-} // END - foreach
+// Run the filter
+RUN_FILTER('load_includes');
 
-// Remove array
-unset($INC_POOL);
-
-if (EXT_IS_ACTIVE("rallye")) {
-       // Check expired rallyes (hard-coded 3 days limit for displaying expired rallyes!)
-       require_once(PATH."inc/libs/rallye_functions.php");
-       RALLYE_DELETE_EXPIRED_RALLYES();
-} // END - if
+// Run filters for extra autopurge
+RUN_FILTER('extra_autopurge');
 
 //
 ?>