diff --git a/adm/config_form_update.php b/adm/config_form_update.php index 1d5f8244a..796a19829 100644 --- a/adm/config_form_update.php +++ b/adm/config_form_update.php @@ -282,7 +282,7 @@ $sql = " update {$g5['config_table']} cf_cert_hp = '{$_POST['cf_cert_hp']}', cf_cert_sa = '{$_POST['cf_cert_sa']}', cf_cert_kg_cd = '{$_POST['cf_cert_kg_cd']}', - cf_cert_kg_mid = '{$_POST['cf_cert_kg_mid']}', + 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_lg_mid = '{$_POST['cf_lg_mid']}', diff --git a/bbs/member_cert_refresh_update.php b/bbs/member_cert_refresh_update.php index d2fa05a47..078e0f8f7 100644 --- a/bbs/member_cert_refresh_update.php +++ b/bbs/member_cert_refresh_update.php @@ -7,9 +7,11 @@ if (!($w == '' || $w == 'u')) { alert('w 값이 제대로 넘어오지 않았습니다.'); } -if($w == '') +if($w == '') { $mb_id = isset($_POST['mb_id']) ? trim($_POST['mb_id']) : ''; -else + $mb_name = isset($_POST['mb_name']) ? trim($_POST['mb_name']) : ''; + $mb_hp = isset($_POST['mb_hp']) ? trim($_POST['mb_hp']) : ''; +} else alert('잘못된 접근입니다', G5_URL); if(!$mb_id) @@ -23,7 +25,7 @@ if($config['cf_cert_use'] && get_session('ss_cert_type') && get_session('ss_cert // 중복체크 $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '".get_session('ss_cert_dupinfo')."' "; $row = sql_fetch($sql); - if ($row['mb_id']) { + if (!empty($row['mb_id'])) { alert("입력하신 본인확인 정보로 가입된 내역이 존재합니다."); } } @@ -41,8 +43,7 @@ if ($config['cf_cert_use'] && $cert_type && $md5_cert_no) { $sql_certify .= " , mb_birth = '".get_session('ss_cert_birth')."' "; $sql_certify .= " , mb_sex = '".get_session('ss_cert_sex')."' "; $sql_certify .= " , mb_dupinfo = '".get_session('ss_cert_dupinfo')."' "; - if($w == 'u') - $sql_certify .= " , mb_name = '{$mb_name}' "; + $sql_certify .= " , mb_name = '{$mb_name}' "; } else { $sql_certify .= " mb_hp = '{$mb_hp}' "; $sql_certify .= " , mb_certify = '' "; diff --git a/bbs/password_reset_update.php b/bbs/password_reset_update.php index e6299f092..f9aafebc1 100644 --- a/bbs/password_reset_update.php +++ b/bbs/password_reset_update.php @@ -1,7 +1,6 @@ '{$member['mb_id']}' and mb_dupinfo = '".get_session('ss_cert_dupinfo')."' "; $row = sql_fetch($sql); - if ($row['mb_id']) { + if (!empty($row['mb_id'])) { alert("입력하신 본인확인 정보로 가입된 내역이 존재합니다."); } } diff --git a/common.php b/common.php index 9f512e330..6a01c430d 100644 --- a/common.php +++ b/common.php @@ -300,6 +300,7 @@ if( !function_exists('shop_check_is_pay_page') ){ $mobile_dir.'/'.$shop_dir.'/kcp/order_approval_form.php', $shop_dir.'/kakaopay/inicis_kk_return.php', // 이니시스 카카오페이 (SIRK 로 시작하는 아이디 전용) $plugin_dir."/kgcert/kg_result.php", // 이니시스 통합인증 모듈 2021-09-10 http <-> https 간 세션 공유 문제로 인해 추가 + $plugin_dir."/kgcert/kg_find_result.php", // 이니시스 통합인증 모듈 2021-09-10 http <-> https 간 세션 공유 문제로 인해 추가 ); $server_script_name = str_replace('\\', '/', $_SERVER['SCRIPT_NAME']); @@ -792,7 +793,7 @@ if(!empty($extend_file) && is_array($extend_file)) { } unset($extend_file); -if(!$is_admin && $is_member && !G5_CERT_IN_PROG && $config['cf_cert_use'] <> 0 && $config['cf_cert_req']) { // 본인인증이 필수일때 +if(!$is_admin && $is_member && (!defined("G5_CERT_IN_PROG") || !G5_CERT_IN_PROG) && $config['cf_cert_use'] <> 0 && $config['cf_cert_req']) { // 본인인증이 필수일때 if ((empty($member['mb_certify']) || (!empty($member['mb_certify']) && strlen($member['mb_dupinfo']) == 64))) { // di로 인증되어 있거나 본인인증이 안된 계정일때 goto_url(G5_BBS_URL."/member_cert_refresh.php"); } diff --git a/config.php b/config.php index d92d16f27..24ab316bf 100644 --- a/config.php +++ b/config.php @@ -135,7 +135,7 @@ define('G5_PHPMAILER_PATH', G5_PLUGIN_PATH.'/'.G5_PHPMAILER_DIR); //------------------------------------------------------------------------------ define('G5_SET_DEVICE', 'both'); -define('G5_CERT_IN_PROG', false); // 재인증페이지 리디렉션 사용여부 +// define('G5_CERT_IN_PROG', false); // 재인증페이지 리디렉션 사용여부 define('G5_USE_MOBILE', true); // 모바일 홈페이지를 사용하지 않을 경우 false 로 설정 define('G5_USE_CACHE', true); // 최신글등에 cache 기능 사용 여부 diff --git a/mobile/skin/member/basic/register_cert_reset.skin.php b/mobile/skin/member/basic/register_cert_reset.skin.php index 7031fe379..d2d7045f1 100644 --- a/mobile/skin/member/basic/register_cert_reset.skin.php +++ b/mobile/skin/member/basic/register_cert_reset.skin.php @@ -37,7 +37,7 @@ add_stylesheet('이용자 식별 및 본인여부 확인