이메일인증 후 이동 url 오류 수정

This commit is contained in:
chicpro
2013-04-08 09:35:27 +09:00
parent 01d2b5a6db
commit 37ea24f14b
2 changed files with 11 additions and 11 deletions

View File

@ -1,21 +1,21 @@
<?
include_once('./_common.php');
$sql = " select mb_id, mb_email, mb_datetime from {$g4[member_table]} where mb_id = '{$mb_id}' ";
$sql = " select mb_id, mb_email, mb_datetime from {$g4['member_table']} where mb_id = '{$mb_id}' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert('존재하는 회원이 아닙니다.', G4_PATH);
if (!$row['mb_id'])
alert('존재하는 회원이 아닙니다.', G4_URL);
if ($mb_md5)
if ($mb_md5)
{
$tmp_md5 = md5($row[mb_id].$row[mb_email].$row[mb_datetime]);
if ($mb_md5 == $tmp_md5)
$tmp_md5 = md5($row['mb_id'].$row['mb_email'].$row['mb_datetime']);
if ($mb_md5 == $tmp_md5)
{
sql_query(" update {$g4[member_table]} set mb_email_certify = '".G4_TIME_YMDHIS."' where mb_id = '{$mb_id}' ");
sql_query(" update {$g4['member_table']} set mb_email_certify = '".G4_TIME_YMDHIS."' where mb_id = '{$mb_id}' ");
alert('E-mail 인증 처리를 완료 하였습니다.', G4_PATH);
alert('E-mail 인증 처리를 완료 하였습니다.', G4_URL);
}
}
alert('제대로 된 값이 넘어오지 않았습니다.', G4_PATH);
alert('제대로 된 값이 넘어오지 않았습니다.', G4_URL);
?>

View File

@ -24,12 +24,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<b><?=$mb_name?></b> 님의 E-mail 주소가 변경되었습니다.<br><br>
아래의 주소를 클릭하시면 인증이 완료됩니다.<br>
<a href="<?=$certify_href?>"><b><?=$certify_href?></b></a><br><br>
<a href="<?=$certify_href?>" target="_blank"><b><?=$certify_href?></b></a><br><br>
회원님의 성원에 보답하고자 더욱 더 열심히 하겠습니다.<br>
감사합니다.
</p>
<a href="<?=G4_BBS_URL?>/login.php" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center"><?=$config['cf_title']?> 로그인</a>
<a href="<?=G4_BBS_URL?>/login.php" target="_blank" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center"><?=$config['cf_title']?> 로그인</a>
</div>
</div>