More misc fixes and rewrites (sorry, lame description)
[mailer.git] / inc / pool-update.php
index 93e986148ad7a6b01220de3b9790791d1705205e..30eb9f4e06c1c933d12d452854b4be94cdd1468f 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Sendet freigegebene Mails aus den Pool           *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
 // Don't run on daily reset
-if (defined('__DAILY_RESET')) {
+if (isResetModeEnabled()) {
        // Skip here
        return false;
 } // END - if
@@ -46,11 +51,12 @@ if (defined('__DAILY_RESET')) {
 // Init counter
 $GLOBALS['pool_cnt'] = 0;
 
-// Load more cache includes
-$INC_POOL = GET_DIR_AS_ARRAY(constant('PATH')."inc/pool/", "pool-");
+// Init & set the include pool
+INIT_INC_POOL();
+SET_INC_POOL(getArrayFromDirectory('inc/pool/', 'pool-'));
 
 // Run the filter
-RUN_FILTER('load_includes', $INC_POOL);
+runFilterChain('load_includes');
 
 // Remove counter again
 unset($GLOBALS['pool_cnt']);