관리자 주문관련 sms 내용에 문자셋변환 코드 추가

This commit is contained in:
chicpro
2013-04-23 14:40:07 +09:00
parent 717007fc48
commit 4695736b43
2 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@ $recv = explode("\n", $receive_number);
$tran_callback = preg_replace("/[^0-9]/", "", $send_number);
$sms_id = $default['de_icode_id'];
$tran_msg = $sms_contents;
$tran_msg = iconv("utf-8", "euc-kr", stripslashes($sms_contents));
$tran_date = "";
if ($reserved_flag) // 예약전송
{
@ -30,7 +30,7 @@ for($i=0; $i<count($recv); $i++)
$tran_phone = trim(preg_replace("/[^0-9]/", "", $recv[$i]));
if (!$tran_phone) continue;
$result = $SMS->Add($tran_phone, $tran_callback, $sms_id, stripslashes($tran_msg), $tran_date);
$result = $SMS->Add($tran_phone, $tran_callback, $sms_id, $tran_msg, $tran_date);
}
$result = $SMS->Send();
if ($result)