X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_autopurge.php;h=fffc66ef86f0883aba2f94f88e375a8ae7cb13a9;hb=d016e24dd4686f613a17733b96bc28fac936a4ac;hp=855f4236c04310a69467c49af068261c84b15269;hpb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c;p=mailer.git diff --git a/inc/modules/admin/what-list_autopurge.php b/inc/modules/admin/what-list_autopurge.php index 855f4236c0..fffc66ef86 100644 --- a/inc/modules/admin/what-list_autopurge.php +++ b/inc/modules/admin/what-list_autopurge.php @@ -54,8 +54,8 @@ if (GET_EXT_VERSION("holiday") >= "0.1.3") $EXCLUDE_LIST .= " AND d.holiday_acti // Check for all accounts $result = SQL_QUERY_ESC("SELECT DISTINCT d.userid, d.gender, d.surname, d.family, d.email, d.joined, d.last_online, d.ap_notified -FROM `"._MYSQL_PREFIX."_user_data` AS d -WHERE d.status='CONFIRMED' AND d.joined < (UNIX_TIMESTAMP() - %s) AND d.last_online < (UNIX_TIMESTAMP() - %s) AND d.ap_notified < (UNIX_TIMESTAMP() - %s) +FROM `{!_MYSQL_PREFIX!}_user_data` AS d +WHERE d.`status`='CONFIRMED' AND d.joined < (UNIX_TIMESTAMP() - %s) AND d.last_online < (UNIX_TIMESTAMP() - %s) AND d.ap_notified < (UNIX_TIMESTAMP() - %s) ".$EXCLUDE_LIST." ORDER BY d.userid", array(getConfig('ap_inactive_since'), getConfig('ap_inactive_since'), getConfig('ap_inactive_since')), __FILE__, __LINE__); @@ -63,7 +63,7 @@ if (SQL_NUMROWS($result) > 0) { // Ok, we have found some inactive accounts $SW = 2; $OUT = ""; - while(list($uid, $gender, $sname, $fname, $email, $joined, $last, $notified) = SQL_FETCHROW($result)) + while (list($uid, $gender, $sname, $fname, $email, $joined, $last, $notified) = SQL_FETCHROW($result)) { // Prepare data for the row template $content = array( @@ -72,7 +72,7 @@ if (SQL_NUMROWS($result) > 0) 'gender' => TRANSLATE_GENDER($gender), 'sname' => $sname, 'fname' => $fname, - 'email' => "".$email."", + 'email' => "".$email."", 'joined' => MAKE_DATETIME($joined, "2"), 'last' => MAKE_DATETIME($last, "2"), 'notified' => MAKE_DATETIME($notified, "2"), @@ -93,7 +93,7 @@ if (SQL_NUMROWS($result) > 0) else { // All members are active or you don't have any registered - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_AUTOPURGE_ALL_ACTIVE); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_AUTOPURGE_ALL_ACTIVE')); } // ?>