diff --git a/bbs/confirm.php b/bbs/confirm.php index b0a47775e..ca02f2af2 100644 --- a/bbs/confirm.php +++ b/bbs/confirm.php @@ -3,6 +3,16 @@ include_once('./_common.php'); include_once(G4_PATH.'/head.sub.php'); ?> + + + '$bo_table' "; +//$sql = " select * from {$g4['board_table']} a, {$g4['group_table']} b where a.gr_id = b.gr_id and bo_table <> '$bo_table' "; +// 원본 게시판을 선택 할 수 있도록 함. +$sql = " select * from {$g4['board_table']} a, {$g4['group_table']} b where a.gr_id = b.gr_id "; if ($is_admin == 'group') $sql .= " and b.gr_admin = '{$member['mb_id']}' "; else if ($is_admin == 'board') @@ -59,7 +58,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) 할 게시판을 한개 이상 선택하여 주십시오. - 선택 + + + + 게시판 @@ -67,6 +69,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) + @@ -76,6 +79,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $save_gr_subject = $list[$i]['gr_subject']; ?> () + @@ -99,6 +107,15 @@ $(function() { }); }); +function all_checked(sw) { + var f = document.fboardmoveall; + + for (var i=0; i + +

메일인증을 받지 못한 경우 회원정보의 메일주소를 변경 할 수 있습니다.

+ +
+ + + + + + + + + + + +
사이트 이용정보 입력
자동등록방지
+ +취소 +
+ + + diff --git a/bbs/register_email_update.php b/bbs/register_email_update.php new file mode 100644 index 000000000..db5e309dc --- /dev/null +++ b/bbs/register_email_update.php @@ -0,0 +1,44 @@ + '' "; +$mb = sql_fetch($sql); +if (!$mb) { + alert("이미 메일인증 하신 회원입니다.", G4_URL); +} + +if (!chk_captcha()) { + alert('자동등록방지 숫자가 틀렸습니다.'); +} + +$sql = " select count(*) as cnt from {$g4['member_table']} where mb_id <> '{$mb_id}' and mb_email = '$mb_email' "; +$row = sql_fetch($sql); +if ($row['cnt']) { + alert("{$mb_email} 메일은 이미 존재하는 메일주소 입니다.\\n\\n다른 메일주소를 입력해 주십시오."); +} + +// 인증메일 발송 +$subject = '['.$config['cf_title'].'] 인증확인 메일입니다.'; + +$mb_datetime = $mb['mb_datetime'] ? $mb['mb_datetime'] : G4_TIME_YMDHIS; +$mb_md5 = md5($mb_id.$mb_email.$mb_datetime); +$certify_href = G4_BBS_URL.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5; + +ob_start(); +include_once ('./register_form_update_mail3.php'); +$content = ob_get_contents(); +ob_end_clean(); + +$admin = get_admin('super'); +mailer($admin['mb_nick'], $admin['mb_email'], $mb_email, $subject, $content, 1); + +$sql = " update {$g4['member_table']} set mb_email = '$mb_email' where mb_id = '$mb_id' "; +sql_query($sql); + +alert("인증메일을 {$mb_email} 메일로 다시 보내 드렸습니다.\\n\\n{$mb_email} 메일을 확인하여 주십시오.", G4_URL); +?> \ No newline at end of file diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php index 6c0a36097..347970dbc 100644 --- a/bbs/register_form_update.php +++ b/bbs/register_form_update.php @@ -321,21 +321,23 @@ if ($w == '') { {$sql_hp_certify} where mb_id = '$mb_id' "; sql_query($sql); +} - // 인증메일 발송 - if ($old_email != $mb_email && $config['cf_use_email_certify']) { - $subject = '['.$config['cf_title'].'] 인증확인 메일입니다.'; - $mb_md5 = md5($mb_id.$mb_email.$member['mb_datetime']); - $certify_href = G4_BBS_URL.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5; +// 인증메일 발송 +if ($config['cf_use_email_certify'] && $old_email != $mb_email) { + $subject = '['.$config['cf_title'].'] 인증확인 메일입니다.'; - ob_start(); - include_once ('./register_form_update_mail3.php'); - $content = ob_get_contents(); - ob_end_clean(); + $mb_datetime = $member['mb_datetime'] ? $member['mb_datetime'] : G4_TIME_YMDHIS; + $mb_md5 = md5($mb_id.$mb_email.$mb_datetime); + $certify_href = G4_BBS_URL.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5; - mailer($admin['mb_nick'], $admin['mb_email'], $mb_email, $subject, $content, 1); - } + ob_start(); + include_once ('./register_form_update_mail3.php'); + $content = ob_get_contents(); + ob_end_clean(); + + mailer($admin['mb_nick'], $admin['mb_email'], $mb_email, $subject, $content, 1); }