X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fautopurge%2Fpurge-unconfirmed.php;h=0ad79fdabf14e55fc0e2e7ca9a9cc9fa50404830;hp=ce6b06927e992fba563a4bf9ee94f30582b01627;hb=7b0f17cd637e388049d2167811e4332cec1e979b;hpb=508228c85fba8448d00865b1639cb8cd7a69e457 diff --git a/inc/autopurge/purge-unconfirmed.php b/inc/autopurge/purge-unconfirmed.php index ce6b06927e..0ad79fdabf 100644 --- a/inc/autopurge/purge-unconfirmed.php +++ b/inc/autopurge/purge-unconfirmed.php @@ -10,7 +10,7 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Auto-Loeschung von veralteten Mail-Links * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * + * $Revision:: $ * * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * @@ -38,18 +38,18 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE("autopurge")) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if // Shall I auto-purge unconfirmed accounts? -if (getConfig('autopurge_unconfirmed') == "Y") { +if (getConfig('autopurge_unconfirmed') == 'Y') { // Init variables and find unconfirmed accounts which I shall auto-purge $time = getConfig(('ap_un_time')); $result_uncon = SQL_QUERY_ESC("SELECT userid, email, joined @@ -59,7 +59,7 @@ ORDER BY userid ASC", array($time), __FILE__, __LINE__); if (SQL_NUMROWS($result_uncon) > 0) { // Prepare variable... - $UIDs = ""; + $UIDs = ''; define('__UNCONFIRMED_TIME' , (getConfig('ap_un_time') / 60 / 60)); // Delete inactive accounts @@ -68,18 +68,18 @@ ORDER BY userid ASC", $UIDs .= $content['userid'].", "; // Get date/time from timestamp - $content['joined'] = MAKE_DATETIME($content['joined'], "0"); + $content['joined'] = generateDateTime($content['joined'], '0'); // Finnaly delete this inactive account - DELETE_USER_ACCOUNT($content['userid'], LOAD_EMAIL_TEMPLATE("member_autopurge_unconfirmed", $content['joined'], "")); + deleteUserAccount($content['userid'], LOAD_EMAIL_TEMPLATE("member_autopurge_unconfirmed", $content['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(getMessage('AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT'), "admin_autopurge_unconfirmed", $UIDs, ""); + if (getConfig('ap_un_notify') == 'Y') { + sendAdminNotification(getMessage('AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT'), "admin_autopurge_unconfirmed", $UIDs, ''); } // END - if } // END - if