모바일에서 인증 체크 후 이동 url 변경

This commit is contained in:
chicpro
2013-11-28 18:07:21 +09:00
parent 3451953034
commit 09bd08edb6
3 changed files with 8 additions and 9 deletions

View File

@ -1917,7 +1917,7 @@ function check_itemuse_write($close=true)
// 구매 본인인증 체크 // 구매 본인인증 체크
function shop_member_cert_check($id, $type='list') function shop_member_cert_check($id, $type)
{ {
global $g5, $member; global $g5, $member;
@ -1961,7 +1961,7 @@ function shop_member_cert_check($id, $type='list')
} }
break; break;
default: case 'list':
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$id' "; $sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$id' ";
$ca = sql_fetch($sql); $ca = sql_fetch($sql);
@ -1981,6 +1981,8 @@ function shop_member_cert_check($id, $type='list')
$msg = '본인확인으로 성인인증된 회원만 이용할 수 있습니다.'; $msg = '본인확인으로 성인인증된 회원만 이용할 수 있습니다.';
} }
break;
default:
break; break;
} }

View File

@ -7,13 +7,13 @@ $sql = " select *
and ca_use = '1' "; and ca_use = '1' ";
$ca = sql_fetch($sql); $ca = sql_fetch($sql);
if (!$ca['ca_id']) if (!$ca['ca_id'])
alert('등록된 분류가 없습니다.'); alert('등록된 분류가 없습니다.', G5_SHOP_URL);
// 본인인증, 성인인증체크 // 본인인증, 성인인증체크
if(!$is_admin) { if(!$is_admin) {
$msg = shop_member_cert_check($ca_id); $msg = shop_member_cert_check($ca_id, 'list');
if($msg) if($msg)
alert($msg); alert($msg, G5_SHOP_URL);
} }
$g5['title'] = $ca['ca_name'].' 상품리스트'; $g5['title'] = $ca['ca_name'].' 상품리스트';
@ -22,9 +22,6 @@ include_once(G5_MSHOP_PATH.'/_head.php');
// 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화) // 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화)
//if ($skin) $ca[ca_skin] = $skin; //if ($skin) $ca[ca_skin] = $skin;
if ($is_admin)
echo '<div class="sct_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/categoryform.php?w=u&amp;ca_id='.$ca_id.'" class="btn_admin">분류 관리</a></div>';
?> ?>
<script> <script>

View File

@ -13,7 +13,7 @@ if (!$ca['ca_id'])
// 본인인증, 성인인증체크 // 본인인증, 성인인증체크
if(!$is_admin) { if(!$is_admin) {
$msg = shop_member_cert_check($ca_id); $msg = shop_member_cert_check($ca_id, 'list');
if($msg) if($msg)
alert($msg); alert($msg);
} }