$content['points'] = translateComma($content['points_amount']);
// So let's send the email away
- $msg = LOAD_EMAIL_TEMPLATE("sponsor_unlocked", $content);
- sendEmail($content['email'], getMessage('SPONSOR_UNLOCKED_SUBJ'), $msg);
+ $message = LOAD_EMAIL_TEMPLATE('sponsor_unlocked', $content);
+ sendEmail($content['email'], getMessage('SPONSOR_UNLOCKED_SUBJ'), $message);
}
} else {
// Nothing selected
}
// Add seperator
- OUTPUT_HTML("<br />");
+ OUTPUT_HTML('<br />');
}
// Begin listing of all pending sponsor accounts
$result = SQL_QUERY("SELECT
- id, gender, surname, family, email, remote_addr, sponsor_created
+ `id`, `gender`, `surname`, `family`, `email`, `remote_addr`, `sponsor_created`
FROM
`{!_MYSQL_PREFIX!}_sponsor_data`
WHERE
'gender' => translateGender($content['gender']),
'surname' => $content['surname'],
'family' => $content['family'],
- 'email' => "mailto:".$content['email'],
+ 'email' => generateEmailLink($content['email'], 'sponsor_data'),
'remote' => $content['remote_addr'],
'created' => generateDateTime($content['sponsor_created'], '2'),
);
// Load row template and switch colors
- $OUT .= LOAD_TEMPLATE("admin_unlock_sponsor_row", true, $content);
+ $OUT .= LOAD_TEMPLATE('admin_unlock_sponsor_row', true, $content);
$SW = 3 - $SW;
}
define('__SPONSOR_ROWS', $OUT);
// Load template
- LOAD_TEMPLATE("admin_unlock_sponsor");
+ LOAD_TEMPLATE('admin_unlock_sponsor');
} else {
// No pending accounts found
LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_PENDING'));