헬프요 ㅠㅠㅠ 너무 ....ㅠㅠㅠ 정보
헬프요 ㅠㅠㅠ 너무 ....ㅠㅠㅠ본문
2가지 여쭈어 볼꺼요 ㅠㅠㅠ
먼저 1번
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=88936&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%B4%EC%82%AC%EA%B2%AC%EC%A0%81&sop=and
이 스킨 쓰고 완료하면 그거 utf-8 했는데도 깨져서 나오네요 ㅠㅠㅠ (깨져서 완료라고 뜸 ㅠ)
두번째
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=88936&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%B4%EC%82%AC%EA%B2%AC%EC%A0%81&sop=and
이 스킨 sms 사용법좀 갈켜주세요 ㅠ
sms hub 플러그인 깔고 돈도 충전했는데
방법을 모르겠어요 ㅠㅠㅠㅠㅠ
먼저 1번
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=88936&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%B4%EC%82%AC%EA%B2%AC%EC%A0%81&sop=and
이 스킨 쓰고 완료하면 그거 utf-8 했는데도 깨져서 나오네요 ㅠㅠㅠ (깨져서 완료라고 뜸 ㅠ)
두번째
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=88936&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%B4%EC%82%AC%EA%B2%AC%EC%A0%81&sop=and
이 스킨 sms 사용법좀 갈켜주세요 ㅠ
sms hub 플러그인 깔고 돈도 충전했는데
방법을 모르겠어요 ㅠㅠㅠㅠㅠ
댓글 전체

write_update.tail.skin.php -
------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/sms.lib.php");
//받는 사람이 여러명일경우에는 *** 개인정보보호를 위한 휴대폰번호 노출방지 ***,*** 개인정보보호를 위한 휴대폰번호 노출방지 *** 이런식으로 , 을 중간에 넣어주시면됩니다.
$mb_hp = "*** 개인정보보호를 위한 휴대폰번호 노출방지 ***"; // 받는사람
$cf_phone = "*** 개인정보보호를 위한 휴대폰번호 노출방지 ***"; // 보내는사람
//문자시작
$sms4 = sql_fetch("select * from sms4_config");
$mh_message = "{$ol_kind} 기종 {$ol_name}님 핸드폰 가입 문의 입니다.";
$mh_hp = explode(',', $mb_hp);
// 핸드폰 번호만 걸러낸다.
$tmp = array();
for ($i=0; $i<count($mh_hp); $i++)
{
$hp = trim($mh_hp[$i]);
$hp = get_hp($hp);
if ($hp)
$tmp[][bk_hp] = get_hp($hp, 0);
}
$mh_hp = $tmp;
$total = count($mh_hp);
$mh_reply = str_replace("-", "", $cf_phone);;
if (!check_string($mh_reply, _G4_NUMERIC_))
alert("보내는 번호가 올바르지 않습니다.");
$SMS = new SMS4;
$SMS->SMS_con($sms4[cf_ip], $sms4[cf_id], $sms4[cf_pw], $sms4[cf_port]);
$result = $SMS->Add($mh_hp, $mh_reply, '', '', $mh_message, $booking, $total);
$is_success = null;
if ($result)
{
$result = $SMS->Send();
if ($result) //SMS 서버에 접속했습니다.
{
foreach ($SMS->Result as $result)
{
list($hp, $code) = explode(":", $result);
if (substr($code,0,5) == "Error")
{
$is_success = false;
$hs_code = substr($code,6,2);
switch (substr($code,6,2)) {
case '02': // "02:형식오류"
$mh_log = "형식이 잘못되어 전송이 실패하였습니다.";
break;
case '23': // "23:인증실패,데이터오류,전송날짜오류"
$mh_log = "데이터를 다시 확인해 주시기바랍니다.";
break;
case '97': // "97:잔여코인부족"
$mh_log = "잔여코인이 부족합니다.";
break;
case '98': // "98:사용기간만료"
$mh_log = "사용기간이 만료되었습니다.";
break;
case '99': // "99:인증실패"
$mh_log = "인증 받지 못하였습니다. 계정을 다시 확인해 주세요.";
break;
default: // "미 확인 오류"
$mh_log = "알 수 없는 오류로 전송이 실패하었습니다.";
break;
}
}
else
{
$is_success = true;
$mh_log = "{$ol_name}님 핸드폰문의";
}
$hp = get_hp($hp, 1);
$log = array_shift($SMS->Log);
$row2 = sql_fetch("select max(wr_no) as wr_no from sms4_write");
if ($row2)
$wr_no = $row2[wr_no] + 1;
sql_query("insert into sms4_history set wr_no='$wr_no', wr_renum=0, bg_no='0', mb_id='$mb_id', bk_no='0', hs_name='$ol_name', hs_hp='$hp', hs_datetime='$g4[time_ymdhis]', hs_flag='1', hs_code='$hs_code', hs_memo='$mh_log', hs_log='$log'");
if ($is_admin == 'super')
$sms4[cf_point] = 0;
if ($is_success)
insert_point($member[mb_id], (-1) * $sms4[cf_point], "$mh_log");
}
$SMS->Init(); // 보관하고 있던 결과값을 지웁니다.
sql_query("insert into sms4_write set wr_no='$wr_no', wr_renum=0, wr_reply='$cf_phone', wr_message='$mh_message', wr_total='1', wr_datetime='$g4[time_ymdhis]',wr_success='1'");
}
else alert("에러: SMS 서버와 통신이 불안정합니다.");
}
else alert("에러: SMS 데이터 입력도중 에러가 발생하였습니다.");
?>
------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/sms.lib.php");
//받는 사람이 여러명일경우에는 *** 개인정보보호를 위한 휴대폰번호 노출방지 ***,*** 개인정보보호를 위한 휴대폰번호 노출방지 *** 이런식으로 , 을 중간에 넣어주시면됩니다.
$mb_hp = "*** 개인정보보호를 위한 휴대폰번호 노출방지 ***"; // 받는사람
$cf_phone = "*** 개인정보보호를 위한 휴대폰번호 노출방지 ***"; // 보내는사람
//문자시작
$sms4 = sql_fetch("select * from sms4_config");
$mh_message = "{$ol_kind} 기종 {$ol_name}님 핸드폰 가입 문의 입니다.";
$mh_hp = explode(',', $mb_hp);
// 핸드폰 번호만 걸러낸다.
$tmp = array();
for ($i=0; $i<count($mh_hp); $i++)
{
$hp = trim($mh_hp[$i]);
$hp = get_hp($hp);
if ($hp)
$tmp[][bk_hp] = get_hp($hp, 0);
}
$mh_hp = $tmp;
$total = count($mh_hp);
$mh_reply = str_replace("-", "", $cf_phone);;
if (!check_string($mh_reply, _G4_NUMERIC_))
alert("보내는 번호가 올바르지 않습니다.");
$SMS = new SMS4;
$SMS->SMS_con($sms4[cf_ip], $sms4[cf_id], $sms4[cf_pw], $sms4[cf_port]);
$result = $SMS->Add($mh_hp, $mh_reply, '', '', $mh_message, $booking, $total);
$is_success = null;
if ($result)
{
$result = $SMS->Send();
if ($result) //SMS 서버에 접속했습니다.
{
foreach ($SMS->Result as $result)
{
list($hp, $code) = explode(":", $result);
if (substr($code,0,5) == "Error")
{
$is_success = false;
$hs_code = substr($code,6,2);
switch (substr($code,6,2)) {
case '02': // "02:형식오류"
$mh_log = "형식이 잘못되어 전송이 실패하였습니다.";
break;
case '23': // "23:인증실패,데이터오류,전송날짜오류"
$mh_log = "데이터를 다시 확인해 주시기바랍니다.";
break;
case '97': // "97:잔여코인부족"
$mh_log = "잔여코인이 부족합니다.";
break;
case '98': // "98:사용기간만료"
$mh_log = "사용기간이 만료되었습니다.";
break;
case '99': // "99:인증실패"
$mh_log = "인증 받지 못하였습니다. 계정을 다시 확인해 주세요.";
break;
default: // "미 확인 오류"
$mh_log = "알 수 없는 오류로 전송이 실패하었습니다.";
break;
}
}
else
{
$is_success = true;
$mh_log = "{$ol_name}님 핸드폰문의";
}
$hp = get_hp($hp, 1);
$log = array_shift($SMS->Log);
$row2 = sql_fetch("select max(wr_no) as wr_no from sms4_write");
if ($row2)
$wr_no = $row2[wr_no] + 1;
sql_query("insert into sms4_history set wr_no='$wr_no', wr_renum=0, bg_no='0', mb_id='$mb_id', bk_no='0', hs_name='$ol_name', hs_hp='$hp', hs_datetime='$g4[time_ymdhis]', hs_flag='1', hs_code='$hs_code', hs_memo='$mh_log', hs_log='$log'");
if ($is_admin == 'super')
$sms4[cf_point] = 0;
if ($is_success)
insert_point($member[mb_id], (-1) * $sms4[cf_point], "$mh_log");
}
$SMS->Init(); // 보관하고 있던 결과값을 지웁니다.
sql_query("insert into sms4_write set wr_no='$wr_no', wr_renum=0, wr_reply='$cf_phone', wr_message='$mh_message', wr_total='1', wr_datetime='$g4[time_ymdhis]',wr_success='1'");
}
else alert("에러: SMS 서버와 통신이 불안정합니다.");
}
else alert("에러: SMS 데이터 입력도중 에러가 발생하였습니다.");
?>