From 3ea7b8e03e145687d5bc7608ed71080f3642af5f Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 3 Jul 2017 14:25:59 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=94=EB=A9=98=ED=8A=B8=20=ED=8F=BC=20?= =?UTF-8?q?=EB=B0=8F=20=EA=B2=8C=EC=8B=9C=ED=8C=90=20=ED=8C=A8=EC=8A=A4?= =?UTF-8?q?=EC=9B=8C=EB=93=9C=20action=20url=EC=97=90=20https=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/delete.php | 2 +- bbs/delete_all.php | 2 +- bbs/delete_comment.php | 2 +- bbs/password.php | 24 +++++++++---------- bbs/view_comment.php | 2 ++ bbs/write_comment_update.php | 2 +- skin/board/basic/view_comment.skin.php | 2 +- skin/board/gallery/view_comment.skin.php | 2 +- .../skin/board/basic/view_comment.skin.php | 2 +- .../skin/board/gallery/view_comment.skin.php | 2 +- 10 files changed, 22 insertions(+), 20 deletions(-) diff --git a/bbs/delete.php b/bbs/delete.php index fe9f369be..aafa8e889 100644 --- a/bbs/delete.php +++ b/bbs/delete.php @@ -134,5 +134,5 @@ if ($count_write > 0 || $count_comment > 0) delete_cache_latest($bo_table); -goto_url('./board.php?bo_table='.$bo_table.'&page='.$page.$qstr); +goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&page='.$page.$qstr); ?> diff --git a/bbs/delete_all.php b/bbs/delete_all.php index 4587b596a..f7c6179bf 100644 --- a/bbs/delete_all.php +++ b/bbs/delete_all.php @@ -156,5 +156,5 @@ if ($count_write > 0 || $count_comment > 0) delete_cache_latest($bo_table); -goto_url('./board.php?bo_table='.$bo_table.'&page='.$page.$qstr); +goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&page='.$page.$qstr); ?> diff --git a/bbs/delete_comment.php b/bbs/delete_comment.php index c9e9bff24..24c482c1e 100644 --- a/bbs/delete_comment.php +++ b/bbs/delete_comment.php @@ -84,5 +84,5 @@ sql_query(" delete from {$g5['board_new_table']} where bo_table = '{$bo_table}' delete_cache_latest($bo_table); -goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$write['wr_parent'].'&page='.$page. $qstr); +goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$write['wr_parent'].'&page='.$page. $qstr); ?> diff --git a/bbs/password.php b/bbs/password.php index 072a98dbd..e5e0a4d4e 100644 --- a/bbs/password.php +++ b/bbs/password.php @@ -5,36 +5,36 @@ $g5['title'] = '비밀번호 입력'; switch ($w) { case 'u' : - $action = './write.php'; - $return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id; + $action = G5_HTTP_BBS_URL.'/write.php'; + $return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id; break; case 'd' : set_session('ss_delete_token', $token = uniqid(time())); - $action = './delete.php?token='.$token; - $return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id; + $action = https_url(G5_BBS_DIR).'/delete.php?token='.$token; + $return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id; break; case 'x' : set_session('ss_delete_comment_'.$comment_id.'_token', $token = uniqid(time())); - $action = './delete_comment.php?token='.$token; + $action = https_url(G5_BBS_DIR).'/delete_comment.php?token='.$token; $row = sql_fetch(" select wr_parent from $write_table where wr_id = '$comment_id' "); - $return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$row['wr_parent']; + $return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$row['wr_parent']; break; case 's' : // 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감 if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id'])) - goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id); + goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id); else { - $action = './password_check.php'; - $return_url = './board.php?bo_table='.$bo_table; + $action = https_url(G5_BBS_DIR).'/password_check.php'; + $return_url = G5_HTTP_BBS_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); + goto_url(G5_HTTP_BBS_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; + $action = https_url(G5_BBS_DIR).'/password_check.php'; + $return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id; } break; default : diff --git a/bbs/view_comment.php b/bbs/view_comment.php index d0294b4f5..472333d07 100644 --- a/bbs/view_comment.php +++ b/bbs/view_comment.php @@ -118,6 +118,8 @@ else $comment_max = (int)$board['bo_comment_max']; } +$comment_action_url = https_url(G5_BBS_DIR)."/write_comment_update.php"; + include_once($board_skin_path.'/view_comment.skin.php'); if (!$member['mb_id']) // 비회원일 경우에만 diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php index e9a1182aa..129721d28 100644 --- a/bbs/write_comment_update.php +++ b/bbs/write_comment_update.php @@ -337,5 +337,5 @@ else if ($w == 'cu') // 댓글 수정 delete_cache_latest($bo_table); -goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&'.$qstr.'&#c_'.$comment_id); +goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&'.$qstr.'&#c_'.$comment_id); ?> diff --git a/skin/board/basic/view_comment.skin.php b/skin/board/basic/view_comment.skin.php index 0afc0f6d6..ad770b070 100644 --- a/skin/board/basic/view_comment.skin.php +++ b/skin/board/basic/view_comment.skin.php @@ -91,7 +91,7 @@ var char_max = parseInt(); // 최대