From 5ebd6636a05e666ca59a71bef2275cf83545d116 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Wed, 8 May 2013 11:05:34 +0900 Subject: [PATCH 1/7] =?UTF-8?q?=ED=9C=B4=EB=8C=80=ED=8F=B0=20=EB=B3=B8?= =?UTF-8?q?=EC=9D=B8=ED=99=95=EC=9D=B8=20=EA=B2=BD=EA=B3=A0=EB=A9=94?= =?UTF-8?q?=EC=84=B8=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/board.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/board.php b/bbs/board.php index bad53d552..61034e624 100644 --- a/bbs/board.php +++ b/bbs/board.php @@ -64,7 +64,7 @@ if (isset($wr_id) && $wr_id) { } if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) { - alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL); + alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글읽기가 가능합니다.\\n\\n현재 성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을 다시 해주시기 바랍니다.', G4_URL); } } From 034b009d83acb78f0380a2e9fbfd077c5f919247 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Wed, 8 May 2013 11:06:00 +0900 Subject: [PATCH 2/7] =?UTF-8?q?G4=5FDOMAIN=20=EC=82=AC=EC=9A=A9=EC=95=88?= =?UTF-8?q?=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config.php b/config.php index cda58baf6..f006b663f 100644 --- a/config.php +++ b/config.php @@ -24,7 +24,7 @@ if (PHP_VERSION >= '5.3.0') { 보안서버주소가 없다면 공란으로 두시면 되며 보안서버주소 뒤에 / 는 붙이지 않습니다. 입력예) https://www.domain.com:443/gnuboard4s */ -define('G4_DOMAIN', ''); +define('G4_DOMAIN', ''); // 사용하지 않습니다. define('G4_HTTPS_DOMAIN', ''); /* @@ -62,6 +62,12 @@ if (G4_DOMAIN) { define('G4_URL', ''); } +if (G4_HTTPS_DOMAIN) { + define('G4_URL', G4_HTTPS_DOMAIN); +} else { + define('G4_URL', G4_DOMAIN); +} + if (isset($g4_path['path'])) { define('G4_PATH', $g4_path['path']); } else { From 970080e994a150972c2bf05bd9d698c7a90e31e9 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Wed, 8 May 2013 11:28:33 +0900 Subject: [PATCH 3/7] =?UTF-8?q?charset=20utf-8=20=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kcp/lib/ct_cli_lib.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugin/kcp/lib/ct_cli_lib.php b/plugin/kcp/lib/ct_cli_lib.php index 2b7e1dc13..dc40539d2 100644 --- a/plugin/kcp/lib/ct_cli_lib.php +++ b/plugin/kcp/lib/ct_cli_lib.php @@ -1,25 +1,25 @@ m_dec_data=""; } - // hash ó + // hash 처리 영역 function make_hash_data( $home_dir , $str ) { $hash_data = $this -> mf_exec( $home_dir . "/bin/ct_cli" , @@ -32,7 +32,7 @@ class C_CT_CLI return $hash_data; } - // dn_hash üũ Լ + // dn_hash 체크 함수 function check_valid_hash ($home_dir , $hash_data , $str ) { $ret_val = $this -> mf_exec( $home_dir . "/bin/ct_cli" , @@ -46,7 +46,7 @@ class C_CT_CLI return $ret_val; } - // ȣȭ ȣȭ + // 암호화 인증데이터 복호화 function decrypt_enc_cert ( $home_dir, $site_cd , $cert_no , $enc_cert_data , $opt) { $dec_data = $this -> mf_exec( $home_dir . "/bin/ct_cli" , @@ -62,7 +62,7 @@ class C_CT_CLI parse_str( str_replace( chr( 31 ), "&", $dec_data ), $this->m_dec_data ); } - // get data + // 인증데이터 get data function mf_get_key_value( $name ) { return $this->m_dec_data[ $name ]; From 2377f762ceab02814e6fa5718ad3339a7b37357b Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 8 May 2013 13:17:29 +0900 Subject: [PATCH 4/7] =?UTF-8?q?=EB=A9=94=EC=9D=BC=EB=B0=9C=EC=86=A1?= =?UTF-8?q?=EC=9D=B4=20=EC=A0=9C=EB=8C=80=EB=A1=9C=20=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8D=98=EA=B2=83=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/mail_select_list.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/adm/mail_select_list.php b/adm/mail_select_list.php index 186e46ead..c00b074eb 100644 --- a/adm/mail_select_list.php +++ b/adm/mail_select_list.php @@ -74,7 +74,6 @@ include_once('./admin.head.php');
- @@ -93,8 +92,7 @@ include_once('./admin.head.php'); $i=0; $ma_list = ""; $cr = ""; - while ($row=sql_fetch_array($result)) - { + while ($row=sql_fetch_array($result)) { $i++; $ma_list .= $cr . $row['mb_email'] . "||" . $row['mb_id'] . "||" . $row['mb_name'] . "||" . $row['mb_nick'] . "||" . $row['mb_datetime']; $cr = "\n"; @@ -110,6 +108,7 @@ include_once('./admin.head.php');
+
From a838f68c3a2cfb5dbfaff50492c7af2cab4626b9 Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 8 May 2013 13:18:20 +0900 Subject: [PATCH 5/7] =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=EC=8B=9C=20to=20=EB=A0=88=EB=B2=A8=EC=97=90=2010=20=EB=82=98?= =?UTF-8?q?=EC=98=A4=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/mail_select_form.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/adm/mail_select_form.php b/adm/mail_select_form.php index 466e9cc62..a7e437adc 100644 --- a/adm/mail_select_form.php +++ b/adm/mail_select_form.php @@ -85,7 +85,7 @@ include_once('./admin.head.php'); 에서 까지 @@ -98,8 +98,7 @@ include_once('./admin.head.php'); '.$row['gr_subject'].''; } ?> From bf16ad0ea8d5186c1d9048c40e0ace6874551334 Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 8 May 2013 13:18:38 +0900 Subject: [PATCH 6/7] =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20path=20=EB=A5=BC=20url?= =?UTF-8?q?=20=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/email_stop.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bbs/email_stop.php b/bbs/email_stop.php index d94b7a7e9..6a1634ba8 100644 --- a/bbs/email_stop.php +++ b/bbs/email_stop.php @@ -6,16 +6,14 @@ $row = sql_fetch($sql); if (!$row[mb_id]) alert('존재하는 회원이 아닙니다.', G4_PATH); -if ($mb_md5) -{ +if ($mb_md5) { $tmp_md5 = md5($row[mb_id].$row[mb_email].$row[mb_datetime]); - if ($mb_md5 == $tmp_md5) - { + if ($mb_md5 == $tmp_md5) { sql_query(" update {$g4[member_table]} set mb_mailling = 0 where mb_id = '{$mb_id}' "); - alert('정보메일을 보내지 않도록 수신거부 하였습니다.', G4_PATH); + alert('정보메일을 보내지 않도록 수신거부 하였습니다.', G4_URL); } } -alert('제대로 된 값이 넘어오지 않았습니다.', G4_PATH); +alert('제대로 된 값이 넘어오지 않았습니다.', G4_URL); ?> \ No newline at end of file From c40741ced5bf41120ff87b81891c0f6bf8382ee1 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Wed, 8 May 2013 14:45:39 +0900 Subject: [PATCH 7/7] =?UTF-8?q?=ED=9C=B4=EB=8C=80=ED=8F=B0=20=EB=B3=B8?= =?UTF-8?q?=EC=9D=B8=ED=99=95=EC=9D=B8=EC=8B=9C=20=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EC=82=AC=EC=9D=B4=EC=97=90=20-=EB=A5=BC=20=EB=84=A3=EC=96=B4?= =?UTF-8?q?=EC=84=9C=20=EC=A0=80=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/member_list.php | 13 ++++--------- bbs/register_form.php | 2 +- bbs/register_form_update.php | 5 ++--- plugin/kcp/kcpcert_result.php | 4 +++- skin/member/basic/register_form.skin.php | 6 +++--- 5 files changed, 13 insertions(+), 17 deletions(-) diff --git a/adm/member_list.php b/adm/member_list.php index 94a389c2f..e866a0dec 100644 --- a/adm/member_list.php +++ b/adm/member_list.php @@ -151,13 +151,10 @@ $colspan = 15; if ($row2['cnt']) $group = ''.$row2['cnt'].''; - if ($is_admin == 'group') - { + if ($is_admin == 'group') { $s_mod = ''; $s_del = ''; - } - else - { + } else { $s_mod = '수정'; //$s_del = '삭제'; } @@ -197,10 +194,8 @@ $colspan = 15; - - - - + + diff --git a/bbs/register_form.php b/bbs/register_form.php index 2764b026e..160cdfdaf 100644 --- a/bbs/register_form.php +++ b/bbs/register_form.php @@ -86,7 +86,7 @@ if ($w == "") { $member['mb_password_a'] = get_text($member['mb_password_a']); $member['mb_birth'] = get_text($member['mb_birth']); $member['mb_tel'] = get_text($member['mb_tel']); - $member['mb_hp'] = hyphen_hp_number($member['mb_hp']); + $member['mb_hp'] = get_text($member['mb_hp']); $member['mb_addr1'] = get_text($member['mb_addr1']); $member['mb_addr2'] = get_text($member['mb_addr2']); $member['mb_signature'] = get_text($member['mb_signature']); diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php index ad48fb7ff..278fc7264 100644 --- a/bbs/register_form_update.php +++ b/bbs/register_form_update.php @@ -269,9 +269,8 @@ if ($w == '') { ///////////////////////////////////////////////////////////////// $sql_hp_certify = ""; $md5_cert_no = get_session("ss_kcpcert_no"); - $hidden_hp = preg_replace("/[^0-9]/", "", $mb_hp); if ($config['cf_kcpcert_use'] && $md5_cert_no) { - $hash_data = md5($hidden_hp.$mb_name.$md5_cert_no); + $hash_data = md5($mb_hp.$mb_name.$md5_cert_no); // 해시값이 틀린 경우에는 휴대폰 인증 값을 무효화 한다. if (get_session("ss_kcpcert_hash") != $hash_data) { $sql_hp_certify .= " , mb_hp = '' "; @@ -280,7 +279,7 @@ if ($w == '') { } } else { if (get_session("ss_reg_mb_name") != $mb_name || - get_session("ss_reg_mb_hp") != $hidden_hp) { + get_session("ss_reg_mb_hp") != $mb_hp) { $sql_hp_certify .= " , mb_hp = '{$mb_hp}' "; $sql_hp_certify .= " , mb_hp_certify = 0 "; $sql_hp_certify .= " , mb_adult = 0 "; diff --git a/plugin/kcp/kcpcert_result.php b/plugin/kcp/kcpcert_result.php index 8295e44ae..8e112bf2f 100644 --- a/plugin/kcp/kcpcert_result.php +++ b/plugin/kcp/kcpcert_result.php @@ -132,6 +132,8 @@ if( $cert_enc_use == "Y" ) if(!$phone_no) alert_close("정상적인 인증이 아닙니다. 올바른 방법으로 이용해 주세요."); + $phone_no = hyphen_hp_number($phone_no); + $sql = " select count(*) as cnt from {$g4['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' "; $row = sql_fetch($sql); if ($row['cnt']) { @@ -174,7 +176,7 @@ $(function() { // 인증정보 $opener.$("input[name=mb_name]").val(""); - $opener.$("input[name=mb_hp]").val("").attr("readonly", true); + $opener.$("input[name=mb_hp]").val("").attr("readonly", true); alert("본인의 휴대폰번호로 확인 되었습니다."); window.close(); }); diff --git a/skin/member/basic/register_form.skin.php b/skin/member/basic/register_form.skin.php index 9b8354e09..8259ebaca 100644 --- a/skin/member/basic/register_form.skin.php +++ b/skin/member/basic/register_form.skin.php @@ -47,11 +47,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 -
+
휴대폰 본인확인성인인증 완료 -
+ @@ -100,7 +100,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - class="frm_input " maxlength="20"> + class="frm_input " maxlength="20">