当前位置: 首页>>代码示例>>PHP>>正文


PHP SMS::Add方法代码示例

本文整理汇总了PHP中SMS::Add方法的典型用法代码示例。如果您正苦于以下问题:PHP SMS::Add方法的具体用法?PHP SMS::Add怎么用?PHP SMS::Add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SMS的用法示例。


在下文中一共展示了SMS::Add方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: iconv

                // 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';
开发者ID:dingdong2310,项目名称:g5_theme,代码行数:31,代码来源:qawrite_update.php

示例2:

 $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';
 }
开发者ID:najinsu,项目名称:nsle,代码行数:31,代码来源:orderdeliveryupdate.php

示例3: count

                        $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();
开发者ID:kwon0281m,项目名称:youngcart5,代码行数:31,代码来源:itemqaformupdate.php


注:本文中的SMS::Add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。