// Prepare data for the filter
$filterData = array(
- 'subject' => $subject,
- 'userid' => $userid,
- 'points' => $points,
- 'ref_points' => $ref_points,
- 'column' => $pointsColumn,
- 'notify' => $sendNotify,
- 'refid' => $refid,
- 'locked' => $locked,
- 'mode' => 'add',
- 'add_mode' => $paymentMethod,
- 'added' => $added
+ 'subject' => $subject,
+ 'userid' => $userid,
+ 'points' => $points,
+ 'ref_points' => $ref_points,
+ 'column' => $pointsColumn,
+ 'notify' => $sendNotify,
+ 'refid' => $refid,
+ 'locked' => $locked,
+ 'points_mode' => 'add',
+ 'add_mode' => $paymentMethod,
+ 'added' => $added
);
// Filter it now
// Prepare filter data
$filterData = array(
- 'subject' => $subject,
- 'userid' => $userid,
- 'points' => $points,
- 'mode' => 'sub',
- 'added' => (!SQL_HASZEROAFFECTED())
+ 'subject' => $subject,
+ 'userid' => $userid,
+ 'points' => $points,
+ 'points_mode' => 'sub',
+ 'added' => (!SQL_HASZEROAFFECTED())
);
// Insert booking record
$row['click_rate'] = ($row['mails_confirmed'] / $row['emails_received'] * 100);
} // END - if
- // Activity is 'active' by default because if autopurge is not installed
+ // Activity is 'active' by default because if ext-autopurge is not installed
$row['activity'] = '{--MEMBER_ACTIVITY_ACTIVE--}';
// Is autopurge installed and the user inactive?
$pointsData = SQL_FETCHARRAY($result);
// Add all entries to our cache array
- foreach ($pointsData as $key=>$value) {
+ foreach ($pointsData as $key => $value) {
$GLOBALS['cache_array']['points_data'][$subject][$key] = $value;
} // END - foreach
} else {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',count()=' . count($GLOBALS['referral_refid'][$userid]));
// Now walk through the array, first levels
- foreach ($GLOBALS['referral_refid'][$userid] as $level=>$levelArray) {
+ foreach ($GLOBALS['referral_refid'][$userid] as $level => $levelArray) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',count()=' . count($levelArray));
// Next are the users
foreach ($levelArray as $refid) {
if (isset($GLOBALS['referral_refid'][$refid])) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',refid=' . makeNullToZero($refid) . ',count()=' . count($GLOBALS['referral_refid'][$refid]));
// Okay, then walk through here, too
- foreach ($GLOBALS['referral_refid'][$refid] as $refLevel=>$refArray) {
+ foreach ($GLOBALS['referral_refid'][$refid] as $refLevel => $refArray) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',refid=' . makeNullToZero($refid) . ',refLevel=' . $refLevel . ',count()=' . count($refArray));
// Also walk through this one
foreach ($refArray as $refRefid) {
$executeSql = false;
// Now walk through the array, first levels
- foreach ($GLOBALS['referral_refid'][$userid] as $level=>$levelArray) {
+ foreach ($GLOBALS['referral_refid'][$userid] as $level => $levelArray) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',count()=' . count($levelArray));
// Next are the users
foreach ($levelArray as $refid) {