본인 성인인증 체크 함수 shop_member_cert_check 추가

This commit is contained in:
chicpro
2013-11-28 17:39:44 +09:00
parent 603262c47a
commit 3451953034
6 changed files with 95 additions and 60 deletions

View File

@ -24,22 +24,11 @@ if (!($it['ca_use'] && $it['it_use'])) {
$sql = " select ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use from {$g5['g5_shop_category_table']} where ca_id = '{$it['ca_id']}' ";
$ca = sql_fetch($sql);
// 본인인증, 성인인증체크
if(!$is_admin) {
// 본인확인체크
if($ca['ca_cert_use'] && !$member['mb_certify']) {
if($is_member)
alert('회원정보 수정에서 본인확인 후 이용해 주십시오.');
else
alert('본인확인된 로그인 회원만 이용할 수 있습니다.');
}
// 성인인증체크
if($ca['ca_adult_use'] && !$member['mb_adult']) {
if($is_member)
alert('본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 본인확인을 해주십시오.');
else
alert('본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
}
$msg = shop_member_cert_check($it_id, 'item');
if($msg)
alert($msg);
}
// 오늘 본 상품 저장 시작