Пример #1
0
                // SMS 연결
                $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
                $SMS->Add($recv_number, $send_number, $config['cf_icode_id'], iconv("utf-8", "euc-kr", stripslashes($sms_content)), "");
                $SMS->Send();
            }
        }
        // 문의글 등록시 관리자에게 전송
        if (($w == '' || $w == 'r') && trim($qaconfig['qa_admin_hp'])) {
            $sms_content = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . '에 문의글이 등록되었습니다.';
            $send_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_send_number']);
            $recv_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_admin_hp']);
            if ($recv_number) {
                $SMS = new SMS();
                // SMS 연결
                $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
                $SMS->Add($recv_number, $send_number, $config['cf_icode_id'], iconv("utf-8", "euc-kr", stripslashes($sms_content)), "");
                $SMS->Send();
            }
        }
    }
}
// 답변 이메일전송
if ($w == 'a' && $write['qa_email_recv'] && trim($write['qa_email'])) {
    include_once G5_LIB_PATH . '/mailer.lib.php';
    $subject = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . ' 답변 알림 메일';
    $content = nl2br(conv_unescape_nl($qa_content));
    mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $write['qa_email'], $subject, $content, 1);
}
// 문의글등록 이메일전송
if (($w == '' || $w == 'r') && trim($qaconfig['qa_admin_email'])) {
    include_once G5_LIB_PATH . '/mailer.lib.php';
Пример #2
0
 $delivery['invoice_time'] = G5_TIME_YMDHIS;
 $delivery['delivery_company'] = $od_delivery_company;
 // 주문정보 업데이트
 order_update_delivery($od_id, $od['mb_id'], '배송', $delivery);
 change_status($od_id, '준비', '배송');
 $succ_count++;
 // SMS
 if ($config['cf_sms_use'] == 'icode' && $_POST['send_sms'] && $default['de_sms_use5']) {
     $sms_contents = conv_sms_contents($od_id, $default['de_sms_cont5']);
     if ($sms_contents) {
         $receive_number = preg_replace("/[^0-9]/", "", $od['od_hp']);
         // 수신자번호
         $send_number = preg_replace("/[^0-9]/", "", $default['de_admin_company_tel']);
         // 발신자번호
         if ($receive_number && $send_number) {
             $SMS->Add($receive_number, $send_number, $config['cf_icode_id'], $sms_contents, "");
             $sms_count++;
         }
     }
 }
 // 메일
 if ($config['cf_email_use'] && $_POST['od_send_mail']) {
     include './ordermail.inc.php';
 }
 // 에스크로 배송
 if ($_POST['send_escrow'] && $od['od_tno'] && $od['od_escrow']) {
     $escrow_tno = $od['od_tno'];
     $escrow_numb = $od_invoice;
     $escrow_corp = $od_delivery_company;
     include G5_SHOP_PATH . '/' . $od['od_pg'] . '/escrow.register.php';
 }
Пример #3
0
                        $strSubject = '';
                        $strURL = '';
                        $strData = iconv_euckr($sms_content);
                        $strDate = '';
                        $nCount = count($strDest);
                        $res = $SMS->Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate, $nCount);
                        $SMS->Send();
                        $SMS->Init();
                        // 보관하고 있던 결과값을 지웁니다.
                    }
                } else {
                    include_once G5_LIB_PATH . '/icode.sms.lib.php';
                    $SMS = new SMS();
                    // SMS 연결
                    $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
                    $SMS->Add($recv_number, $send_number, $config['cf_icode_id'], iconv_euckr(stripslashes($sms_content)), "");
                    $SMS->Send();
                }
            }
        }
        // 답변 이메일전송
        if (trim($row['iq_email'])) {
            include_once G5_LIB_PATH . '/mailer.lib.php';
            $subject = $config['cf_title'] . ' ' . $row['it_name'] . ' 상품문의 답변 알림 메일';
            $content = conv_content($iq_answer, 1);
            mailer($config['cf_title'], $config['cf_admin_email'], $row['iq_email'], $subject, $content, 1);
        }
    }
    goto_url("./itemqaform.php?w={$w}&iq_id={$iq_id}&sca={$sca}&{$qstr}");
} else {
    alert();