} // END - if
// Abort if autopurge is not active or disabled by admin
-if ((!isExtensionActive('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
+if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
// Abort here
return false;
} // END - if
`status`='UNCONFIRMED' AND `joined` < (UNIX_TIMESTAMP() - {?ap_unconfirmed_time?})
ORDER BY
`userid` ASC", __FILE__, __LINE__);
- if (SQL_NUMROWS($result_uncon) > 0) {
+ if (!SQL_HASZERONUMS($result_uncon)) {
// Prepare variable...
$userids = '';
- $content['time'] = (getConfig('ap_unconfirmed_time') / 60 / 60);
+ $content['time'] = (getApUnconfirmedTime() / 60 / 60);
// Delete inactive accounts
while ($row = SQL_FETCHARRAY($result_uncon)) {
// Send mail notification to admin
if (getConfig('ap_un_notify') == 'Y') {
- sendAdminNotification(getMessage('AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT'), 'admin_autopurge_unconfirmed', $userids);
+ sendAdminNotification('{--ADMIN_AUTOPURGE_UNCONFIRMED_SUBJECT--}', 'admin_autopurge_unconfirmed', $userids);
} // END - if
} // END - if