= {?ap_unconfirmed_time?} ORDER BY `userid` ASC", __FILE__, __LINE__); if (!ifSqlHasZeroNumRows($result_uncon)) { // Prepare variable... $userids = ''; $content['time'] = (getApUnconfirmedTime() / 60 / 60); // Delete inactive accounts while ($row = sqlFetchArray($result_uncon)) { // Merge both arrays $content = merge_array($content, $row); // 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(', ', PHP_EOL, substr($userids, 0, -2)); // Send mail notification to admin if (getConfig('ap_un_notify') == 'Y') { sendAdminNotification('{--ADMIN_AUTOPURGE_UNCONFIRMED_SUBJECT--}', 'admin_purge_unconfirmed', $userids); } // END - if } // END - if // Free memory sqlFreeResult($result_uncon); } // END - if // [EOF] ?>