diff --git a/adm/config_form.php b/adm/config_form.php index 28ab4217f..44f9296b6 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -414,6 +414,12 @@ if (!isset($config['cf_cert_use_seed'])) { ADD COLUMN `cf_cert_use_seed` TINYINT(4) NOT NULL DEFAULT '1' AFTER `cf_cert_kg_mid`; "; sql_query($sql, false); } +if (!isset($config['cf_cert_kcp_enckey'])) { + $sql = "ALTER TABLE `{$g5['config_table']}` + ADD COLUMN `cf_cert_kcp_enckey` VARCHAR(100) NOT NULL DEFAULT '' AFTER `cf_cert_kcp_cd`; "; + sql_query($sql, false); +} + if (!$config['cf_faq_skin']) { $config['cf_faq_skin'] = "basic"; } @@ -1066,6 +1072,13 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) { NHN KCP 휴대폰 본인확인 서비스 신청페이지 + + + + 기술관리센터 > 인증센터 > 가맹점 인증키관리 에서 인증키 발급 후에 인증키 정보를 입력해 주세요.
입력하지 않거나 잘못 입력시 휴대폰 본인확인을 취소 하셨습니다. 라고 메시지가 나오면서 창이 닫히는 오류가 발생됩니다.') ?> + NHN KCP 상점관리자 + + diff --git a/adm/config_form_update.php b/adm/config_form_update.php index 81186b371..c3769a3e9 100644 --- a/adm/config_form_update.php +++ b/adm/config_form_update.php @@ -23,7 +23,7 @@ check_admin_token(); $cf_social_servicelist = !empty($_POST['cf_social_servicelist']) ? implode(',', $_POST['cf_social_servicelist']) : ''; -$check_keys = array('cf_cert_kcb_cd', 'cf_cert_kcp_cd', 'cf_editor', 'cf_recaptcha_site_key', 'cf_recaptcha_secret_key', 'cf_naver_clientid', 'cf_naver_secret', 'cf_facebook_appid', 'cf_facebook_secret', 'cf_twitter_key', 'cf_twitter_secret', 'cf_google_clientid', 'cf_google_secret', 'cf_googl_shorturl_apikey', 'cf_kakao_rest_key', 'cf_kakao_client_secret', 'cf_kakao_js_apikey', 'cf_payco_clientid', 'cf_payco_secret', 'cf_cert_kg_cd', 'cf_cert_kg_mid'); +$check_keys = array('cf_cert_kcb_cd', 'cf_cert_kcp_cd', 'cf_cert_kcp_enckey', 'cf_editor', 'cf_recaptcha_site_key', 'cf_recaptcha_secret_key', 'cf_naver_clientid', 'cf_naver_secret', 'cf_facebook_appid', 'cf_facebook_secret', 'cf_twitter_key', 'cf_twitter_secret', 'cf_google_clientid', 'cf_google_secret', 'cf_googl_shorturl_apikey', 'cf_kakao_rest_key', 'cf_kakao_client_secret', 'cf_kakao_js_apikey', 'cf_payco_clientid', 'cf_payco_secret', 'cf_cert_kg_cd', 'cf_cert_kg_mid'); foreach ($check_keys as $key) { if (isset($_POST[$key]) && $_POST[$key]) { @@ -289,6 +289,7 @@ $sql = " update {$g5['config_table']} cf_cert_kg_mid = '" . trim($_POST['cf_cert_kg_mid']) . "', cf_cert_kcb_cd = '{$_POST['cf_cert_kcb_cd']}', cf_cert_kcp_cd = '{$_POST['cf_cert_kcp_cd']}', + cf_cert_kcp_enckey = '{$_POST['cf_cert_kcp_enckey']}', cf_cert_limit = '{$_POST['cf_cert_limit']}', cf_cert_req = '{$_POST['cf_cert_req']}', cf_sms_use = '{$_POST['cf_sms_use']}', diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql index 2772c6f17..ddb7b99cf 100644 --- a/install/gnuboard5.sql +++ b/install/gnuboard5.sql @@ -295,6 +295,7 @@ CREATE TABLE IF NOT EXISTS `g5_config` ( `cf_cert_use_seed` tinyint(4) NOT NULL DEFAULT '1', `cf_cert_kcb_cd` varchar(255) NOT NULL DEFAULT '', `cf_cert_kcp_cd` varchar(255) NOT NULL DEFAULT '', + `cf_cert_kcp_enckey` varchar(100) NOT NULL DEFAULT '', `cf_lg_mid` varchar(100) NOT NULL DEFAULT '', `cf_lg_mert_key` varchar(100) NOT NULL DEFAULT '', `cf_cert_limit` int(11) NOT NULL DEFAULT '0', diff --git a/plugin/kcpcert/bin/ct_cli b/plugin/kcpcert/bin/ct_cli index 2446ab62f..2a6ada0ef 100755 Binary files a/plugin/kcpcert/bin/ct_cli and b/plugin/kcpcert/bin/ct_cli differ diff --git a/plugin/kcpcert/bin/ct_cli_exe.exe b/plugin/kcpcert/bin/ct_cli_exe.exe index 3abbd50c0..fe5204923 100644 Binary files a/plugin/kcpcert/bin/ct_cli_exe.exe and b/plugin/kcpcert/bin/ct_cli_exe.exe differ diff --git a/plugin/kcpcert/bin/ct_cli_x64 b/plugin/kcpcert/bin/ct_cli_x64 index 4fc53b04d..955fff043 100755 Binary files a/plugin/kcpcert/bin/ct_cli_x64 and b/plugin/kcpcert/bin/ct_cli_x64 differ diff --git a/plugin/kcpcert/kcpcert_config.php b/plugin/kcpcert/kcpcert_config.php index 37841e104..b715655d7 100644 --- a/plugin/kcpcert/kcpcert_config.php +++ b/plugin/kcpcert/kcpcert_config.php @@ -14,12 +14,15 @@ $web_siteid = ''; if ($config['cf_cert_use'] == 2) { // 실서비스 $site_cd = 'SM'.$config['cf_cert_kcp_cd']; $cert_url = 'https://cert.kcp.co.kr/kcp_cert/cert_view.jsp'; + $kcp_enc_key = $config['cf_cert_kcp_enckey']; } else if ($config['cf_cert_use'] == 1) { // 테스트사용 $site_cd = 'S6186'; $cert_url = 'https://testcert.kcp.co.kr/kcp_cert/cert_view.jsp'; + $kcp_enc_key = 'E66DCEB95BFBD45DF9DFAEEBCB092B5DC2EB3BF0'; } else { // 사용안함 $site_cd = ''; $cert_url = ''; + $kcp_enc_key = ''; } if(!$site_cd) diff --git a/plugin/kcpcert/kcpcert_form.php b/plugin/kcpcert/kcpcert_form.php index 400c0e3a5..b82329651 100644 --- a/plugin/kcpcert/kcpcert_form.php +++ b/plugin/kcpcert/kcpcert_form.php @@ -27,6 +27,8 @@ if(!$ordr_idxx) $ct_cert = new C_CT_CLI; $ct_cert->mf_clear(); +$sbParam = ''; + $year = "00"; $month = "00"; $day = "00"; @@ -47,7 +49,7 @@ $hash_data = $site_cd . $sex_code . $local_code; -$up_hash = $ct_cert->make_hash_data( $home_dir, $hash_data ); +$up_hash = $ct_cert->make_hash_data( $home_dir, $kcp_enc_key, $hash_data ); $ct_cert->mf_clear(); ?> @@ -88,6 +90,9 @@ $ct_cert->mf_clear(); + + + @@ -101,10 +106,15 @@ $ct_cert->mf_clear(); + + + + +