]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/active_functions.php
Updated copyright notice as there are changes in this year
[mailer.git] / inc / libs / active_functions.php
index a868326a394bd76230eee642792cac66853ee099..568fc1bdbe02b9be8667e31fc3e55bccff766db1 100644 (file)
@@ -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]
 ?>