// 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
sendEmail($userid, '{--MEMBER_AUTOPURGE_SUBJECT--}', $message);
}
+// ----------------------------------------------------------------------------
+// Wrapper for configuration entries
+// ----------------------------------------------------------------------------
+
// Checks whether auto-purging is enabled
function isAutoPurgingActive () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getConfig('auto_purge_active') == 'Y');
// Wrapper for 'autopurge_inactive
function getAutopurgeInactive () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getConfig('autopurge_inactive') == 'Y');
// Checks whether purging of inactive accounts is enabled
function isAutopurgeInactiveEnabled () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getAutopurgeInactive() == 'Y');
return $GLOBALS[__FUNCTION__];
}
+// "Getter" for ap_inactive_time
+function getApInactiveTime () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('ap_inactive_time');
+ } // END - if
+
+ // Return cache
+ 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?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('ap_dm_timeout');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for ap_tasks_time
+function getApTasksTime () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('ap_tasks_time');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for ap_unconfirmed_time
+function getApUnconfirmedTime () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('ap_unconfirmed_time');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>