]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/active_functions.php
Better only check on daily reset
[mailer.git] / inc / libs / active_functions.php
index 810fec66953e44bb67fae3764967a3ee924500b0..5103339448060613dbfbff241ebddd53eb6b9fc3 100644 (file)
@@ -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]
 ?>