<?php
/************************************************************************
- * M-XChange v0.2.1 Start: 04/23/2005 *
- * ================ Last change: 05/19/2008 *
+ * Mailer v0.2.1-FINAL Start: 04/23/2005 *
+ * =================== Last change: 05/19/2008 *
* *
* -------------------------------------------------------------------- *
* File : what-unlock_sponsor.php *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Check if admin has submitted form
if (isFormSent()) {
// Does he have selected at least one sponsor?
- if (countSelection(postRequestElement('id')) > 0) {
+ if (countSelection(postRequestParameter('id')) > 0) {
// At least one entry selected
- foreach (postRequestElement('id') as $id => $selected) {
+ foreach (postRequestParameter('id') as $id => $selected) {
// Secure id number and init $content
$content = array(
'id' => bigintval($id),
// Transfer data to array
$data = array(
'admin_id' => $content['email'],
- 'order' => ($content['pay_count'] * $content['pay_rate'])." ".$content['pay_currency'],
+ 'order' => ($content['pay_count'] * $content['pay_rate']) . ' ' . $content['pay_currency'],
'stamp' => generateDateTime($content['pay_ordered'], 2),
'pname' => $content['pay_name'],
);
FROM `{?_MYSQL_PREFIX?}_sponsor_data`
WHERE `id`='%s' LIMIT 1",
array(bigintval($content['refid'])), __FILE__, __LINE__);
- $REFERRAL = SQL_FETCHARRAY($result);
+ $REFERAL = SQL_FETCHARRAY($result);
// Send warnings out?
- if ($REFERRAL['receive_warnings'] == 'Y') {
+ if ($REFERAL['receive_warnings'] == 'Y') {
// Translate some data
- $REFERRAL['points'] = translateComma($REFERRAL['points']);
- $REFERRAL['ref_points'] = translateComma(getConfig('sponsor_ref_points'));
- $REFERRAL['gender'] = translateGender($REFERRAL['gender']);
+ $REFERAL['points'] = translateComma($REFERAL['points']);
+ $REFERAL['ref_points'] = translateComma(getConfig('sponsor_ref_points'));
+ $REFERAL['gender'] = translateGender($REFERAL['gender']);
// Send notification to referal
- $REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERRAL);
- sendEmail($REFERRAL['email'], getMessage('SPONSOR_REF_NOTIFY_SUBJ'), $REF_MSG);
+ $REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERAL);
+ sendEmail($REFERAL['email'], getMessage('SPONSOR_REF_NOTIFY_SUBJ'), $REF_MSG);
}
// Free memory