diff --git a/adm/admin.head.php b/adm/admin.head.php index 79168accc..7db226a72 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -186,4 +186,4 @@ function imageview(id, w, h) -

\ No newline at end of file +

diff --git a/adm/admin.tail.php b/adm/admin.tail.php index 9a800ba01..b3827e495 100644 --- a/adm/admin.tail.php +++ b/adm/admin.tail.php @@ -40,11 +40,12 @@ $(function(){ }); // 주메뉴 - var $gnb = $('.gnb_1depth > a'); + var $gnb = $(".gnb_1dli > a"); $gnb.mouseover(function() { if(mouse_event) { - $('.gnb_1depth').removeClass('gnb_1depth_over gnb_1depth_on'); - $(this).parent().addClass('gnb_1depth_over gnb_1depth_on'); + $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); + $(this).parent().addClass("gnb_1dli_over gnb_1dli_on"); + menu_rearrange($(this).parent()); hide_menu = false; } }); @@ -53,17 +54,18 @@ $(function(){ hide_menu = true; }); - $('.gnb_1depth li').mouseover(function() { + $(".gnb_2dli").mouseover(function() { hide_menu = false; }); - $('.gnb_1depth li').mouseout(function() { + $(".gnb_2dli").mouseout(function() { hide_menu = true; }); $gnb.focusin(function() { - $('.gnb_1depth').removeClass('gnb_1depth_over gnb_1depth_on'); - $(this).parent().addClass('gnb_1depth_over gnb_1depth_on'); + $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); + $(this).parent().addClass("gnb_1dli_over gnb_1dli_on"); + menu_rearrange($(this).parent()); hide_menu = false; }); @@ -71,29 +73,63 @@ $(function(){ hide_menu = true; }); - $('.gnb_1depth ul a').focusin(function() { - $('.gnb_1depth').removeClass('gnb_1depth_over gnb_1depth_on'); - var $gnb_li = $(this).closest('.gnb_1depth').addClass('gnb_1depth_over gnb_1depth_on'); + $(".gnb_2da").focusin(function() { + $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); + var $gnb_li = $(this).closest(".gnb_1dli").addClass("gnb_1dli_over gnb_1dli_on"); + menu_rearrange($(this).closest(".gnb_1dli")); hide_menu = false; }); - $('.gnb_1depth ul a').focusout(function() { + $(".gnb_2da").focusout(function() { hide_menu = true; }); - $(document).click(function() { + $('#gnb_1dul>li').bind('mouseleave',function(){ + submenu_hide(); + }); + + $(document).bind('click focusin',function(){ if(hide_menu) { - $('.gnb_1depth').removeClass('gnb_1depth_over gnb_1depth_on'); + submenu_hide(); } }); - $(document).focusin(function() { - if(hide_menu) { - $('.gnb_1depth').removeClass('gnb_1depth_over gnb_1depth_on'); - } - }); + function submenu_hide() { + $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); + } + + // 텍스트 리사이즈 카운트 쿠키있으면 실행 + var resize_act; + var text_resize_count = parseInt(get_cookie("ck_font_resize_count")); + if(!isNaN(text_resize_count)) { + if(text_resize_count > 0) + resize_act = "increase"; + else if(text_resize_count < 0) + resize_act = "decrease"; + + if(Math.abs(text_resize_count) > 0) + font_resize2("container", resize_act, Math.abs(text_resize_count)); + } }); +function menu_rearrange(el) +{ + var width = $("#gnb_1dul").width(); + var left = w1 = w2 = 0; + var idx = $(".gnb_1dli").index(el); + + for(i=0; i<=idx; i++) { + w1 = $(".gnb_1dli:eq("+i+")").outerWidth(); + w2 = $(".gnb_2dli > a:eq("+i+")").outerWidth(true); + + if((left + w2) > width) { + el.removeClass("gnb_1dli_over").addClass("gnb_1dli_over2"); + } + + left += w1; + } +} + - + @@ -141,7 +141,7 @@ include_once('./admin.head.php'); - + diff --git a/adm/member_form_update.php b/adm/member_form_update.php index 136110afa..cb7f6cbde 100644 --- a/adm/member_form_update.php +++ b/adm/member_form_update.php @@ -16,7 +16,7 @@ if ($member['mb_password'] != sql_password($_POST['admin_password'])) { $mb_id = escape_trim($_POST['mb_id']); -// 핸드폰번호 체크 +// 휴대폰번호 체크 $mb_hp = $_POST['mb_hp']; if($mb_hp) { $result = exist_mb_hp($mb_hp, $mb_id); diff --git a/adm/member_list.php b/adm/member_list.php index 28afd87fb..6eb982770 100644 --- a/adm/member_list.php +++ b/adm/member_list.php @@ -85,7 +85,7 @@ $colspan = 15; - + diff --git a/bbs/board.php b/bbs/board.php index 436017da0..67c83f706 100644 --- a/bbs/board.php +++ b/bbs/board.php @@ -53,21 +53,18 @@ if (isset($wr_id) && $wr_id) { } // 휴대폰 본인확인을 사용한다면 - if ($config['cf_kcpcert_use'] != '') { + if ($config['cf_kcpcert_use'] != '' && !$is_admin) { // 인증된 회원만 가능 - if ($board['bo_use_cert'] != '') { - if ($is_guest) { - alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글 읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr)); - } + if ($board['bo_use_cert'] != '' && $is_guest) { + alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr)); + } - $hp_certify = substr($member['mb_hp_certify'],0,1) == '0' ? false : true; - if ($hp_certify == false) { - alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글 읽기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G4_URL); - } + if ($board['bo_use_cert'] == 'cert' && hp_certify($member) != 'Y') { + alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G4_URL); + } - if ($member['mb_adult'] != 'Y') { - alert('이 게시판은 휴대폰 성인인증 하신 회원님만 글 읽기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL); - } + if ($board['bo_use_cert'] == 'adult' && $member['mb_adult'] != 'Y') { + alert('이 게시판은 휴대폰 본인확인으로 성인 인증된 회원님만 글읽기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL); } } diff --git a/bbs/write.php b/bbs/write.php index fd717e152..27a7ac8c0 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -176,6 +176,22 @@ if (!empty($group['gr_use_access'])) { } } +// 휴대폰 본인확인을 사용한다면 +if ($config['cf_kcpcert_use'] != '' && !$is_admin) { + // 인증된 회원만 가능 + if ($board['bo_use_cert'] != '' && $is_guest) { + alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글쓰기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', 'login.php?'.$qstr.'&url='.urlencode($_SERVER['PHP_SELF'].'?bo_table='.$bo_table)); + } + + if ($board['bo_use_cert'] == 'cert' && hp_certify($member) != 'Y') { + alert('이 게시판은 휴대폰 본인확인 하신 회원님만 글쓰기가 가능합니다.\\n\\n회원정보 수정에서 휴대폰 본인확인을 해주시기 바랍니다.', G4_URL); + } + + if ($board['bo_use_cert'] == 'adult' && $member['mb_adult'] != 'Y') { + alert('이 게시판은 휴대폰 본인확인으로 성인 인증된 회원님만 글쓰기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL); + } +} + $g4['title'] = $board['bo_subject']." ".$title_msg; $is_notice = false; diff --git a/bbs/write_update.php b/bbs/write_update.php index 3ae685222..2f65e9a4b 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -8,7 +8,7 @@ $msg = array(); $wr_subject = ''; if (isset($_POST['wr_subject'])) { - $wr_subject = trim($_POST['wr_subject']); + $wr_subject = substr(escape_trim($_POST['wr_subject']),0,255); } if ($wr_subject == '') { $msg[] = '제목을 입력하세요.'; @@ -16,12 +16,22 @@ if ($wr_subject == '') { $wr_content = ''; if (isset($_POST['wr_content'])) { - $wr_content = trim($_POST['wr_content']); + $wr_content = escape_trim($_POST['wr_content']); } if ($wr_content == '') { $msg[] = '내용을 입력하세요.'; } +$wr_link1 = ''; +if (isset($_POST['wr_link1'])) { + $wr_link1 = substr(escape_trim($_POST['wr_link1']),0,1000); +} + +$wr_link2 = ''; +if (isset($_POST['wr_link2'])) { + $wr_link2 = substr(escape_trim($_POST['wr_link2']),0,1000); +} + $msg = implode('
', $msg); if ($msg) { alert($msg); diff --git a/css/admin.css b/css/admin.css index 686f4502e..a138f0988 100644 --- a/css/admin.css +++ b/css/admin.css @@ -184,7 +184,7 @@ textarea {width:90%} select {border:1px solid #ced9de} button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer} fieldset {margin-bottom:20px} -legend {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;border:0;overflow:hidden} +legend {position:absolute;font-size:0;line-height:0;border:0;overflow:hidden} fieldset span {display:block;margin-bottom:10px} fieldset p {color:#4c5f67} fieldset button, .fieldset_submit {padding:0 15px;height:23px;border:0;background:#617d46;color:#fff;font-size:1em;line-height:2.1em;vertical-align:middle;cursor:pointer} @@ -514,4 +514,4 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right} #anc_pricecompare_engine dt a {font-weight:bold} #anc_pricecompare_engine dd {margin:0 0 30px} -#anc_pricecompare_engine li {margin:5px 0} \ No newline at end of file +#anc_pricecompare_engine li {margin:5px 0} diff --git a/css/default.css b/css/default.css index 03c579a64..ad455d0e1 100644 --- a/css/default.css +++ b/css/default.css @@ -28,7 +28,7 @@ a:active {color:#000;text-decoration:underline} .msg_sound_only, .sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important} /* 본문 바로가기 */ -#to_content a {z-index:100000;position:absolute;top:0;left:0;font-size:0;line-height:0;overflow:hidden} +#to_content a {z-index:100000;position:absolute;top:0;left:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} #to_content a:focus, #to_content a:active {width:100%;height:75px;background:#21272e;color:#fff;font-size:2em;font-weight:bold;text-align:center;text-decoration:none;line-height:3.3em} diff --git a/head.php b/head.php index ff2ad4bd8..18f66bd95 100644 --- a/head.php +++ b/head.php @@ -132,21 +132,21 @@ if ($config['cf_include_head']) {