From 89eeb27ee2633cb00c0d6fde088acc6a120c39b7 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Feb 2013 09:22:12 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9C=B4=EB=8C=80=ED=8F=B0=EC=9D=B8=EC=A6=9D?= =?UTF-8?q?=20=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20=EC=B0=BE=EA=B8=B0?= =?UTF-8?q?=EB=A5=BC=20=EC=9C=84=ED=95=B4=20skin=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=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 .= '
'; -$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