wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / mails / birthday_mails.php
index ec8317a92629a5578b653c9d23fbdce75efd9d4e..597d7288448f1a001c249379e9bb6a0464a8173e 100644 (file)
@@ -53,10 +53,10 @@ $YEAR  = date('Y', time());
 
 // Shall I include only active members?
 $ADD = "%s"; $VALUE = "";
-if (($CONFIG['birthday_active']) && (EXT_IS_ACTIVE("autopurge")) && ($CONFIG['ap_in_since'] > 0) && ($CONFIG['ap_inactive'] == 'Y'))
+if (($_CONFIG['birthday_active']) && (EXT_IS_ACTIVE("autopurge")) && ($_CONFIG['ap_in_since'] > 0) && ($_CONFIG['ap_inactive'] == 'Y'))
 {
        $ADD = " AND last_online >= %d";
-       $VALUE = bigintval(time() - $CONFIG['ap_in_since']);
+       $VALUE = bigintval(time() - $_CONFIG['ap_in_since']);
 }
 
 // Only confirmed members shall receive birthday mails...
@@ -78,12 +78,12 @@ if (SQL_NUMROWS($result_birthday) > 0)
                // Simply subtract both values and you got the age... :)
                $AGE = $NOW - $BD;
 
-               if ($CONFIG['birthday_points'] > 0)
+               if ($_CONFIG['birthday_points'] > 0)
                {
                        // Prepare array for loading template
                        $content = array(
                                'age'    => $AGE,
-                               'points' => $CONFIG['birthday_points'],
+                               'points' => $_CONFIG['birthday_points'],
                                'check'  => "",
                        );
                        for ($idx = 0; $idx < 4; $idx++)
@@ -93,7 +93,7 @@ if (SQL_NUMROWS($result_birthday) > 0)
 
                        // Insert row into database
                        $result_insert = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_user_birthday (userid, points, chk_value) VALUES ('%s', '%s', '%s' )",
-                        array(bigintval($uid), $CONFIG['birthday_points'], $content['check']), __FILE__, __LINE__);
+                        array(bigintval($uid), $_CONFIG['birthday_points'], $content['check']), __FILE__, __LINE__);
 
                        // Load email template with confirmation link
                        $msg = LOAD_EMAIL_TEMPLATE("member_birthday_confirm", $content, bigintval($uid));