sms5 icode를 미선택시 사용하는 경우 오류처리및 common.php에 faq 스킨 경로 추가 #35

This commit is contained in:
thisgun
2014-08-08 11:16:56 +09:00
parent e72c78cd7f
commit a1e11d9521
5 changed files with 20 additions and 12 deletions

View File

@ -3,6 +3,14 @@ $sub_menu = "900200";
include_once("./_common.php");
@include_once(G5_PLUGIN_PATH."/sms5/JSON.php");
if(empty($config['cf_sms_use'])){
if( $mtype == "json" ){
die("{\"error\":\"환경 설정의 SMS 사용에서 아이코드를 사용설정해 주셔야 실행할수 있습니다.\"}");
} else {
die("환경 설정의 SMS 사용에서 아이코드를 사용설정해 주셔야 실행할수 있습니다.");
}
}
if( !function_exists('json_encode') ) {
function json_encode($data) {
$json = new Services_JSON();