From 8bdf80e38cc01a9c3348e3d74ff0d0aef912b583 Mon Sep 17 00:00:00 2001 From: projectSylas Date: Wed, 5 Jan 2022 01:50:57 +0000 Subject: [PATCH] =?UTF-8?q?=EB=B3=B8=EC=9D=B8=EC=9D=B8=EC=A6=9D=20:=20?= =?UTF-8?q?=EB=B3=B8=EC=9D=B8=EC=9D=B4=EC=95=84=EB=8B=8C=20=ED=83=80?= =?UTF-8?q?=EC=9D=B8=EC=9D=B4=20=EC=9D=B8=EC=A6=9D=ED=95=A0=EB=95=8C=20?= =?UTF-8?q?=EB=AA=85=EC=9D=98=EA=B0=80=20=EB=B3=80=EA=B2=BD=EB=90=98?= =?UTF-8?q?=EC=A7=80=20=EB=AA=BB=ED=95=98=EA=B2=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/inicert/ini_result.php | 13 +++++-------- plugin/kcpcert/kcpcert_result.php | 5 +++++ plugin/lgxpay/AuthOnlyRes.php | 5 +++++ plugin/okname/hpcert2.php | 5 +++++ plugin/okname/ipin2.php | 5 +++++ 5 files changed, 25 insertions(+), 8 deletions(-) diff --git a/plugin/inicert/ini_result.php b/plugin/inicert/ini_result.php index ffe924505..46850d055 100644 --- a/plugin/inicert/ini_result.php +++ b/plugin/inicert/ini_result.php @@ -43,16 +43,13 @@ if ($_POST["resultCode"] === "0000") { if(!$phone_no) alert_close("정상적인 인증이 아닙니다. 올바른 방법으로 이용해 주세요."); - $md5_ci = md5($ci . $ci); + $mb_dupinfo = md5($ci . $ci); $phone_no = hyphen_hp_number($phone_no); - $mb_dupinfo = $md5_ci; - - // $sql = " select mb_dupinfo from {$g5['member_table']} where mb_id = '{$member['mb_id']}'"; - // $row = sql_fetch($sql); - // if (!empty($row['mb_dupinfo'])) { - // if($row['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); - // } + // 명의 변경 체크 + if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); + } $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); diff --git a/plugin/kcpcert/kcpcert_result.php b/plugin/kcpcert/kcpcert_result.php index 100223fa9..2b8816327 100644 --- a/plugin/kcpcert/kcpcert_result.php +++ b/plugin/kcpcert/kcpcert_result.php @@ -151,6 +151,11 @@ if( $cert_enc_use == "Y" ) $phone_no = hyphen_hp_number($phone_no); $mb_dupinfo = md5($ci.$ci); + // 명의 변경 체크 + if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); + } + $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); if (!empty($row['mb_id'])) { diff --git a/plugin/lgxpay/AuthOnlyRes.php b/plugin/lgxpay/AuthOnlyRes.php index 6f202e3a3..31c02eca7 100644 --- a/plugin/lgxpay/AuthOnlyRes.php +++ b/plugin/lgxpay/AuthOnlyRes.php @@ -129,6 +129,11 @@ if ($xpay->TX()) { $phone_no = hyphen_hp_number($phone_no); $mb_dupinfo = md5($ci.$ci); + // 명의 변경 체크 + if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); + } + if($mb_dupinfo) { $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); diff --git a/plugin/okname/hpcert2.php b/plugin/okname/hpcert2.php index ada63f818..4b0230ce2 100644 --- a/plugin/okname/hpcert2.php +++ b/plugin/okname/hpcert2.php @@ -113,6 +113,11 @@ $ci = $field[5]; $mb_dupinfo = md5($ci.$ci); // 통합인증 추가 후 ci로 변경 $phone_no = hyphen_hp_number($req_num); +// 명의 변경 체크 +if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); +} + // 중복정보 체크 $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); diff --git a/plugin/okname/ipin2.php b/plugin/okname/ipin2.php index deb7bd09b..5f6f63d35 100644 --- a/plugin/okname/ipin2.php +++ b/plugin/okname/ipin2.php @@ -88,6 +88,11 @@ if(!empty($field[1])) { // 아이핀은 리턴받는 ci 데이터가 두가지 } $mb_dupinfo = md5($ci.$ci); // 통합인증 추가 후 ci로 변경 +// 명의 변경 체크 +if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); +} + // 중복정보 체크 $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql);