0) { // Prepare variable... $userids = ''; $content['time'] = (getConfig('ap_unconfirmed_time') / 60 / 60); // Delete inactive accounts while ($content = merge_array($content, SQL_FETCHARRAY($result_uncon))) { // Remember userids for the admin $userids .= $content['userid'] . ', '; // Get date/time from timestamp $content['joined'] = generateDateTime($content['joined'], 0); // Finnaly delete this inactive account deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_unconfirmed', $content, '')); } // END - while // Remove last comma $userids = str_replace(', ', "\n", substr($userids, 0, -2)); // Send mail notification to admin if (getConfig('ap_un_notify') == 'Y') { sendAdminNotification(getMessage('AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT'), 'admin_autopurge_unconfirmed', $userids, ''); } // END - if } // END - if // Free memory SQL_FREERESULT($result_uncon); } // END - if // [EOF] ?>