From 2b23e4c90cb57c2082a7a7449467d966a1477ef3 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 28 Mar 2014 15:15:22 +0900 Subject: [PATCH] =?UTF-8?q?sms=20=EB=AC=B8=EC=9E=90=EC=97=B4=20=EC=B9=98?= =?UTF-8?q?=ED=99=98=ED=95=A8=EC=88=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/ordersms.inc.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/adm/shop_admin/ordersms.inc.php b/adm/shop_admin/ordersms.inc.php index eb4168a73..fcd20973f 100644 --- a/adm/shop_admin/ordersms.inc.php +++ b/adm/shop_admin/ordersms.inc.php @@ -11,10 +11,10 @@ if ($config['cf_sms_use']) { if ($od_bank_account && $od_receipt_price && $od_deposit_name) { $sms_contents = $default['de_sms_cont4']; - $sms_contents = preg_replace("/{이름}/", $od_name, $sms_contents); - $sms_contents = preg_replace("/{입금액}/", number_format($od_receipt_price), $sms_contents); - $sms_contents = preg_replace("/{주문번호}/", $od_id, $sms_contents); - $sms_contents = preg_replace("/{회사명}/", $default['de_admin_company_name'], $sms_contents); + $sms_contents = str_replace("{이름}", $od_name, $sms_contents); + $sms_contents = str_replace("{입금액}", number_format($od_receipt_price), $sms_contents); + $sms_contents = str_replace("{주문번호}", $od_id, $sms_contents); + $sms_contents = str_replace("{회사명}", $default['de_admin_company_name'], $sms_contents); $SMS = new SMS; $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']); @@ -28,11 +28,11 @@ if ($config['cf_sms_use']) { if ($od_delivery_company && $od_invoice) { $sms_contents = $default['de_sms_cont5']; - $sms_contents = preg_replace("/{이름}/", $od_name, $sms_contents); - $sms_contents = preg_replace("/{택배회사}/", $od_delivery_company, $sms_contents); - $sms_contents = preg_replace("/{운송장번호}/", $od_invoice, $sms_contents); - $sms_contents = preg_replace("/{주문번호}/", $od_id, $sms_contents); - $sms_contents = preg_replace("/{회사명}/", $default['de_admin_company_name'], $sms_contents); + $sms_contents = str_replace("{이름}", $od_name, $sms_contents); + $sms_contents = str_replace("{택배회사}", $od_delivery_company, $sms_contents); + $sms_contents = str_replace("{운송장번호}", $od_invoice, $sms_contents); + $sms_contents = str_replace("{주문번호}", $od_id, $sms_contents); + $sms_contents = str_replace("{회사명}", $default['de_admin_company_name'], $sms_contents); $SMS = new SMS; $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);