0) { // Prepare variable... $UIDs = ""; define('__UNCONFIRMED_TIME' , (getConfig('ap_un_time') / 60 / 60)); // Delete inactive accounts while (list($uid, $email, $joined) = SQL_FETCHROW($result_uncon)) { // Remember userids for the admin $UIDs .= $uid.", "; // Get date/time from timestamp $joined = MAKE_DATETIME($joined, "0"); // Finnaly delete this inactive account DELETE_USER_ACCOUNT($uid, LOAD_EMAIL_TEMPLATE("member_autopurge_unconfirmed", $joined, "")); } // END - while // Remove last comma $UIDs = str_replace(", ", "\n", substr($UIDs, 0, -2)); // Send mail notification to admin if (getConfig('ap_un_notify') == "Y") { SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT, "admin_autopurge_unconfirmed", $UIDs, ""); } // END - if } // END - if // Free memory SQL_FREERESULT($result_uncon); } // ?>