login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / autopurge.php
index 52ac70472785d03c154d95ed708e9c406884f5ec..aa393cf9b5718c65f6dcb9b85dedb04b0a67bae4 100644 (file)
@@ -38,7 +38,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
        require($INC);
 }
 
-if (($CONFIG['auto_purge_active'] == "Y") && ($CONFIG['auto_purge'] > 0))
+if (($CONFIG['auto_purge_active'] == 'Y') && ($CONFIG['auto_purge'] > 0))
 {
        // First calculate the timestamp
        if (function_exists('CREATE_TIME_SELECTIONS'))
@@ -162,7 +162,7 @@ WHERE s.timestamp_ordered <= %s ORDER BY s.userid",
 }
 
 // Shall I look for inactive accounts and autopurge inactive accounts?
-if ($CONFIG['ap_inactive'] == "Y")
+if ($CONFIG['ap_inactive'] == 'Y')
 {
        // Ok, let's have a look...
        $since = bigintval(time() - $CONFIG['ap_in_since']);
@@ -260,7 +260,7 @@ ORDER BY userid",
                $UIDs = str_replace(", ", "\n", substr($UIDs, 0, -2));
 
                // Send mail notification to admin
-               if ($CONFIG['ap_un_mail'] == "Y")
+               if ($CONFIG['ap_un_mail'] == 'Y')
                {
                        if (GET_EXT_VERSION("admins") >= "0.4.1")
                        {
@@ -279,7 +279,7 @@ ORDER BY userid",
 }
 
 // Shall I auto-purge unconfirmed accounts?
-if ($CONFIG['ap_unconfirmed'] == "Y")
+if ($CONFIG['ap_unconfirmed'] == 'Y')
 {
        // Init variables and find unconfirmed accounts which I shall auto-purge
        $time = bigintval(time() - $CONFIG['ap_un_time']);
@@ -308,7 +308,7 @@ if ($CONFIG['ap_unconfirmed'] == "Y")
                $UIDs = str_replace(", ", "\n", substr($UIDs, 0, -2));
 
                // Send mail notification to admin
-               if ($CONFIG['ap_un_mail'] == "Y")
+               if ($CONFIG['ap_un_mail'] == 'Y')
                {
                        if (GET_EXT_VERSION("admins") >= "0.4.1")
                        {
@@ -327,7 +327,7 @@ if ($CONFIG['ap_unconfirmed'] == "Y")
 }
 
 // Check version (must be > 0.0)
-if ((GET_EXT_VERSION("task") > "0.0") && ($CONFIG['ap_tasks'] == "Y"))
+if ((GET_EXT_VERSION("task") > "0.0") && ($CONFIG['ap_tasks'] == 'Y'))
 {
        // Purge deleted tasks (no notification to admin)
        $since = bigintval(time() - $CONFIG['ap_tasks_time']);
@@ -335,7 +335,7 @@ if ((GET_EXT_VERSION("task") > "0.0") && ($CONFIG['ap_tasks'] == "Y"))
         array($since), __FILE__, __LINE__);
        $DELETED = SQL_AFFECTEDROWS();
 
-       if (($DELETED > 0) && ($CONFIG['ap_tasks_mail'] == "Y"))
+       if (($DELETED > 0) && ($CONFIG['ap_tasks_mail'] == 'Y'))
        {
                // Send out email to admin
                if (GET_EXT_VERSION("admins") >= "0.4.1")
@@ -418,7 +418,7 @@ if ($CONFIG['ap_del_mails'])
        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
                if (GET_EXT_VERSION("admins") >= "0.4.1")