]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/autopurge_functions.php
Extension ext-network continued:
[mailer.git] / inc / libs / autopurge_functions.php
index a8ecdd1771ab09d833cefc5ebefe83404e0b959e..bf2b9d71cc5c00fbf661faf06f221dbce89dada9 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 // Add points in autopurge-mode
 function addPointsAutoPurge ($userid, $points) {
        // Is the userid valid?
-       if (!isValidUserId($userid)) {
+       if (!isValidId($userid)) {
                // Please report all these bugs
                reportBug(__FUNCTION__, __LINE__, 'Invalid call. userid=' . $userid . ',points=' . $points);
        } // END - if
@@ -109,6 +109,18 @@ function getApInactiveTime () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// "Getter" for auto_purge
+function getAutoPurge () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('auto_purge');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // "Getter" for ap_dm_timeout
 function getApDmTimeout () {
        // Is there cache?