본인 성인인증 체크 함수 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);
}
// 오늘 본 상품 저장 시작

View File

@ -11,6 +11,13 @@ $it = sql_fetch($sql);
if(!$it['it_id'])
alert('상품정보가 존재하지 않습니다.', G5_SHOP_URL);
// 본인인증, 성인인증체크
if(!$is_admin) {
$msg = shop_member_cert_check($it_id, 'item');
if($msg)
alert($msg, G5_SHOP_URL);
}
if(is_soldout($it['it_id']))
alert('상품의 재고가 부족하여 구매할 수 없습니다.', G5_SHOP_URL);

View File

@ -11,22 +11,11 @@ $ca = sql_fetch($sql);
if (!$ca['ca_id'])
alert('등록된 분류가 없습니다.');
// 본인인증, 성인인증체크
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($ca_id);
if($msg)
alert($msg);
}
$g5['title'] = $ca['ca_name'].' 상품리스트';