X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fpool-update.php;h=256e16109e0cca3f026053a3f75f6d9c89a0ce58;hb=4fe584c2e58ca2babe4141c1f4e8a595ec7a3ee9;hp=628b18a310a0e99005e08ef57234f39b004f424d;hpb=2d8391f9967d3c4bcc1712c0101cd7841ef9827a;p=mailer.git diff --git a/inc/pool-update.php b/inc/pool-update.php index 628b18a310..256e16109e 100644 --- a/inc/pool-update.php +++ b/inc/pool-update.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * 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 * @@ -38,31 +43,23 @@ if (!defined('__SECURITY')) { } // Don't run on daily reset -if (defined('__DAILY_RESET')) { +if (isResetModeEnabled()) { // Skip here return false; } // END - if -// Set some global variables -global $cnt, $msg; - -// Init counter and message -$cnt = 0; $msg = ""; - -// Load more cache includes -$INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/pool/", "pool-"); +// Init counter +$GLOBALS['pool_cnt'] = 0; -// Include all -foreach ($INC_POOL as $fqfn) { - // Include the file - require_once($fqfn); -} // END - foreach +// Init & set the include pool +INIT_INC_POOL(); +SET_INC_POOL(GET_DIR_AS_ARRAY("inc/pool/", "pool-")); -// Remove array -unset($INC_POOL); +// Run the filter +runFilterChain('load_includes'); -// Remove message (IMPORTANT!) -unset($msg); +// Remove counter again +unset($GLOBALS['pool_cnt']); // ?>