// Init exclusion list
// @TODO Rewrite these if() blocks to a filter
$excludeUserids = '';
- if (isValidUserId(getDefRefid())) $excludeUserids .= ' AND `userid` != {?def_refid?}';
+ if (isValidId(getDefRefid())) $excludeUserids .= ' AND `userid` != {?def_refid?}';
// Check for more extensions
if (isExtensionActive('beg')) $excludeUserids .= ' AND `userid` != {?beg_userid?}';
} // END - while
// Remove last comma
- $content['userids'] = implode(chr(10), $userids);
+ $content['userids'] = implode(PHP_EOL, $userids);
// Send mail notification to admin
sendAdminNotification('{--ADMIN_AUTOPURGE_INACTIVE_SUBJECT--}', 'admin_autopurge_inactive', $content);
// Free memory
SQL_FREERESULT($result_inactive);
- // Now let's have a look for inactive accounts we want to delete we newly use the same exclude list
- // here for e.g. excluding holiday users
+ /*
+ * Now let's have a look for inactive accounts for deletion. Use the newly
+ * added exclude list here for e.g. excluding holiday users, test users et
+ * cetera.
+ */
$result_inactive = SQL_QUERY("SELECT
`userid`,
`email`,
} // END - while
// Display all userids
- $useridsContent = implode(chr(10), $userids);
+ $useridsContent = implode(PHP_EOL, $userids);
// Send mail notification to admin
if (getConfig('ap_in_notify') == 'Y') {