From c55a0e4600663d9c09b61c23e8f6070f5b44039b Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 31 Oct 2018 11:38:46 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8B=80=EB=A6=B0=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/content.php | 1 + bbs/view_comment.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bbs/content.php b/bbs/content.php index 343924124..1885d557c 100644 --- a/bbs/content.php +++ b/bbs/content.php @@ -11,6 +11,7 @@ if( !isset($g5['content_table']) ){ // 내용 if($co_seo_title){ $co = get_content_by_field($g5['content_table'], 'content', 'co_seo_title', $co_seo_title); + $co_id = $co['co_id']; } else { $co = get_content_db($co_id); } diff --git a/bbs/view_comment.php b/bbs/view_comment.php index 32c87e219..89e27ac91 100644 --- a/bbs/view_comment.php +++ b/bbs/view_comment.php @@ -48,7 +48,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $ss_name = 'ss_secret_comment_'.$bo_table.'_'.$list[$i]['wr_id']; if(!get_session($ss_name)) - $list[$i]['content'] = '댓글내용 확인'; + $list[$i]['content'] = '댓글내용 확인'; else { $list[$i]['content'] = conv_content($row['wr_content'], 0, 'wr_content'); $list[$i]['content'] = search_font($stx, $list[$i]['content']); @@ -74,7 +74,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) if ($row['mb_id'] === $member['mb_id'] || $is_admin) { set_session('ss_delete_comment_'.$row['wr_id'].'_token', $token = uniqid(time())); - $list[$i]['del_link'] = './delete_comment.php?bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&token='.$token.'&page='.$page.$qstr; + $list[$i]['del_link'] = G5_BBS_URL.'/delete_comment.php?bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&token='.$token.'&page='.$page.$qstr; $list[$i]['is_edit'] = true; $list[$i]['is_del'] = true; } @@ -82,7 +82,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) else { if (!$row['mb_id']) { - $list[$i]['del_link'] = './password.php?w=x&bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&page='.$page.$qstr; + $list[$i]['del_link'] = G5_BBS_URL.'/password.php?w=x&bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&page='.$page.$qstr; $list[$i]['is_del'] = true; } }