From 785ed9907249cd9edfef825a6562f5ac49484298 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Feb 2013 09:18:12 +0900 Subject: [PATCH 01/10] =?UTF-8?q?=ED=9C=B4=EB=8C=80=ED=8F=B0=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=EC=A4=91=EB=B3=B5=EC=B2=B4=ED=81=AC=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../register_form_update.head.skin.php | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/skin/member/kcpcert/register_form_update.head.skin.php b/skin/member/kcpcert/register_form_update.head.skin.php index e51e615b2..d1fcd4313 100644 --- a/skin/member/kcpcert/register_form_update.head.skin.php +++ b/skin/member/kcpcert/register_form_update.head.skin.php @@ -3,6 +3,25 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // 자신만의 코드를 넣어주세요. +// 핸드폰번호 중복체크 +$reg_hp = preg_replace("/[^0-9]/", "", $mb_hp); +if(!$reg_hp) + alert('핸드폰번호를 입력해 주세요.', "", true, true); + +$hp_len = strlen($reg_hp); + +if($hp_len == 10) + $reg_mb_hp = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $reg_hp); +else if($hp_len == 11) + $reg_mb_hp = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $reg_hp); +else + alert('핸드폰번호가 올바르지 않습니다.', "", true, true); + +$sql2 = " select count(*) as cnt from {$g4['member_table']} where mb_hp = '$reg_mb_hp' and mb_id <> '$mb_id' "; +$row2 = sql_fetch($sql2); +if($row2['cnt']) + alert('입력하신 핸드폰번호는 다른 회원님이 사용 중입니다.', "", true, true); + /* ======================================================================================================= */ /* = 휴대폰인증 및 성인인증 = */ /* ======================================================================================================= */ @@ -13,7 +32,6 @@ if($w == '') { alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', "", true, true); // 본인인증 hash 체크 - $reg_hp = preg_replace("/[^0-9]/", "", $mb_hp); $reg_hash = md5($reg_hp.$mb_name.$kcpcert_no); if(get_session('ss_kcpcert_hash') != $reg_hash) alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true); @@ -25,9 +43,7 @@ if($w == '') { } } else if($w == 'u') { // 휴대폰번호 변경체크 - $patt = "/[^0-9]/"; - $old_hp = preg_replace($patt, "", $_POST['old_mb_hp']); - $reg_hp = preg_replace($patt, "", $mb_hp); + $old_hp = preg_replace("/[^0-9]/", "", $_POST['old_mb_hp']); if($old_hp != $reg_hp) { // 본인인증체크 From 4324d78f101a26979265fad0fb465cd7dc20e67f Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Feb 2013 09:18:56 +0900 Subject: [PATCH 02/10] =?UTF-8?q?=ED=9C=B4=EB=8C=80=ED=8F=B0=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=ED=91=9C=EB=A7=B7=20=EB=B3=80=EA=B2=BD=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/member/kcpcert/register_form_update.tail.skin.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/skin/member/kcpcert/register_form_update.tail.skin.php b/skin/member/kcpcert/register_form_update.tail.skin.php index 949007928..922a1a2f6 100644 --- a/skin/member/kcpcert/register_form_update.tail.skin.php +++ b/skin/member/kcpcert/register_form_update.tail.skin.php @@ -3,6 +3,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // 자신만의 코드를 넣어주세요. +// 휴대폰번호 포맷(010-0000-0000) 변경해서 기록 +// $reg_mb_hp 는 rigister_form_update.head.skin.php 파일 +$sql = " update {$g4['member_table']} + set mb_hp = '$reg_mb_hp' + where mb_id = '$mb_id' "; +sql_query($sql); + /* =========================================================================== */ /* = 휴대폰인증 및 성인인증 = */ /* =========================================================================== */ From 6d000f07b5fa5e0afe0099dc33d35bb43cbb81ac Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Feb 2013 09:19:52 +0900 Subject: [PATCH 03/10] =?UTF-8?q?register=5Fform=5Fupdate.head.skin=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=8B=A4=ED=96=89=20=EC=9C=84=EC=B9=98=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/register_form_update.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php index 1dbab9a60..9ef55dd9f 100644 --- a/bbs/register_form_update.php +++ b/bbs/register_form_update.php @@ -51,8 +51,6 @@ $mb_8 = isset($_POST['mb_8']) ? escape_trim($_POST['mb_8']) $mb_9 = isset($_POST['mb_9']) ? escape_trim($_POST['mb_9']) : ""; $mb_10 = isset($_POST['mb_10']) ? escape_trim($_POST['mb_10']) : ""; -// 사용자 코드 실행 -@include_once($member_skin_path.'/register_form_update.head.skin.php'); if ($w == '' || $w == 'u') { @@ -92,6 +90,9 @@ if ($w == '' || $w == 'u') { if ($msg = exist_mb_email($mb_email, $mb_id)) alert($msg, "", true, true); } +// 사용자 코드 실행 +@include_once($member_skin_path.'/register_form_update.head.skin.php'); + $mb_dir = G4_DATA_PATH.'/member/'.substr($mb_id,0,2); // 아이콘 삭제 From c900207f3896a54df931ba492678025438f55701 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Feb 2013 09:21:03 +0900 Subject: [PATCH 04/10] =?UTF-8?q?basic=20=EC=8A=A4=ED=82=A8=EC=97=90=20reg?= =?UTF-8?q?ister=5Fform=5Fupdate.head.skin=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/member/basic/register_form_update.head.skin.php | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 skin/member/basic/register_form_update.head.skin.php diff --git a/skin/member/basic/register_form_update.head.skin.php b/skin/member/basic/register_form_update.head.skin.php new file mode 100644 index 000000000..414359db4 --- /dev/null +++ b/skin/member/basic/register_form_update.head.skin.php @@ -0,0 +1,5 @@ + From 89eeb27ee2633cb00c0d6fde088acc6a120c39b7 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Feb 2013 09:22:12 +0900 Subject: [PATCH 05/10] =?UTF-8?q?=ED=9C=B4=EB=8C=80=ED=8F=B0=EC=9D=B8?= =?UTF-8?q?=EC=A6=9D=20=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20=EC=B0=BE?= =?UTF-8?q?=EA=B8=B0=EB=A5=BC=20=EC=9C=84=ED=95=B4=20skin=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EB=A1=9C=20=EA=B8=B0=EB=8A=A5=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/password_lost2.php | 69 +----------------------------------------- 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/bbs/password_lost2.php b/bbs/password_lost2.php index b3a2b92bc..eb28b4fdd 100644 --- a/bbs/password_lost2.php +++ b/bbs/password_lost2.php @@ -1,7 +1,6 @@ 1) - alert('동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.'); - -$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '$email' "; -$mb = sql_fetch($sql); -if (!$mb['mb_id']) - alert('존재하지 않는 회원입니다.'); -else if (is_admin($mb['mb_id'])) - alert('관리자 아이디는 접근 불가합니다.'); - -// 난수 발생 -srand(time()); -$randval = rand(4, 6); - -$change_password = substr(md5(get_microtime()), 0, $randval); - -$mb_lost_certify = sql_password($change_password); -$mb_datetime = sql_password($mb['mb_datetime']); - -// 회원테이블에 필드를 추가 -sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_lost_certify` VARCHAR( 255 ) NOT NULL AFTER `mb_memo` ", false); - -$sql = " update {$g4['member_table']} - set mb_lost_certify = '$mb_lost_certify' - where mb_id = '{$mb['mb_id']}' "; -sql_query($sql); - -$href = G4_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&mb_datetime='.$mb_datetime.'&mb_lost_certify='.$mb_lost_certify; - -$subject = '요청하신 회원아이디/패스워드 정보입니다.'; - -$content = ''; -$content .= '
'; -$content .= '

요청하신 계정정보는 다음과 같습니다.

'; -$content .= '
'; -$content .= '
    '; -$content .= '
  • 회원아이디 : '.$mb['mb_id'].'
  • '; -$content .= '
  • 변경 패스워드 : '.$change_password.'
  • '; -$content .= '
  • 이름 : '.addslashes($mb['mb_name']).'
  • '; -$content .= '
  • 별명 : '.addslashes($mb['mb_nick']).'
  • '; -$content .= '
  • 이메일주소 : '.addslashes($mb['mb_email']).'
  • '; -$content .= '
  • 요청일시 : '.G4_TIME_YMDHIS.'
  • '; -$content .= '
  • 홈페이지 : '.G4_URL.'
  • '; -$content .= '
'; -$content .= '
'; -$content .= '

'.$href.'

'; -$content .= '

'; -$content .= '1. 위의 링크를 클릭하십시오. 링크가 클릭되지 않는다면 링크를 브라우저의 주소창에 직접 복사해 넣으시기 바랍니다.
'; -$content .= '2. 링크를 클릭하시면 패스워드가 변경 되었다는 인증 메세지가 출력됩니다.
'; -$content .= '3. 홈페이지에서 회원아이디와 위에 적힌 변경 패스워드로 로그인 하십시오.
'; -$content .= '4. 로그인 하신 후 새로운 패스워드로 변경하시면 됩니다.'; -$content .= '

'; -$content .= '

감사합니다.

'; -$content .= '

[끝]

'; -$content .= '
'; - -$admin = get_admin('super'); -mailer($admin['mb_nick'], $admin['mb_email'], $mb['mb_email'], $subject, $content, 1); - -alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\\n\\n메일을 확인하여 주십시오.'); +include_once($member_skin_path.'/password_lost2.skin.php'); ?> \ No newline at end of file From 2aea9dd14f3149d9186c38cb5bdcc16cbe543376 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Feb 2013 09:23:01 +0900 Subject: [PATCH 06/10] =?UTF-8?q?=EC=9D=B4=EB=A9=94=EC=9D=BC=EC=9D=84=20?= =?UTF-8?q?=EC=9D=B4=EC=9A=A9=ED=95=9C=20=EB=B9=84=EB=B0=80=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=EC=B0=BE=EA=B8=B0=20=EA=B8=B0=EB=8A=A5=EC=9D=84=20?= =?UTF-8?q?=EC=9C=84=ED=95=9C=20skin=20=ED=8C=8C=EC=9D=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/member/basic/password_lost2.skin.php | 73 +++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 skin/member/basic/password_lost2.skin.php diff --git a/skin/member/basic/password_lost2.skin.php b/skin/member/basic/password_lost2.skin.php new file mode 100644 index 000000000..02b0a43e5 --- /dev/null +++ b/skin/member/basic/password_lost2.skin.php @@ -0,0 +1,73 @@ + 1) + alert('동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.'); + +$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '$email' "; +$mb = sql_fetch($sql); +if (!$mb['mb_id']) + alert('존재하지 않는 회원입니다.'); +else if (is_admin($mb['mb_id'])) + alert('관리자 아이디는 접근 불가합니다.'); + +// 난수 발생 +srand(time()); +$randval = rand(4, 6); + +$change_password = substr(md5(get_microtime()), 0, $randval); + +$mb_lost_certify = sql_password($change_password); +$mb_datetime = sql_password($mb['mb_datetime']); + +// 회원테이블에 필드를 추가 +sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_lost_certify` VARCHAR( 255 ) NOT NULL AFTER `mb_memo` ", false); + +$sql = " update {$g4['member_table']} + set mb_lost_certify = '$mb_lost_certify' + where mb_id = '{$mb['mb_id']}' "; +sql_query($sql); + +$href = G4_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&mb_datetime='.$mb_datetime.'&mb_lost_certify='.$mb_lost_certify; + +$subject = '요청하신 회원아이디/패스워드 정보입니다.'; + +$content = ''; +$content .= '
'; +$content .= '

요청하신 계정정보는 다음과 같습니다.

'; +$content .= '
'; +$content .= '
    '; +$content .= '
  • 회원아이디 : '.$mb['mb_id'].'
  • '; +$content .= '
  • 변경 패스워드 : '.$change_password.'
  • '; +$content .= '
  • 이름 : '.addslashes($mb['mb_name']).'
  • '; +$content .= '
  • 별명 : '.addslashes($mb['mb_nick']).'
  • '; +$content .= '
  • 이메일주소 : '.addslashes($mb['mb_email']).'
  • '; +$content .= '
  • 요청일시 : '.G4_TIME_YMDHIS.'
  • '; +$content .= '
  • 홈페이지 : '.G4_URL.'
  • '; +$content .= '
'; +$content .= '
'; +$content .= '

'.$href.'

'; +$content .= '

'; +$content .= '1. 위의 링크를 클릭하십시오. 링크가 클릭되지 않는다면 링크를 브라우저의 주소창에 직접 복사해 넣으시기 바랍니다.
'; +$content .= '2. 링크를 클릭하시면 패스워드가 변경 되었다는 인증 메세지가 출력됩니다.
'; +$content .= '3. 홈페이지에서 회원아이디와 위에 적힌 변경 패스워드로 로그인 하십시오.
'; +$content .= '4. 로그인 하신 후 새로운 패스워드로 변경하시면 됩니다.'; +$content .= '

'; +$content .= '

감사합니다.

'; +$content .= '

[끝]

'; +$content .= '
'; + +$admin = get_admin('super'); +mailer($admin['mb_nick'], $admin['mb_email'], $mb['mb_email'], $subject, $content, 1); + +alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\\n\\n메일을 확인하여 주십시오.'); +?> \ No newline at end of file From cbd0d384d76dda88848d1cb9879747e3876bc03f Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Feb 2013 09:23:33 +0900 Subject: [PATCH 07/10] =?UTF-8?q?=ED=9C=B4=EB=8C=80=ED=8F=B0=EC=9D=B8?= =?UTF-8?q?=EC=A6=9D=20=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20=EC=B0=BE?= =?UTF-8?q?=EA=B8=B0=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/member/kcpcert/password_lost.skin.php | 38 +++++++-- skin/member/kcpcert/password_lost2.skin.php | 89 +++++++++++++++++++++ 2 files changed, 121 insertions(+), 6 deletions(-) create mode 100644 skin/member/kcpcert/password_lost2.skin.php diff --git a/skin/member/kcpcert/password_lost.skin.php b/skin/member/kcpcert/password_lost.skin.php index c05fe4f48..713829bd5 100644 --- a/skin/member/kcpcert/password_lost.skin.php +++ b/skin/member/kcpcert/password_lost.skin.php @@ -1,18 +1,26 @@ 2) + alert_close('아이디/패스워드 찾기를 기준회수이상 시도하였습니다.'); ?>

아이디/패스워드 찾기

+ +

- 회원가입 시 등록하신 이메일 주소를 입력해 주세요.
- 해당 이메일로 아이디와 패스워드 정보를 보내드립니다. + 회원가입 시 등록하신 이름과 핸드폰번호를 입력해 주세요.

- - + + + + + +
@@ -22,16 +30,34 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
+ +