사용자 코드 체크 및 정리
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select mb_id, mb_email, mb_datetime from {$g5[member_table]} where mb_id = '{$mb_id}' ";
|
||||
$sql = " select mb_id, mb_email, mb_datetime from {$g5['member_table']} where mb_id = '{$mb_id}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row[mb_id])
|
||||
alert('존재하는 회원이 아닙니다.', G5_PATH);
|
||||
if (!$row['mb_id'])
|
||||
alert('존재하는 회원이 아닙니다.', G5_URL);
|
||||
|
||||
if ($mb_md5) {
|
||||
$tmp_md5 = md5($row[mb_id].$row[mb_email].$row[mb_datetime]);
|
||||
$tmp_md5 = md5($row['mb_id'].$row['mb_email'].$row['mb_datetime']);
|
||||
if ($mb_md5 == $tmp_md5) {
|
||||
sql_query(" update {$g5[member_table]} set mb_mailling = 0 where mb_id = '{$mb_id}' ");
|
||||
sql_query(" update {$g5['member_table']} set mb_mailling = 0 where mb_id = '{$mb_id}' ");
|
||||
|
||||
alert('정보메일을 보내지 않도록 수신거부 하였습니다.', G5_URL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user