if ($nmParam == "req_tx") { $req_tx = f_get_parm_str($valParam); } if ($nmParam == "cert_no") { $cert_no = f_get_parm_str($valParam); } if ($nmParam == "enc_cert_data") { $enc_cert_data = f_get_parm_str($valParam); } if ($nmParam == "dn_hash") { $dn_hash = f_get_parm_str($valParam); } // 부모창으로 넘기는 form 데이터 생성 필드 $sbParam .= "<input type='hidden' name='" . $nmParam . "' value='" . f_get_parm_str($valParam) . "'/>"; } $ct_cert = new C_CT_CLI(); $ct_cert->mf_clear(); $g5['title'] = '휴대폰인증 결과'; include_once G5_PATH . '/head.sub.php'; // 결과 처리 if ($cert_enc_use == "Y") { // 인증내역기록 @insert_cert_history($member['mb_id'], 'kcp', 'hp'); if ($res_cd == "0000") { // dn_hash 검증 // KCP 가 리턴해 드리는 dn_hash 와 사이트 코드, 주문번호 , 인증번호를 검증하여 // 해당 데이터의 위변조를 방지합니다 $veri_str = $site_cd . $ordr_idxx . $cert_no; // 사이트 코드 + 주문번호 + 인증거래번호 if ($ct_cert->check_valid_hash($home_dir, $dn_hash, $veri_str) != "1") { // 검증 실패시 처리 영역
<?php include_once './_common.php'; // 금일 인증시도 회수 체크 certify_count_check($member['mb_id'], 'hp'); setlocale(LC_CTYPE, 'ko_KR.euc-kr'); // kcp 휴대폰인증파일 include_once G5_KCPCERT_PATH . '/kcpcert_config.php'; $ordr_idxx = get_session('ss_uniqid'); if (!$ordr_idxx) { $ordr_idxx = get_uniqid(); } $ct_cert = new C_CT_CLI(); $ct_cert->mf_clear(); $year = "00"; $month = "00"; $day = "00"; $user_name = ""; $sex_code = ""; $local_code = ""; // !!up_hash 데이터 생성시 주의 사항 // year , month , day 가 비어 있는 경우 "00" , "00" , "00" 으로 설정이 됩니다 // 그외의 값은 없을 경우 ""(null) 로 세팅하시면 됩니다. // up_hash 데이터 생성시 site_cd 와 ordr_idxx 는 필수 값입니다. $hash_data = $site_cd . $ordr_idxx . $user_name . $year . $month . $day . $sex_code . $local_code; $up_hash = $ct_cert->make_hash_data($home_dir, $hash_data); $ct_cert->mf_clear(); ?> <form name="form_auth" method="post" target="auth_popup" action="<?php echo $cert_url;