}
// Search for mails from deleted members?
-if ($_CONFIG['ap_del_mails'])
-{
+if ($_CONFIG['ap_del_mails']) {
// Okay, let's check for them...
$since = bigintval(time() - $_CONFIG['ap_dm_timeout']);
$result_mails = SQL_QUERY_ESC("SELECT sender FROM "._MYSQL_PREFIX."_pool WHERE data_type='DELETED' AND timestamp <= %s ORDER BY sender",
$DELETED = 0;
// Do we have "purged" mails?
- if (SQL_NUMROWS($result_mails) > 0)
- {
+ if (SQL_NUMROWS($result_mails) > 0) {
// Okay, check for their sender's
- while(list($sender) = SQL_FETCHROW($result_mails))
- {
+ while(list($sender) = SQL_FETCHROW($result_mails)) {
// Check now...
$fount = SQL_NUMROWS(SQL_QUERY_ESC("SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array(bigintval($sender)), __FILE__, __LINE__));
- if ($found == 0)
- {
+ if ($found == 0) {
// Okay we found some mails!
$result_remove = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_pool WHERE sender=%s",
array(bigintval($sender)), __FILE__, __LINE__);
array($since), __FILE__, __LINE__);
// Do we have "purged" mails?
- if (SQL_NUMROWS($result_mails) > 0)
- {
+ if (SQL_NUMROWS($result_mails) > 0) {
// Okay, check for their sender's
- while(list($sender) = SQL_FETCHROW($result_mails))
- {
+ while(list($sender) = SQL_FETCHROW($result_mails)) {
// Check now...
$found = SQL_NUMROWS(SQL_QUERY_ESC("SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array(bigintval($sender)), __FILE__, __LINE__));
- if ($found == 0)
- {
+ if ($found == 0) {
// Okay we found some mails!
$result_remove = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_stats WHERE sender=%s", array(bigintval($sender)), __FILE__, __LINE__);
$DELETED += SQL_AFFECTEDROWS();
SQL_FREERESULT($result_mails);
// Do we have deleted mails and the admin want's to receive a notification
- if (($DELETED > 0) && ($_CONFIG['ap_dm_notify'] == "Y"))
- {
+ if (($DELETED > 0) && ($_CONFIG['ap_dm_notify'] == "Y")) {
// Send out email to admin
SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_DEL_MAILS_SUBJECT, "admin_autopurge_del_mails", $DELETED, "");
}
}
-if (EXT_IS_ACTIVE("rallye"))
-{
+if (EXT_IS_ACTIVE("rallye")) {
// Check expired rallyes (hard-coded 3 days limit for displaying expired rallyes!)
require_once(PATH."inc/libs/rallye_functions.php");
RALLYE_DELETE_EXPIRED_RALLYES();
}
-//
-if (EXT_IS_ACTIVE("bonus"))
-{
+
+if (EXT_IS_ACTIVE("bonus")) {
// Check for expired turbo bonus lines
require_once(PATH."inc/libs/bonus_functions.php");
BONUS_PURGE_EXPIRED_TURBO_BONUS();
}
+
//
?>