} // END - if
// Abort if autopurge is not active or disabled by admin
-if ((!EXT_IS_ACTIVE("autopurge")) || ($_CONFIG['auto_purge_active'] == "N")) {
+if ((!EXT_IS_ACTIVE("autopurge")) || (getConfig('auto_purge_active') == "N")) {
// Abort here
return false;
} // END - if
// Shall I auto-purge unconfirmed accounts?
-if ($_CONFIG['autopurge_unconfirmed'] == "Y") {
+if (getConfig('autopurge_unconfirmed') == "Y") {
// Init variables and find unconfirmed accounts which I shall auto-purge
- $time = bigintval($_CONFIG['ap_un_time']);
+ $time = bigintval(getConfig('ap_un_time'));
$result_uncon = SQL_QUERY_ESC("SELECT userid, email, joined
FROM "._MYSQL_PREFIX."_user_data
WHERE status='UNCONFIRMED' AND joined < (UNIX_TIMESTAMP() - %s)
if (SQL_NUMROWS($result_uncon) > 0) {
// Prepare variable...
$UIDs = "";
- define('__UNCONFIRMED_TIME' , ($_CONFIG['ap_un_time'] / 60 / 60));
+ define('__UNCONFIRMED_TIME' , (getConfig('ap_un_time') / 60 / 60));
// Delete inactive accounts
while (list($uid, $email, $joined) = SQL_FETCHROW($result_uncon)) {
$UIDs = str_replace(", ", "\n", substr($UIDs, 0, -2));
// Send mail notification to admin
- if ($_CONFIG['ap_un_mail'] == "Y") {
+ if (getConfig('ap_un_notify') == "Y") {
SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT, "admin_autopurge_unconfirmed", $UIDs, "");
} // END - if
} // END - if