Example #1
0
             $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) {
                 $strDest = array();
                 $strDest[] = $recv_number;
                 $strCallBack = $send_number;
                 $strCaller = iconv_euckr(trim($config['cf_title']));
                 $strSubject = '';
                 $strURL = '';
                 $strData = iconv_euckr($sms_content);
                 $strDate = '';
                 $nCount = count($strDest);
                 $SMS = new LMS();
                 $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $port_setting);
                 $res = $SMS->Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate, $nCount);
                 if ($res) {
                     $SMS->Send();
                 }
                 $SMS->Init();
                 // 보관하고 있던 결과값을 지웁니다.
             }
         }
     }
 } else {
     include_once G5_LIB_PATH . '/icode.sms.lib.php';
     // 답변글은 질문 등록자에게 전송
     if ($w == 'a' && $write['qa_sms_recv'] && trim($write['qa_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]/', '', $write['qa_hp']);