diff --git a/css/default.css b/css/default.css index 2886e57b1..2665763a9 100644 --- a/css/default.css +++ b/css/default.css @@ -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} diff --git a/css/mobile.css b/css/mobile.css index 6108abfe8..35f88923a 100644 --- a/css/mobile.css +++ b/css/mobile.css @@ -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} diff --git a/install/install_db.php b/install/install_db.php index ac63769dc..4eec743aa 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -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"); } +fwrite($f, "?>"); + fclose($f); @chmod($file, G5_FILE_PERMISSION); ?> diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 9d9d1baaf..0eda5dc52 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -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) { diff --git a/mobile/shop/item.php b/mobile/shop/item.php index 4984b64b8..c9b074fba 100644 --- a/mobile/shop/item.php +++ b/mobile/shop/item.php @@ -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); } // 오늘 본 상품 저장 시작 diff --git a/mobile/shop/list.php b/mobile/shop/list.php index 3b667f146..e16617b4f 100644 --- a/mobile/shop/list.php +++ b/mobile/shop/list.php @@ -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 '
분류 관리
'; ?>