From 0c79231eb9b0a6f28dafa4569c7311ba807f7bb2 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 11 Jul 2014 13:57:54 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=ED=9A=8C=EC=9B=90=20=EB=B9=84?= =?UTF-8?q?=EB=B0=80=EB=8C=93=EA=B8=80=20=EB=82=B4=EC=9A=A9=ED=99=95?= =?UTF-8?q?=EC=9D=B8=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/password.php | 9 +++++++++ bbs/password_check.php | 13 +++++++++++++ bbs/view_comment.php | 9 +++++++++ mobile/skin/board/basic/style.css | 1 + mobile/skin/board/gallery/style.css | 1 + skin/board/basic/style.css | 1 + skin/board/gallery/style.css | 1 + 7 files changed, 35 insertions(+) diff --git a/bbs/password.php b/bbs/password.php index 6c3d77aad..b29681143 100644 --- a/bbs/password.php +++ b/bbs/password.php @@ -26,6 +26,15 @@ switch ($w) { $return_url = './board.php?bo_table='.$bo_table; } break; + case 'sc' : + // 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감 + if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id'])) + goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id); + else { + $action = './password_check.php'; + $return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id; + } + break; default : alert('w 값이 제대로 넘어오지 않았습니다.'); } diff --git a/bbs/password_check.php b/bbs/password_check.php index c28f059ce..4f2f63e9b 100644 --- a/bbs/password_check.php +++ b/bbs/password_check.php @@ -15,6 +15,19 @@ if ($w == 's') { //set_session("ss_secret", "$bo_table|$wr[wr_num]"); set_session($ss_name, TRUE); +} else if ($w == 'sc') { + $qstr = 'bo_table='.$bo_table.'&sfl='.$sfl.'&stx='.$stx.'&sop='.$sop.'&wr_id='.$wr_id.'&page='.$page; + + $wr = get_write($write_table, $wr_id); + + if (sql_password($wr_password) != $wr['wr_password']) + alert('비밀번호가 틀립니다.'); + + // 세션에 아래 정보를 저장. 하위번호는 비밀번호없이 보아야 하기 때문임. + $ss_name = 'ss_secret_comment_'.$bo_table.'_'.$wr['wr_id']; + //set_session("ss_secret", "$bo_table|$wr[wr_num]"); + set_session($ss_name, TRUE); + } else alert('w 값이 제대로 넘어오지 않았습니다.'); diff --git a/bbs/view_comment.php b/bbs/view_comment.php index 48feadc5a..6eb1c8cd4 100644 --- a/bbs/view_comment.php +++ b/bbs/view_comment.php @@ -49,6 +49,15 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $list[$i]['content1'] = $row['wr_content']; $list[$i]['content'] = conv_content($row['wr_content'], 0, 'wr_content'); $list[$i]['content'] = search_font($stx, $list[$i]['content']); + } else { + $ss_name = 'ss_secret_comment_'.$bo_table.'_'.$list[$i]['wr_id']; + + if(!get_session($ss_name)) + $list[$i]['content'] = '댓글내용 확인'; + else { + $list[$i]['content'] = conv_content($row['wr_content'], 0, 'wr_content'); + $list[$i]['content'] = search_font($stx, $list[$i]['content']); + } } $list[$i]['datetime'] = substr($row['wr_datetime'],2,14); diff --git a/mobile/skin/board/basic/style.css b/mobile/skin/board/basic/style.css index 389ba3b5c..b1d433d3a 100644 --- a/mobile/skin/board/basic/style.css +++ b/mobile/skin/board/basic/style.css @@ -216,6 +216,7 @@ #bo_vc a {color:#000;text-decoration:none} #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc p a {text-decoration:underline} +#bo_vc p a.s_cmt {text-decoration:none} #bo_vc_empty {margin:0;padding:15px !important;text-align:center} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} diff --git a/mobile/skin/board/gallery/style.css b/mobile/skin/board/gallery/style.css index 9fcf341af..4f69e8f65 100644 --- a/mobile/skin/board/gallery/style.css +++ b/mobile/skin/board/gallery/style.css @@ -203,6 +203,7 @@ #bo_vc a {color:#000;text-decoration:none} #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc p a {text-decoration:underline} +#bo_vc p a.s_cmt {text-decoration:none} #bo_vc_empty {margin:0;padding:15px !important;text-align:center} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} diff --git a/skin/board/basic/style.css b/skin/board/basic/style.css index 7b6510eff..29a31a5f4 100644 --- a/skin/board/basic/style.css +++ b/skin/board/basic/style.css @@ -236,6 +236,7 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa #bo_vc a {color:#000;text-decoration:none} #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc p a {text-decoration:underline} +#bo_vc p a.s_cmt {text-decoration:none} #bo_vc_empty {margin:0;padding:20px !important;text-align:center} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} diff --git a/skin/board/gallery/style.css b/skin/board/gallery/style.css index bfb4c3956..43bea9758 100644 --- a/skin/board/gallery/style.css +++ b/skin/board/gallery/style.css @@ -229,6 +229,7 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa #bo_vc a {color:#000;text-decoration:none} #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc p a {text-decoration:underline} +#bo_vc p a.s_cmt {text-decoration:none} #bo_vc_empty {margin:0;padding:20px !important;text-align:center} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1}