Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -22,7 +22,7 @@ a:link, a:visited {color:#000;text-decoration:none}
|
||||
a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
||||
|
||||
/* 상단 레이아웃 */
|
||||
#hd {z-index:10;position:relative;border-top:3px solid #151515;background:#fff}
|
||||
#hd {z-index:10;position:relative;min-width:980px;border-top:3px solid #151515;background:#fff}
|
||||
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#hd_wrapper {position:relative;margin:0 auto;width:980px}
|
||||
|
||||
@ -86,7 +86,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
||||
.ts_up2 {font-size:1.3em !important}
|
||||
|
||||
/* 하단 레이아웃 */
|
||||
#ft {background:#484848}
|
||||
#ft {min-width:980px;background:#484848}
|
||||
#ft h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
|
||||
#ft_catch {position:relative;margin:0 auto;padding:20px 0;width:980px;text-align:center}
|
||||
@ -174,7 +174,6 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.tbl_head01 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
||||
.tbl_head01 td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
|
||||
.tbl_head01 a {}
|
||||
.tbl_head01 .empty_table {padding:50px 0;text-align:center}
|
||||
|
||||
.tbl_head02 {margin:0 0 10px}
|
||||
.tbl_head02 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||
@ -185,7 +184,6 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.tbl_head02 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
||||
.tbl_head02 td {padding:5px 3px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.4em;word-break:break-all}
|
||||
.tbl_head02 a {}
|
||||
.tbl_head02 .empty_table {padding:50px 0;text-align:center}
|
||||
|
||||
/* 폼 테이블 */
|
||||
.tbl_frm01 {margin:0 0 20px}
|
||||
@ -205,6 +203,10 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
|
||||
fieldset .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
|
||||
|
||||
/* 자료 없는 목록 */
|
||||
.empty_table {padding:50px 0 !important;text-align:center}
|
||||
.empty_list {padding:20px 0 !important;text-align:center}
|
||||
|
||||
/* 필수입력 */
|
||||
.required, textarea.required {background:url('../img/wrest.gif') #f7f7f7 top right no-repeat !important}
|
||||
|
||||
|
||||
@ -144,7 +144,6 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.tbl_head01 tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
.tbl_head01 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
||||
.tbl_head01 td {padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
|
||||
.tbl_head01 .empty_table {padding:10px 0;text-align:center}
|
||||
|
||||
.tbl_head02 {}
|
||||
.tbl_head02 caption {padding:0 0 10px;color:#777;text-align:left}
|
||||
@ -155,7 +154,6 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.tbl_head02 tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
.tbl_head02 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
||||
.tbl_head02 td {padding:5px 3px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.4em;word-break:break-all}
|
||||
.tbl_head02 .empty_table {padding:10px 0;text-align:center}
|
||||
|
||||
/* 폼 테이블 */
|
||||
.tbl_frm01 {}
|
||||
@ -168,6 +166,10 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.tbl_frm01 .frm_file {display:block;margin-bottom:5px;width:100%}
|
||||
.tbl_frm01 .frm_info {display:block;padding:5px 0 0;color:#666;line-height:1.3em}
|
||||
|
||||
/* 자료 없는 목록 */
|
||||
.empty_table {padding:20px 0 !important;text-align:center}
|
||||
.empty_list {padding:20px 0 !important;text-align:center}
|
||||
|
||||
/* 필수입력 */
|
||||
.required, textarea.required {background:url('../img/wrest.gif') #f7f7f7 top right no-repeat !important}
|
||||
|
||||
|
||||
@ -470,10 +470,9 @@ fwrite($f, "\$g5['autosave_table'] = G5_TABLE_PREFIX.'autosave'; // 게시글
|
||||
fwrite($f, "\$g5['cert_history_table'] = G5_TABLE_PREFIX.'cert_history'; // 인증내역 테이블\n");
|
||||
fwrite($f, "\$g5['qa_config_table'] = G5_TABLE_PREFIX.'qa_config'; // 1:1문의 설정테이블\n");
|
||||
fwrite($f, "\$g5['qa_content_table'] = G5_TABLE_PREFIX.'qa_content'; // 1:1문의 테이블\n");
|
||||
fwrite($f, "?>");
|
||||
|
||||
if($g5_shop_install) {
|
||||
fwrite($f, "\n\n<?php\n");
|
||||
fwrite($f, "\n");
|
||||
fwrite($f, "define('G5_USE_SHOP', true);\n\n");
|
||||
fwrite($f, "define('G5_SHOP_TABLE_PREFIX', '{$g5_shop_prefix}');\n\n");
|
||||
fwrite($f, "\$g5['g5_shop_default_table'] = G5_SHOP_TABLE_PREFIX.'default'; // 쇼핑몰설정 테이블\n");
|
||||
@ -499,9 +498,10 @@ if($g5_shop_install) {
|
||||
fwrite($f, "\$g5['g5_shop_sendcost_table'] = G5_SHOP_TABLE_PREFIX.'sendcost'; // 추가배송비 테이블\n");
|
||||
fwrite($f, "\$g5['g5_shop_personalpay_table'] = G5_SHOP_TABLE_PREFIX.'personalpay'; // 개인결제 정보 테이블\n");
|
||||
fwrite($f, "\$g5['g5_shop_order_address_table'] = G5_SHOP_TABLE_PREFIX.'order_address'; // 배송지이력 정보 테이블\n");
|
||||
fwrite($f, "?>");
|
||||
}
|
||||
|
||||
fwrite($f, "?>");
|
||||
|
||||
fclose($f);
|
||||
@chmod($file, G5_FILE_PERMISSION);
|
||||
?>
|
||||
|
||||
@ -1916,6 +1916,84 @@ function check_itemuse_write($close=true)
|
||||
}
|
||||
|
||||
|
||||
// 구매 본인인증 체크
|
||||
function shop_member_cert_check($id, $type)
|
||||
{
|
||||
global $g5, $member;
|
||||
|
||||
$msg = '';
|
||||
|
||||
switch($type)
|
||||
{
|
||||
case 'item':
|
||||
$sql = " select ca_id, ca_id2, ca_id3 from {$g5['g5_shop_item_table']} where it_id = '$id' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
$seq = '';
|
||||
for($i=0; $i<3; $i++) {
|
||||
$ca_id = $it['ca_id'.$seq];
|
||||
|
||||
if(!$ca_id)
|
||||
continue;
|
||||
|
||||
$sql = " select ca_cert_use, ca_adult_use from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
// 본인확인체크
|
||||
if($row['ca_cert_use'] && !$member['mb_certify']) {
|
||||
if($member['mb_id'])
|
||||
$msg = '회원정보 수정에서 본인확인 후 이용해 주십시오.';
|
||||
else
|
||||
$msg = '본인확인된 로그인 회원만 이용할 수 있습니다.';
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
// 성인인증체크
|
||||
if($row['ca_adult_use'] && !$member['mb_adult']) {
|
||||
if($member['mb_id'])
|
||||
$msg = '본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 본인확인을 해주십시오.';
|
||||
else
|
||||
$msg = '본인확인으로 성인인증된 회원만 이용할 수 있습니다.';
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if($i == 0)
|
||||
$seq = 1;
|
||||
$seq++;
|
||||
}
|
||||
|
||||
break;
|
||||
case 'list':
|
||||
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$id' ";
|
||||
$ca = sql_fetch($sql);
|
||||
|
||||
// 본인확인체크
|
||||
if($ca['ca_cert_use'] && !$member['mb_certify']) {
|
||||
if($member['mb_id'])
|
||||
$msg = '회원정보 수정에서 본인확인 후 이용해 주십시오.';
|
||||
else
|
||||
$msg = '본인확인된 로그인 회원만 이용할 수 있습니다.';
|
||||
}
|
||||
|
||||
// 성인인증체크
|
||||
if($ca['ca_adult_use'] && !$member['mb_adult']) {
|
||||
if($member['mb_id'])
|
||||
$msg = '본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 본인확인을 해주십시오.';
|
||||
else
|
||||
$msg = '본인확인으로 성인인증된 회원만 이용할 수 있습니다.';
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return $msg;
|
||||
}
|
||||
|
||||
|
||||
// 사용후기의 확인된 건수를 상품테이블에 저장합니다.
|
||||
function update_use_cnt($it_id)
|
||||
{
|
||||
|
||||
@ -26,22 +26,11 @@ $sql = " select ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use
|
||||
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);
|
||||
}
|
||||
|
||||
// 오늘 본 상품 저장 시작
|
||||
|
||||
@ -7,24 +7,13 @@ $sql = " select *
|
||||
and ca_use = '1' ";
|
||||
$ca = sql_fetch($sql);
|
||||
if (!$ca['ca_id'])
|
||||
alert('등록된 분류가 없습니다.');
|
||||
alert('등록된 분류가 없습니다.', G5_SHOP_URL);
|
||||
|
||||
// 본인인증, 성인인증체크
|
||||
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, 'list');
|
||||
if($msg)
|
||||
alert($msg, G5_SHOP_URL);
|
||||
}
|
||||
|
||||
$g5['title'] = $ca['ca_name'].' 상품리스트';
|
||||
@ -33,9 +22,6 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
// 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화)
|
||||
//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&ca_id='.$ca_id.'" class="btn_admin">분류 관리</a></div>';
|
||||
?>
|
||||
|
||||
<script>
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
// 오늘 본 상품 저장 시작
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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, 'list');
|
||||
if($msg)
|
||||
alert($msg);
|
||||
}
|
||||
|
||||
$g5['title'] = $ca['ca_name'].' 상품리스트';
|
||||
|
||||
Reference in New Issue
Block a user