// 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...
// 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++)
// 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));