]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/active_functions.php
Continued with ext-wernis:
[mailer.git] / inc / libs / active_functions.php
index 05809f8044cb7c386f7e8c2d0cef4ee84f0fa937..568fc1bdbe02b9be8667e31fc3e55bccff766db1 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * 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 *
@@ -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]
 ?>