From 81df73bda75ce489e8b3eb5bd863843a9c81a713 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Sat, 19 Oct 2024 10:45:56 +0900 Subject: [PATCH] update --- _common.php | 4 +- list.skin.php | 641 ++++++++++++++++++++++-------------------- password_check.php | 81 +++--- readme.md | 19 ++ view.php | 381 +++++++++++++------------ view_comment.skin.php | 584 +++++++++++++++++++------------------- write.skin.php | 508 +++++++++++++++++---------------- write_update.skin.php | 56 ++-- 8 files changed, 1171 insertions(+), 1103 deletions(-) create mode 100644 readme.md diff --git a/_common.php b/_common.php index 626acc9..48e1738 100644 --- a/_common.php +++ b/_common.php @@ -1,4 +1,2 @@ \ No newline at end of file +include_once '../../../common.php'; diff --git a/list.skin.php b/list.skin.php index 135774d..5518474 100644 --- a/list.skin.php +++ b/list.skin.php @@ -1,310 +1,331 @@ -', 0); - -$gall_size=array(); -$gall_margin=array(); -$gall_w=240; -$gall_h=240; -$gall_mw = 10; -$gall_mh = 10; -if($board['bo_1']){ - $gall_size=explode("|",$board['bo_1']); - $gall_w=trim($gall_size[0]); - if(count($gall_size)>1) - $gall_h=trim($gall_size[1]); - else - $gall_h=trim($gall_size[0]); -} -if($board['bo_2']){ - $gall_margin=explode("|",$board['bo_2']); - $gall_mh=trim($gall_margin[0]); - if(count($gall_margin)>1) - $gall_mw=trim($gall_margin[1]); - else - $gall_mw=trim($gall_margin[0]); -} -?> - - - -
- - - - - - - - - - -
- - - -
- - -
- - - - - - - - - - - - - -
- - - -
- -
- - -
- 게시물 검색 - -
- - - - - - - - -
-
- - -
- -
- close -
-
-
-
-
- - - - - - - - - - +', 0); + +$gall_size = array(); +$gall_margin = array(); +$gall_w = 240; +$gall_h = 240; +$gall_mw = 10; +$gall_mh = 10; +if ($board['bo_1']) { + $gall_size = explode("|", $board['bo_1']); + $gall_w = trim($gall_size[0]); + if (count($gall_size) > 1) + $gall_h = trim($gall_size[1]); + else + $gall_h = trim($gall_size[0]); +} +if ($board['bo_2']) { + $gall_margin = explode("|", $board['bo_2']); + $gall_mh = trim($gall_margin[0]); + if (count($gall_margin) > 1) + $gall_mw = trim($gall_margin[1]); + else + $gall_mw = trim($gall_margin[0]); +} +?> + + + +
+ + + + + + + + + + +
+ + + +
+ + +
+ + + + + + + + + + + + + +
+ + + +
+ +
+ + +
+ 게시물 검색 + +
+ + + + + + + + +
+
+ + +
+ +
+ close +
+
+
+
+
+ + + + + + + + + + diff --git a/password_check.php b/password_check.php index af02bc1..f5cbb44 100644 --- a/password_check.php +++ b/password_check.php @@ -1,40 +1,41 @@ - + '{$view['wr_num']}' and wr_parent=wr_id order by wr_num asc limit 1 "); - - // 수정, 삭제 링크 - $update_href = $delete_href = ''; - // 로그인중이고 자신의 글이라면 또는 관리자라면 비밀번호를 묻지 않고 바로 수정, 삭제 가능 - if (($member['mb_id'] && ($member['mb_id'] === $view['mb_id'])) || $is_admin) { - $update_href = './write.php?w=u&bo_table='.$bo_table.'&wr_id='.$wr_id; - set_session('ss_delete_token', $token = uniqid(time())); - $delete_href ='./delete.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&token='.$token; - }else if (!$view['mb_id']) { // 회원이 쓴 글이 아니라면 - $update_href = './password.php?w=u&bo_table='.$bo_table.'&wr_id='.$view['wr_id'].'&page='.$page.$qstr; - $delete_href = './password.php?w=d&bo_table='.$bo_table.'&wr_id='.$view['wr_id'].'&page='.$page.$qstr; -} -?> - - - -
- - -
-
- - -
-

- 보호글입니다. - 열람을 위해 비밀번호를 입력 해 주세요. -

-
- -
- - - - - - -
- - -
- -
- -
-
- - -
-

- 비밀글입니다. - 열람을 위해 비밀번호를 입력 해 주세요. -

-
- -
- - - - - - -
- - -
- -
- -
-
- -
-

비밀글입니다.

-
- -
-

멤버공개글입니다.

-
- -
 
- - -
-
    -
  • M
  • -
  • D
  • -
-
- - -
- 0) { /* view 인 경우 */ - $result = sql_query(" select * from {$g5['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' order by bf_no "); - for ($k=0;$file = sql_fetch_array($result);$k++) - { - $file_url=G5_DATA_URL."/file/".$file['bo_table']."/".$file['bf_file']; - ?> -

- -
- - -
-
-

- - -

- - - - - - 작성일 - -
- - -
- - - - \ No newline at end of file + '{$view['wr_num']}' and wr_parent=wr_id order by wr_num asc limit 1 "); + +// 수정, 삭제 링크 +$update_href = $delete_href = ''; +// 로그인중이고 자신의 글이라면 또는 관리자라면 비밀번호를 묻지 않고 바로 수정, 삭제 가능 +if (($member['mb_id'] && ($member['mb_id'] === $view['mb_id'])) || $is_admin) { + $update_href = './write.php?w=u&bo_table=' . $bo_table . '&wr_id=' . $wr_id; + set_session('ss_delete_token', $token = uniqid(time())); + $delete_href = './delete.php?bo_table=' . $bo_table . '&wr_id=' . $wr_id . '&token=' . $token; +} else if (!$view['mb_id']) { // 회원이 쓴 글이 아니라면 + $update_href = './password.php?w=u&bo_table=' . $bo_table . '&wr_id=' . $view['wr_id'] . '&page=' . $page . $qstr; + $delete_href = './password.php?w=d&bo_table=' . $bo_table . '&wr_id=' . $view['wr_id'] . '&page=' . $page . $qstr; +} +?> + + + +
+ + +
+
+ + +
+

+ 보호글입니다. + 열람을 위해 비밀번호를 입력 해 주세요. +

+
+ +
+ + + + + + +
+ + +
+ +
+ +
+
+ + +
+

+ 비밀글입니다. + 열람을 위해 비밀번호를 입력 해 주세요. +

+
+ +
+ + + + + + +
+ + +
+ +
+ +
+
+ +
+

비밀글입니다.

+
+ +
+

멤버공개글입니다.

+
+ +
 
+ + +
+
    + +
  • M
  • + +
  • D
  • +
+
+ + +
+ 0) { /* view 인 경우 */ + $result = sql_query(" select * from {$g5['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' order by bf_no "); + for ($k = 0; $file = sql_fetch_array($result); $k++) { + $file_url = G5_DATA_URL . "/file/" . $file['bo_table'] . "/" . $file['bf_file']; + ?> +

+ +
+ + +
+
+

+ + +

+ + + + + + 작성일 + +
+ + +
+ + + + diff --git a/view_comment.skin.php b/view_comment.skin.php index 2617abb..2600d2c 100644 --- a/view_comment.skin.php +++ b/view_comment.skin.php @@ -1,292 +1,292 @@ - - - - -
-

댓글목록

- \]/i", "", $comment); - $cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결 - ?> - -
style="margin-left:px;border-top-color:#e0e0e0"> -
-

님의 댓글의 댓글

- - 작성일 - - -
- - -
-

- 비밀글 - -

- - -
- - - - " id="secret_comment_"> - - -
-
- - -
- - - - - - - - - \ No newline at end of file + + + +
+

댓글목록

+ \]/i", "", $comment); + $cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결 + ?> + +
style="margin-left:px;border-top-color:#e0e0e0" > +
+

님의 댓글의 댓글

+ + 작성일 + + +
+ + +
+

+ 비밀글 + +

+ + +
+ + + + " + id="secret_comment_"> + + +
+
+ + +
+ + + + + + + + + diff --git a/write.skin.php b/write.skin.php index cefe7ed..fe9ad8b 100644 --- a/write.skin.php +++ b/write.skin.php @@ -1,245 +1,263 @@ -', 0); -?> - - -
-
- -
- - - - - - - - - - - - '."\n".''; - } - - if ($is_html) { - if ($is_dhtml_editor) { - $option_hidden .= ''; - } else { - $option .= "\n".''."\n".''; - } - } - - - if ($is_mail) { - $option .= "\n".''."\n".''; - } - - if ($is_secret) { - if ($is_admin || $is_secret==1) { - if($secret_checked)$sec_select="selected"; - $sec .=''; - } else { - $option_hidden .= ''; - } - } - } - - echo $option_hidden; - if($write['wr_secret']=='1') $mem_select="selected"; - if($write['wr_protect']!='') $pro_select="selected"; - if($is_member) {$sec .=''; - $sec .='';} - ?> - -
- -
-
CATEGORY
-
-
-
- -
-
OPTION
-
- - - -
-
-
-
-
-
-
-
SUBJECT
-
-
-
-
CONTENT
-
- - -

이 게시판은 최소 글자 이상, 최대 글자 이하까지 글을 쓰실 수 있습니다.

- - - - -
글자
- -
-
- -
-
FILES
-
- - - - - - - - - -
-
- - - - -
-
-
- - - - - - -    - - class="frm_input " > - -
-
- - -
- -
-
- - 취소 -
-
- - -
- \ No newline at end of file +', 0); +?> + + +
+
+ +
+ + + + + + + + + + + + ' . "\n" . ''; + } + + if ($is_html) { + if ($is_dhtml_editor) { + $option_hidden .= ''; + } else { + $option .= "\n" . '' . "\n" . ''; + } + } + + + if ($is_mail) { + $option .= "\n" . '' . "\n" . ''; + } + + if ($is_secret) { + if ($is_admin || $is_secret == 1) { + if ($secret_checked) + $sec_select = "selected"; + $sec .= ''; + } else { + $option_hidden .= ''; + } + } + } + + echo $option_hidden; + if ($write['wr_secret'] == '1') + $mem_select = "selected"; + if ($write['wr_protect'] != '') + $pro_select = "selected"; + if ($is_member) { + $sec .= ''; + $sec .= ''; + } + ?> + +
+ +
+
CATEGORY
+
+ +
+
+ +
+
OPTION
+
+ + + + +
+
+
+
+
+
+
+
SUBJECT
+
+
+
+
CONTENT
+
+
+ + +

이 게시판은 최소 글자 이상, 최대 + 글자 이하까지 글을 쓰실 수 있습니다.

+ + + + +
글자
+ +
+
+
+ +
+
FILES
+
+ + + + + + + + + + +
+
+ + + + +
+
+
+ + + + + + +    + + + class="frm_input "> + +
+
+ + +
+ +
+
+ + 취소 +
+
+ + +
+ diff --git a/write_update.skin.php b/write_update.skin.php index 41f89a0..4addffa 100644 --- a/write_update.skin.php +++ b/write_update.skin.php @@ -1,31 +1,31 @@ +unset($temp); +if ($w != 'c' && $w != 'cu') { + + $temp_wr_id = $wr_id; + + $sec = ""; + $mem = 0; + $protect = ""; + + if ($set_secret) { + + if ($set_secret == 'secret') { + $sec = "secret"; + } else if ($set_secret == 'member') { + $mem = 1; + } else if ($set_secret == 'protect' && $wr_protect != '') { + $protect = $wr_protect; + } + } + sql_query("update {$write_table} set wr_option='$html,$sec', wr_secret='{$mem}', wr_protect= '{$wr_protect}' where wr_id='{$wr_id}'"); +} + +goto_url(G5_HTTP_BBS_URL . '/board.php?bo_table=' . $bo_table . $qstr);