X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fpool-update.php;h=30eb9f4e06c1c933d12d452854b4be94cdd1468f;hb=84b5a1d2c46f271f2a10ae8bba4b531e9bd9d5e6;hp=f54f84bf4d95053040c7be1e4920084ac6548d2d;hpb=39172de4ecec2f6ddc597a5ae439e7aef79c75ed;p=mailer.git diff --git a/inc/pool-update.php b/inc/pool-update.php index f54f84bf4d..30eb9f4e06 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 * @@ -33,30 +38,28 @@ // 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 -// Set some global variables -global $cnt, $msg; - -// Init counter and message -$cnt = 0; $msg = ""; +// Init counter +$GLOBALS['pool_cnt'] = 0; -// Load more cache includes -$INC_POOL = GET_DIR_AS_ARRAY(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'); +runFilterChain('load_includes'); -// Remove message (IMPORTANT!) -unset($msg); +// Remove counter again +unset($GLOBALS['pool_cnt']); // ?>