X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Factive_functions.php;h=568fc1bdbe02b9be8667e31fc3e55bccff766db1;hb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;hp=a868326a394bd76230eee642792cac66853ee099;hpb=24dfd21baed6a9a112992bdabf7da96576012bc4;p=mailer.git diff --git a/inc/libs/active_functions.php b/inc/libs/active_functions.php index a868326a39..568fc1bdbe 100644 --- a/inc/libs/active_functions.php +++ b/inc/libs/active_functions.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * * it under the terms of the GNU General Public License as published by * @@ -40,5 +40,17 @@ if (!defined('__SECURITY')) { die(); } // END - if +// Wrapper function for 'active_limit' +function getActiveLimit () { + // Is there cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Get config entry + $GLOBALS[__FUNCTION__] = getConfig('active_limit'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + // [EOF] ?>