휴대폰 본인확인 사용, 미사용, 테스트 적용

This commit is contained in:
gnuboard
2013-04-22 19:05:39 +09:00
parent 1e0a649d0e
commit b5819b1ec0
6 changed files with 27 additions and 13 deletions

View File

@ -8,6 +8,7 @@ $home_dir = G4_PLUGIN_PATH.'/kcp'; // ct_cli 절대경로 ( bin 전까지 )
//web_siteid 값이 없으면 KCP 에서 지정한 값으로 설정됨
$web_siteid = '';
/*
if($config['cf_kcpcert_site_cd'] && $config['cf_kcpcert_site_cd'] != 'S6186') { // 실인증
$site_cd = $config['cf_kcpcert_site_cd'];
$cert_url = 'https://cert.kcp.co.kr/kcp_cert/cert_view.jsp';
@ -15,9 +16,21 @@ if($config['cf_kcpcert_site_cd'] && $config['cf_kcpcert_site_cd'] != 'S6186') {
$site_cd = 'S6186';
$cert_url = 'https://testcert.kcp.co.kr/kcp_cert/cert_view.jsp';
}
*/
if ($config['cf_kcpcert_use'] == 1) { // 실제사용
//$site_cd = 'SM'.$config['cf_kcpcert_site_cd'];
$site_cd = $config['cf_kcpcert_site_cd'];
$cert_url = 'https://cert.kcp.co.kr/kcp_cert/cert_view.jsp';
} else if ($config['cf_kcpcert_use'] == -1) { // 테스트사용
$site_cd = 'S6186';
$cert_url = 'https://testcert.kcp.co.kr/kcp_cert/cert_view.jsp';
} else { // 사용안함
$site_cd = '';
$cert_url = '';
}
if(!$site_cd)
alert('KCP 휴대폰인증 사이트코드가 없습니다.\\관리자 > 기본환경설정에 사이트코드를 입력해 주십시오.', G4_URL);
alert('KCP 휴대폰 본인확인 서비스 사이트코드가 없습니다.\\관리자 > 기본환경설정에 KCP 사이트코드를 입력해 주십시오.', G4_URL);
// KCP 인증 라이브러리
require G4_KCP_PATH.'/lib/ct_cli_lib.php';