X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Forder.php;h=fc162145d81528195293f1d517d600a3cacda5da;hb=eb05b523c3f89d39cc4a3307aba7c141e38ab68c;hp=d320cbddae7fea9a354d87acc752d1518011de1b;hpb=dbe56bb043ba16ca1ec1e9efa9effdc1f0612261;p=mailer.git diff --git a/inc/modules/order.php b/inc/modules/order.php index d320cbddae..fc162145d8 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] - ); + // Compile content + $content['payment'] = getPaymentTitlePrice($content['payment_id']); + $content['category'] = getCategory($content['cat_id']); // 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('order-member', $content, getMemberId()); + sendEmail(getMemberId(), getMessage('MEMBER_NEW_QUEUE'), $message_mem); // Notify admins about this - SEND_ADMIN_NOTIFICATION(ADMIN_NEW_QUEUE, "order-admin", $content, $GLOBALS['userid']); + sendAdminNotification(getMessage('ADMIN_NEW_QUEUE'), 'order-admin', $content, getMemberId()); + + // Create new task + createNewTask( + '{--ADMIN_NEW_QUEUE--}', + '
'.loadEmailTemplate('order-admin', $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 - $URL = URL."/modules.php?module=login"; - LOAD_URL($URL); + // Matching line not found or already 'placed' in send queue + redirectToUrl('modules.php?module=login'); } } else { // Redirect... - LOAD_URL($URL); + redirectToUrl($URL); } -// + +// [EOF] ?>