관리자 설정에서 사이트코드를 입력하게 하지는 않았습니다.
사이트 코드를 입력하시려면
/plugin/nice/checkplus.config.php
/plugin/nice/ipin.config.php
에서 입력해 주세요.
nice_mobule.zip 압축을 풀고 plugin폴더에 업로드 해주세요.
모듈 업로드시 전송형태를 'binary' 로 지정해 주시고, 권한은 755 로 설정해 주세요.
모듈위치는 /plugin/nice/bin/ 입니다.
/config.php에 경로를 추가해 주세요.
define('G5_NICE_DIR', 'nice');
define('G5_NICE_URL', G5_PLUGIN_URL.'/'.G5_NICE_DIR);
define('G5_NICE_PATH', G5_PLUGIN_PATH.'/'.G5_NICE_DIR);
관리자 환경설정에서 선택값을 추가해 주세요.
/adm/config_form.php
아이핀 본인확인 select 에 추가
<?php echo option_selected("nice", $config['cf_cert_ipin'], "나이스평가정보(NICE) 아이핀"); ?>
휴대폰 본인확인 select 에 추가
<?php echo option_selected("nice", $config['cf_cert_hp'], "나이스평가정보(NICE) 휴대폰 본인확인"); ?>
회원가입할때 사용하는 certify.js 에 선택값을 추가해 주세요.
/js/certify.js 의
certify_win_open 함수에 아래코드 추가
else if(type == 'nice-ipin')
{
var popupWindow = window.open( url, "nicePop", "left=200, top=100, width=430, height=590, scrollbar=yes" );
popupWindow.focus();
}
else if(type == 'nice-hp')
{
var popupWindow = window.open( url, "nicePop", "left=200, top=100, width=430, height=590, scrollbar=yes" );
popupWindow.focus();
}
마지막으로 회원가입폼을 추가해 주시면 됩니다.
/skin/member/basic/register_form.skin.php
284줄 아래 switch($config['cf_cert_ipin']) { 에 추가
case 'nice':
$cert_url = G5_NICE_URL.'/ipin1.php?gubun=findid';
$cert_type = 'nice-ipin';
break;
311줄 아래 switch($config['cf_cert_hp']) { 에 추가
case 'nice':
$cert_url = G5_NICE_URL.'/checkplus_form.php?gubun=findid';
$cert_type = 'nice-hp';
break;
댓글 15개
덕분에 편하게 적용 완료했습니다.
감사합니다.
(적용 버전 : 5.5.13)
작업 시 약간의 오류가 있었어서 저와 같은 이슈가 발생할 수 있는 회원님들을 위해 메모하자면
checkplus_form.php에서 아래 코드 실행 시 파일을 실행할 수 없었는데
<?
if (file_exists($cb_encode_path)) {
if (is_readable($cb_encode_path)) {
echo "파일을 읽을 수 있습니다.<br/>";
} else {
echo "파일을 읽을 수 없습니다.<br/>";
}
if (is_executable($cb_encode_path)) {
echo "파일을 실행할 수 있습니다.<br/>";
} else {
echo "파일을 실행할 수 없습니다.<br/>";
}
} else {
echo "파일이 존재하지 않습니다.";
}
?>
checkplus.config.php에서 실행모듈을 변경하니 해결됐습니다.
<?
// 실행모듈
$cb_encode_path = G5_NICE_PATH.'/bin/CPClient';
/*
if(PHP_INT_MAX == 2147483647) // 32-bit
$cb_encode_path = G5_NICE_PATH.'/bin/CPClient';
else
$cb_encode_path = G5_NICE_PATH.'/bin/CPClient_x64';
*/
?>
추가로 결과창인 checkplus_success.php와 checkplus_fail.php에서
$enc_data = $_POST["EncodeData"]; → $enc_data = $_GET["EncodeData"];
$hash_data = md5($mb_name.$cert_type.$mb_birth.$md5_cert_no); → md5($mb_name.$cert_type.$mb_birth.$phone_no.$md5_cert_no);
로 변경하여 해결했습니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 14227 | |
| 14211 | |
| 14207 | |
| 14198 | |
| 14192 | |
| 14178 | |
| 14170 | |
| 14149 | |
| 14134 | |
| 14123 | |
| 14108 | |
| 14094 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기