X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fpurge%2Fpurge-unconfirmed.php;h=b23ee75989fb85210a0596ce770079c106403fa1;hb=6b1e55213d76a67e9aa3d9f1e4dcb55e0bbf12ee;hp=741db75b61517924cef73cf3a19c961832072188;hpb=7052cc3bd3ca07281078acbbce6ce595d753def1;p=mailer.git diff --git a/inc/purge/purge-unconfirmed.php b/inc/purge/purge-unconfirmed.php index 741db75b61..b23ee75989 100644 --- a/inc/purge/purge-unconfirmed.php +++ b/inc/purge/purge-unconfirmed.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -49,7 +49,7 @@ if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) { // Shall I auto-purge unconfirmed accounts? if (getConfig('autopurge_unconfirmed') == 'Y') { // Init variables and find unconfirmed accounts which I shall auto-purge; - $result_uncon = SQL_QUERY("SELECT + $result_uncon = sqlQuery("SELECT `userid`, `email`, `joined` @@ -60,13 +60,13 @@ WHERE (UNIX_TIMESTAMP() - `joined`) >= {?ap_unconfirmed_time?} ORDER BY `userid` ASC", __FILE__, __LINE__); - if (!SQL_HASZERONUMS($result_uncon)) { + if (!ifSqlHasZeroNums($result_uncon)) { // Prepare variable... $userids = ''; $content['time'] = (getApUnconfirmedTime() / 60 / 60); // Delete inactive accounts - while ($row = SQL_FETCHARRAY($result_uncon)) { + while ($row = sqlFetchArray($result_uncon)) { // Merge both arrays $content = merge_array($content, $row); @@ -85,12 +85,12 @@ ORDER BY // Send mail notification to admin if (getConfig('ap_un_notify') == 'Y') { - sendAdminNotification('{--ADMIN_AUTOPURGE_UNCONFIRMED_SUBJECT--}', 'admin_autopurge_unconfirmed', $userids); + sendAdminNotification('{--ADMIN_AUTOPURGE_UNCONFIRMED_SUBJECT--}', 'admin_purge_unconfirmed', $userids); } // END - if } // END - if // Free memory - SQL_FREERESULT($result_uncon); + sqlFreeResult($result_uncon); } // END - if // [EOF]