+ // Prepare email content
+ $content = array(
+ 'percents' => TRANSLATE_COMMA($percents),
+ 'refid' => $dummy['refid'],
+ 'level' => $dummy['level']
+ );
+
+ // Load member email template
+ $mail = LOAD_EMAIL_TEMPLATE("member_refback", $content, $GLOBALS['userid']);
+
+ // Send email to user
+ SEND_EMAIL($dummy['refid'], MEMBER_REFBACK_SUBJECT, $mail);
+
+ // Send admin notification
+ SEND_ADMIN_NOTIFICATION(ADMIN_REFBACK_SUBJECT, "admin_refback", $content, $GLOBALS['userid']);
+