// Is the form sent?
if ((IS_FORM_SENT()) && (REQUEST_POST('points') > 0)) {
- $result_main = SQL_QUERY("SELECT userid, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `status`='CONFIRMED' ORDER BY userid",
+ $result_main = SQL_QUERY("SELECT userid, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
__FILE__, __LINE__);
while ($content = SQL_FETCHARRAY($result_main)) {
// Ok, add points to used points and send an email to him...
// Load message and send it away
$msg = LOAD_EMAIL_TEMPLATE("sub-points", $content, bigintval($content['userid']));
- SEND_EMAIL($content['email'], getMessage('ADMIN_SUB_SUBJ'), $msg);
+ sendEmail($content['email'], getMessage('ADMIN_SUB_SUBJ'), $msg);
} // END - while
// Free memory
// Load email and send it away
$msg = LOAD_EMAIL_TEMPLATE("sub-points", $content, bigintval(REQUEST_GET('uid')));
- SEND_EMAIL($content['email'], getMessage('ADMIN_SUB_SUBJ'), $msg);
+ sendEmail($content['email'], getMessage('ADMIN_SUB_SUBJ'), $msg);
// Output message
LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_POINTS_SUBTRACTED'));
} else {
// @TODO Rewrite these constants
- define('__USER_VALUE', "<a href=\"".CREATE_EMAIL_LINK($content['email'], "user_data")."\">".$content['surname']." ".$content['family']."</a>");
+ define('__USER_VALUE', "<a href=\"".generateMemberEmailLink($content['email'], "user_data")."\">".$content['surname']." ".$content['family']."</a>");
define('__UID', bigintval(REQUEST_GET('uid')));
// Load form
SQL_FREERESULT($result);
} else {
// Output selection form with all confirmed user accounts listed
- ADD_MEMBER_SELECTION_BOX("0", true);
+ ADD_MEMBER_SELECTION_BOX('0', true);
}
//