X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Forder.php;h=3539445643ac837243012ccc5eba67522f441016;hp=e64f2607c4b926e0475bed19b8a3569cfcc39469;hb=20741b93fd58620af677a7f1039ffd16ea6ec689;hpb=49c0cfbada5ede43152c053139b32f92441f8e45 diff --git a/inc/modules/order.php b/inc/modules/order.php index e64f2607c4..3539445643 100644 --- a/inc/modules/order.php +++ b/inc/modules/order.php @@ -1,7 +1,7 @@ $_CONFIG['max_send'], - 'subject' => $DATA[0], - 'text' => $DATA[1], - 'payment' => GET_PAYMENT($DATA[3]), - 'category' => GET_CATEGORY($DATA[6]), - 'url' => $DATA[5] - ); + $add = ''; + if ((isExtensionInstalledAndNewer('order', '0.1.1')) && (getConfig('order_max_full') == 'ORDER')) { + $add = ', `mail_orders`=`mail_orders`+1'; + } // END - if // Send an email to the user - $msg_mem = LOAD_EMAIL_TEMPLATE("order-member", $content, $GLOBALS['userid']); - SEND_EMAIL($email, MEMBER_NEW_QUEUE, $msg_mem); + $message_mem = loadEmailTemplate('member_order_normal', $content, getMemberId()); + sendEmail(getMemberId(), '{--MEMBER_NEW_QUEUE--}', $message_mem); // Notify admins about this - SEND_ADMIN_NOTIFICATION(ADMIN_NEW_QUEUE, "order-admin", $content, $GLOBALS['userid']); + sendAdminNotification('{--ADMIN_NEW_QUEUE--}', 'admin_order_normal', $content, getMemberId()); + + // Create new task (we ignore the task id here) + createNewTask( + '{--ADMIN_NEW_QUEUE--}', + '
' . loadEmailTemplate('admin_order_normal', $content, getMemberId()) . '
', + 'MEMBER_ORDER', + getMemberId(), + 0, + false + ); // Output back bottom - LOAD_TEMPLATE("member_order-back", false); + loadTemplate('member_order-back'); } else { - // Matching line not found or already "placed" in send queue - LOAD_URL(URL."/modules.php?module=login"); + // Matching line not found or already 'placed' in send queue + redirectToUrl('modules.php?module=login'); } } else { // Redirect... - LOAD_URL($URL); + redirectToUrl($url); } -// + +// [EOF] ?>