// Is the auto-send mechanism active or inactive?
if (getConfig('autosend_active') == 'Y') {
// Auto-send is active
$content['admin_autosend'] = '{--ADMIN_AUTOSEND_ACTIVE--}';
$content['member_autosend'] = '{--MEMBER_AUTOSEND_ACTIVE--}';
$type = 'NEW';
// Is the auto-send mechanism active or inactive?
if (getConfig('autosend_active') == 'Y') {
// Auto-send is active
$content['admin_autosend'] = '{--ADMIN_AUTOSEND_ACTIVE--}';
$content['member_autosend'] = '{--MEMBER_AUTOSEND_ACTIVE--}';
$type = 'NEW';
if (getConfig('order_max_full') == 'ORDER') $add = ', mail_orders=mail_orders+1';
subtractPoints('order', getMemberId(), $usedPoints);
if (getConfig('order_max_full') == 'ORDER') $add = ', mail_orders=mail_orders+1';
subtractPoints('order', getMemberId(), $usedPoints);
// Send an email to the user
$message_mem = loadEmailTemplate('order-member', $content, getMemberId());
// Send an email to the user
$message_mem = loadEmailTemplate('order-member', $content, getMemberId());
- sendAdminNotification(getMessage('ADMIN_NEW_QUEUE'), 'order-admin', $content, getMemberId());
+ sendAdminNotification('{--ADMIN_NEW_QUEUE--}', 'order-admin', $content, getMemberId());
createNewTask(
'{--ADMIN_NEW_QUEUE--}',
'<pre>'.loadEmailTemplate('order-admin', $content, getMemberId()).'</pre>',
createNewTask(
'{--ADMIN_NEW_QUEUE--}',
'<pre>'.loadEmailTemplate('order-admin', $content, getMemberId()).'</pre>',