From 74b20b40c7f8ec2c139a3eb507cf80a09b4460af Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 6 Mar 2013 12:07:15 +0900 Subject: [PATCH 1/6] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC:=20=EC=95=84?= =?UTF-8?q?=EC=9B=83=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=9E=91=EC=97=85=20?= =?UTF-8?q?=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/gcaptcha/gcaptcha.lib.php | 6 +++--- css/mobile.css | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bbs/gcaptcha/gcaptcha.lib.php b/bbs/gcaptcha/gcaptcha.lib.php index 76e7f94a2..3479e08d4 100644 --- a/bbs/gcaptcha/gcaptcha.lib.php +++ b/bbs/gcaptcha/gcaptcha.lib.php @@ -165,15 +165,15 @@ $gcaptcha->run(); */ // 캡챠이미지는 한개만 사용 가능함. -function captcha_html($class="captcha") +function captcha_html($class='captcha') { global $g4, $gcaptcha; $obj = new gcaptcha(); $obj->run(); - $jpg_file_url = G4_DATA_URL.'/cache/gcaptcha-'.$obj->captcha_filename.'.jpg'; - $wav_file_url = G4_DATA_URL.'/cache/gcaptcha-'.$obj->captcha_filename.'.wav'; + $jpg_file_url = G4_DATA_URL.'/cache/'.$obj->captcha_filename.'.jpg'; + $wav_file_url = G4_DATA_URL.'/cache/'.$obj->captcha_filename.'.wav'; $html .= PHP_EOL.''; $html .= PHP_EOL.''; diff --git a/css/mobile.css b/css/mobile.css index 8d46a6aa5..f88f0db46 100644 --- a/css/mobile.css +++ b/css/mobile.css @@ -41,7 +41,7 @@ pre {overflow-x:scroll;font-size:1.1em} #logo {float:left;padding:0.3em 0;margin-left:1em} #schall {position:absolute;top:0.7em;right:1em} -#schall_stx {padding-left:0.3em;width:100px;height:1.5em;border:1px solid #aaa;border-right:0;background:#f7f7f7;line-height:1.5em} +#schall_stx {padding-left:0.3em;width:100px;height:1.5em;border:1px solid #aaa;border-right:0;background:#f7f7f7;line-height:1.5em;-webkit-appearance:none} #schall_submit {border:1px solid #aaa;border-left:0} #snb {clear:both;border-top:1px solid #e7f1ed;background:#151515;text-align:center} @@ -207,9 +207,10 @@ input.required:focus {border:0;background:#21272e !important;color:#fff;line-hei #ol_before {padding:0 0.5em} #ol_before input[type=text], -#ol_before input[type=password] {display:block;margin-bottom:0.3em;padding:0;width:80%;height:1.8em;line-height:1.8em} +#ol_before input[type=password] {display:block;margin-bottom:0.3em;padding:0;width:80%;height:1.8em;border:1px solid #b8c9c2;background:#f7f7f7;vertical-align:middle;line-height:1.8em;-webkit-appearance:none} #ol_before input[type=submit] {position:absolute;top:0em;right:0.5em;padding:0 !important;width:18%;height:4em;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;cursor:pointer;-webkit-appearance:none} -#ol_svc a {color:#000;text-decoration:none} +#ol_svc {margin:0.5em 0;text-align:right} +#ol_svc a {display:inline-block;margin:0 0 0 0.5em;color:#000;text-decoration:none;vertical-align:middle} #ol_after {} #ol_after_hd {} From 9e7b78adb6ef783d878a0482208a176f57ba3279 Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 6 Mar 2013 13:05:54 +0900 Subject: [PATCH 2/6] =?UTF-8?q?=EB=B9=84=ED=9A=8C=EC=9B=90=EC=9D=B4?= =?UTF-8?q?=EB=A9=B4=EC=84=9C=20=EB=8C=93=EA=B8=80=20=EB=B9=84=ED=9A=8C?= =?UTF-8?q?=EC=9B=90=EC=93=B0=EA=B8=B0=EA=B0=80=20=EB=A7=8C=EC=A1=B1?= =?UTF-8?q?=ED=95=A0=20=EA=B2=BD=EC=9A=B0=EC=97=90=EB=A7=8C=20=EC=BA=A1?= =?UTF-8?q?=EC=B1=A0=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/view_comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/view_comment.php b/bbs/view_comment.php index 1dfc0c6b9..682fc56a9 100644 --- a/bbs/view_comment.php +++ b/bbs/view_comment.php @@ -3,7 +3,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php'); $captcha_html = ""; -if ($is_guest) { +if ($is_guest && $board['bo_comment_level'] < 2) { $captcha_html = captcha_html('_comment'); } From 2da3a514eb5ecc5fb723a8c0b45478d6069874d5 Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 6 Mar 2013 13:06:21 +0900 Subject: [PATCH 3/6] =?UTF-8?q?=EC=BA=A1=EC=B1=A0=EA=B0=80=20=EC=A0=9C?= =?UTF-8?q?=EB=8C=80=EB=A1=9C=20=EB=A7=8C=EB=93=A4=EC=96=B4=20=EC=A7=80?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8D=98=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/gcaptcha/gcaptcha.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/gcaptcha/gcaptcha.lib.php b/bbs/gcaptcha/gcaptcha.lib.php index 3479e08d4..70172c6b0 100644 --- a/bbs/gcaptcha/gcaptcha.lib.php +++ b/bbs/gcaptcha/gcaptcha.lib.php @@ -130,7 +130,7 @@ class gcaptcha function get_captcha_filename() { - return 'gcaptcha-'.abs_ip2long().'_'.$_COOKIE['PHPSESSID']; + return 'gcaptcha-'.abs_ip2long().'_'.session_id(); } function make_wav($captcha_filename) From cde6ada61e7a4eb312df696ff1c08ff2ef073919 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 6 Mar 2013 13:18:34 +0900 Subject: [PATCH 4/6] =?UTF-8?q?=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EB=A6=AC?= =?UTF-8?q?=EC=82=AC=EC=9D=B4=EC=A6=88=EB=A5=BC=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=B0=94=EB=80=8C=EC=96=B4=EB=8F=84=20=EC=9C=A0?= =?UTF-8?q?=EC=A7=80=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/common.js | 25 +++++++++++++++++++++++++ tail.sub.php | 13 +++++++++++++ 2 files changed, 38 insertions(+) diff --git a/js/common.js b/js/common.js index bd744f0a7..1a58db3a4 100644 --- a/js/common.js +++ b/js/common.js @@ -526,6 +526,9 @@ function font_resize(id, act) { var $elements = $("#"+id+" *"); $elements.removeClass("applied"); + var count = parseInt(get_cookie("ck_font_resize_count")); + if(isNaN(count)) + count = 0; $elements.each(function() { if($(this).hasClass("no_text_resize")) @@ -552,6 +555,28 @@ function font_resize(id, act) } } }); + + // 텍스트 리사이즈 회수 쿠키에 기록 + if(act == "increase") + count++; + else + count--; + + set_cookie("ck_font_resize_count", count, 1, g4_cookie_domain); +} + + +/** + * font_resize 함수를 반복 할 때 사용 +**/ +function font_resize2(id, act, loop) +{ + // fotn resize 카운트 초기화 + set_cookie("ck_font_resize_count", 0, 1, g4_cookie_domain); + + for(i=0; i 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) From d7e58b7419570d97634094592b48ca1837ce29d3 Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 6 Mar 2013 13:23:44 +0900 Subject: [PATCH 5/6] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=EC=A4=91=20=EB=A9=94=EC=84=B8=EC=A7=80=20?= =?UTF-8?q?=EC=99=84=EB=A3=8C,=20=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EC=95=84?= =?UTF-8?q?=EC=9B=83=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/admin.css | 1 + css/default.css | 3 ++- css/mobile.css | 4 ++-- head.php | 2 -- head.sub.php | 1 + mobile/head.php | 2 -- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/css/admin.css b/css/admin.css index 5c819e8e8..52dcffc7c 100644 --- a/css/admin.css +++ b/css/admin.css @@ -26,6 +26,7 @@ h1 {margin-bottom:20px;color:#333;font-size:1.5em;font-family:"dotum";letter-spa h2 {font-size:1.2em} /* 화면낭독기 사용자용 */ +#hd_login_msg {position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden} .sound_only {display:inline-block !important;margin:0 !important;padding:0 !important;width:1px !important;height:1px !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} diff --git a/css/default.css b/css/default.css index d4d0a3421..f8377e2de 100644 --- a/css/default.css +++ b/css/default.css @@ -19,6 +19,7 @@ a:focus, a:active {color:#000;text-decoration:underline} /* 화면낭독기 사용자용 */ +#hd_login_msg {position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden} .sound_only {display:inline-block !important;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} @@ -55,7 +56,7 @@ a:active {color:#000;text-decoration:underline} #snb img {margin-right:3px} /* gnb js off */ -#gnb {background:#f0f4f8} +#gnb {margin-top:-1px;background:#f0f4f8} #gnb h2 {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} #gnb_ul {z-index:10;margin:0 auto;padding:0;width:980px} .gnb_1depth {position:relative;margin-left:-1px;zoom:1} diff --git a/css/mobile.css b/css/mobile.css index f88f0db46..82aac4fed 100644 --- a/css/mobile.css +++ b/css/mobile.css @@ -22,6 +22,7 @@ hr {display:none} pre {overflow-x:scroll;font-size:1.1em} /* 화면낭독기 사용자용 */ +#hd_login_msg {position:absolute;top:0;left:0;width:0;height:0;overflow:hidden} .sound_only {display:inline-block;margin:0;padding:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden} /* 본문 바로가기 */ #to_content a {z-index:100000;position:absolute;top:0;left:0;font-size:0;line-height:0;overflow:hidden} @@ -212,8 +213,7 @@ input.required:focus {border:0;background:#21272e !important;color:#fff;line-hei #ol_svc {margin:0.5em 0;text-align:right} #ol_svc a {display:inline-block;margin:0 0 0 0.5em;color:#000;text-decoration:none;vertical-align:middle} -#ol_after {} -#ol_after_hd {} +#ol_after_hd strong {display:inline-block;padding:0 0.5em 0.5em} #ol_after_hd .btn_admin {display:block;padding:0 !important;width:100%;text-align:center} #ol_after_private {margin:0;padding:0;list-style:none;zoom:1} #ol_after_private:after {display:block;visibility:hidden;clear:both;content:""} diff --git a/head.php b/head.php index fecb0f5ca..f76172255 100644 --- a/head.php +++ b/head.php @@ -24,8 +24,6 @@ if ($config['cf_include_head']) { ?>
- 님 로그인 중 -

diff --git a/head.sub.php b/head.sub.php index 3682e8681..9092df604 100644 --- a/head.sub.php +++ b/head.sub.php @@ -68,3 +68,4 @@ var g4_cookie_domain = ""; +님 로그인 중 \ No newline at end of file diff --git a/mobile/head.php b/mobile/head.php index d548ff77d..680500a5f 100644 --- a/mobile/head.php +++ b/mobile/head.php @@ -11,8 +11,6 @@ include_once(G4_LIB_PATH.'/popular.lib.php'); ?>
- - 님 로그인 중

From 4986ab3286005c20530c9d146d751c2a3e07edc7 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 6 Mar 2013 13:27:13 +0900 Subject: [PATCH 6/6] =?UTF-8?q?#335=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20?= =?UTF-8?q?=EC=9C=A0=ED=9A=A8=EC=84=B1=20=EB=B3=80=EA=B2=BD=20=EC=88=9C?= =?UTF-8?q?=EC=84=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/wrest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/wrest.js b/js/wrest.js index 6957d6094..c0070ae4e 100644 --- a/js/wrest.js +++ b/js/wrest.js @@ -22,12 +22,12 @@ function wrestItemname(fld) var text = el.innerHTML.replace(/[<].*[>].*[<]\/+.*[>]/gi, ""); if(text == '') { - return fld.getAttribute("title") ? fld.getAttribute("title") : ( fld.getAttribute("alt") ? fld.getAttribute("alt") : fld.name ); + return fld.getAttribute("title") ? fld.getAttribute("title") : ( fld.getAttribute("placeholder") ? fld.getAttribute("placeholder") : fld.name ); } else { return text; } } else { - return fld.getAttribute("title") ? fld.getAttribute("title") : ( fld.getAttribute("alt") ? fld.getAttribute("alt") : fld.name ); + return fld.getAttribute("title") ? fld.getAttribute("title") : ( fld.getAttribute("placeholder") ? fld.getAttribute("placeholder") : fld.name ); } }