From 75ea133f8250ad512446fa488d225b2ab4559efb Mon Sep 17 00:00:00 2001 From: Arcturus Date: Tue, 22 Oct 2024 17:40:53 +0900 Subject: [PATCH] tabsize --- _common.php | 2 - list.skin.php | 185 +++++----- set_order.php | 119 +++--- set_order_update.php | 17 +- view.skin.php | 55 +-- view_comment.skin.php | 664 +++++++++++++++++----------------- write.skin.php | 380 +++++++++---------- write_comment_update.skin.php | 44 ++- write_update.skin.php | 4 +- 9 files changed, 747 insertions(+), 723 deletions(-) diff --git a/_common.php b/_common.php index 626acc9..5fe980a 100644 --- a/_common.php +++ b/_common.php @@ -1,4 +1,2 @@ \ No newline at end of file diff --git a/list.skin.php b/list.skin.php index a45e5cc..e3b70b0 100644 --- a/list.skin.php +++ b/list.skin.php @@ -1,94 +1,105 @@ ', 0); -include_once(G5_LIB_PATH.'/thumbnail.lib.php'); -if($board['bo_table_width']==0) $width="100%"; +if (!defined('_GNUBOARD_')) + exit; // 개별 페이지 접근 불가 +add_stylesheet('', 0); +include_once(G5_LIB_PATH . '/thumbnail.lib.php'); +if ($board['bo_table_width'] == 0) + $width = "100%"; -$cate=array(); -$lists=array(); +$cate = array(); +$lists = array(); ?> -
- -
- -
- -0 && $h==count($cate)) continue; - $list_item=sql_query("select * from {$write_table} where wr_reply='' and wr_is_comment=0 order by wr_10*1, wr_id"); - - for($k=0;$row=sql_fetch_array($list_item);$k++){ - $lists[$k]=get_list($row,$board,$board_skin_url); - } -?> -
-

- -
- + for ($k = 0; $row = sql_fetch_array($list_item); $k++) { + $lists[$k] = get_list($row, $board, $board_skin_url); + } + ?> +
+ +

+
    + 0) { + for ($i = 0; $i < count($lists); $i++) { + // 수정, 삭제 링크 + $update_href = $delete_href = ""; + // 로그인중이고 자신의 글이라면 또는 관리자라면 패스워드를 묻지 않고 바로 수정, 삭제 가능 + if (($member['mb_id'] && ($member['mb_id'] == $lists[$i]['mb_id'])) || $is_admin) { + $update_href = "./write.php?w=u&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr; + $delete_href = "javascript:del('./delete.php?bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . urldecode($qstr) . "');"; + if ($is_admin) { + $delete_href = "javascript:del('./delete.php?bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&token=$token&page=$page" . urldecode($qstr) . "');"; + } + } else if (!$lists[$i]['mb_id']) { // 회원이 쓴 글이 아니라면 + $update_href = "./password.php?w=u&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr; + $delete_href = "./password.php?w=d&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr; + } - -
    - -
    - - - - -
+ if ($is_category) { + if (($lists[$i]['ca_name'] != $cate[$h]) || ($sca && $lists[$i]['ca_name'] != $sca)) + continue; + } + ?> +
  • + " target="_blank" + class="link-banner " + style="cursor:default;" onclick="return false;" > + <?= $lists[$i]['wr_1'] ?> + + +
  • +
    + + + +
    + +
    + + +
    + + 목록 + + 링크 추가 + + + 링크 + 관리 + 관리자 +
    + diff --git a/set_order.php b/set_order.php index 7ad2eab..3f0e7e8 100644 --- a/set_order.php +++ b/set_order.php @@ -1,57 +1,64 @@ -', 0); -if($board['bo_write_level']<=$member['mb_level']){ -?> -
    - - -
    - -- - - - - - - - - - - - - - - - - - - - - - - - - -
    카테고리제목배너링크순서
    - - -
    -
    -
    - -목록으로 -
    -
    -
    - \ No newline at end of file +include_once(G5_PATH . "/head.sub.php"); +add_stylesheet('', 0); +if ($board['bo_write_level'] <= $member['mb_level']) { + ?> +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    카테고리제목배너링크순서
    + + + + + +
    +
    +
    + + 목록으로 +
    +
    +
    + diff --git a/set_order_update.php b/set_order_update.php index e676568..4eb32b5 100644 --- a/set_order_update.php +++ b/set_order_update.php @@ -1,18 +1,17 @@ - +goto_url('./set_order.php?bo_table=' . $bo_table . '&write_table=' . $write_table); diff --git a/view.skin.php b/view.skin.php index 2d34d64..db2f770 100644 --- a/view.skin.php +++ b/view.skin.php @@ -1,31 +1,34 @@ ', 0); - -if($board['bo_table_width']==0) $width="100%";?> +add_stylesheet('', 0); + +if ($board['bo_table_width'] == 0) + $width = "100%"; ?>
    - - - -
    - -
    -
    - -
    - - + + +
    -
    - \ No newline at end of file + +
    +
    + +
    + + +
    +
    + diff --git a/view_comment.skin.php b/view_comment.skin.php index 00123af..ee63ad0 100644 --- a/view_comment.skin.php +++ b/view_comment.skin.php @@ -1,373 +1,365 @@ -
    - -=$board['bo_comment_level']){ -?> -
    -0){?> -로그 - -
    -
    -
    - 0){ - $co_list=array(); - for($k=0;$k'.$co_list[$k][0].''; - echo $c_link; - } - } - ?> -
    - -
    - - m - d - -
    - -
    - - -
    - - " id="secret_comment_"> - - - - - - -
    - - +
    + + = $board['bo_comment_level']) { + ?> +
    + 0) { ?> + 로그 + -0){?> - 옷장 - - -
    -
    -
    - - + $cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결 + ?> +
    +
    +
    + 0) { + $co_list = array(); + for ($k = 0; $k < count($co_links); $k++) { + $co_list[$k] = explode('|', $co_links[$k]); + $c_link = '' . $co_list[$k][0] . ''; + echo $c_link; + } + } + ?> +
    -
    +
    + - + m + d + +
    - if ($member['mb_id']) - { - if ($cl['mb_id'] === $member['mb_id'] || $is_admin) - { - set_session('ss_delete_comment_'.$cl['wr_id'].'_token', $token = uniqid(time())); - $cl['del_link'] = './delete_comment.php?bo_table='.$bo_table.'&comment_id='.$cl['wr_id'].'&token='.$token.'&page='.$page.$qstr; - } - } - else - { - if (!$cl['mb_id']) { - $cl['del_link'] = './password.php?w=x&bo_table='.$bo_table.'&comment_id='.$cl['wr_id'].'&page='.$page.$qstr; - } - } - $c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_cl_w'; +
    - ?> - m - d - -
    - -
    + +
    - -
    - - " id="secret_comment_"> - - - - + " + id="secret_comment_"> + + + -
    - -

    ▶ 로그 링크 추가

    -

    ▶ 의상 추가

    - + + +
    + \ No newline at end of file + save_before = el_id; + } + if (type == 'clo') { + $('#' + el_id + ' #wr_content').hide(); + $('#' + el_id + ' #bf_content, #' + el_id + ' #bf_file, #' + el_id + ' #wr_10').show(); + if (work == 'c') { + $('#' + el_id + ' #wr_content').text('옷장'); + } + } + if (type == 'link') { + if (work == 'c') { + $('#' + el_id + ' #wr_content').text(''); + } + $('#' + el_id + ' #bf_content, #' + el_id + ' #bf_file, #' + el_id + ' #wr_10').hide(); + $('#' + el_id + ' #wr_content').show(); + } + } + + function comment_delete() { + return confirm("이 댓글을 삭제하시겠습니까?"); + } + + // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님) + + + // sns 등록 + $(function () { + $("#bo_vc_send_sns").load( + "/view_comment_write.sns.skin.php?bo_table=", + function () { + save_html = document.getElementById('bo_vc_w').innerHTML; + } + ); + }); + + diff --git a/write.skin.php b/write.skin.php index f17e954..a36021c 100644 --- a/write.skin.php +++ b/write.skin.php @@ -1,24 +1,26 @@ ', 0); +add_stylesheet('', 0); $category_option = ""; -if($is_category && $board['bo_category_list']){ +if ($is_category && $board['bo_category_list']) { - $categories = explode("|", $board['bo_category_list']); // 구분자가 | 로 되어 있음 - for ($i=0; $i @@ -26,191 +28,199 @@ if($is_category && $board['bo_category_list']){
    - -
    - - - - - - - - - - - - - - '."\n".''; - } + + + + + + + + + + + + + + + + '."\n".''; + } - if ($is_html) { - if ($is_dhtml_editor) { - $option_hidden .= ''; - } else { - $option .= "\n".''."\n".''; - } - } + if ($is_html) { + if ($is_dhtml_editor) { + $option_hidden .= ''; + } else { + $option .= "\n" . '' . "\n" . ''; + } + } - if ($is_secret) { - if ($is_admin || $is_secret==1) { - $option .= "\n".''."\n".''; - } else { - $option_hidden .= ''; - } - } + if ($is_secret) { + if ($is_admin || $is_secret == 1) { + $option .= "\n" . '' . "\n" . ''; + } else { + $option_hidden .= ''; + } + } - if ($is_mail) { - $option .= "\n".''."\n".''; - } - } + if ($is_mail) { + $option .= "\n" . '' . "\n" . ''; + } + } - echo $option_hidden; - ?> + echo $option_hidden; + ?> -
    - -
    -
    카테고리
    -
    -
    -
    - -
    -
    제목
    -
    - -
    -
    -
    -
    배너
    -
    - - -
    -
    -
    -
    링크
    -
    - -
    -
    -
    -
    순서
    -
    - " > - -
    -
    -
    -
    +
    + +
    +
    카테고리
    +
    +
    +
    + +
    +
    제목
    +
    +
    + +
    +
    +
    +
    +
    배너
    +
    +
    + + +
    +
    +
    +
    +
    링크
    +
    +
    + +
    +
    +
    +
    +
    순서
    +
    +
    + "> + +
    +
    +
    +
    -
    -
    - - 취소 -
    -
    +
    +
    + + 취소 +
    + - + if (content) { + alert("내용에 금지단어('" + content + "')가 포함되어있습니다"); + if (typeof (ed_wr_content) != "undefined") + ed_wr_content.returnFalse(); + else + f.wr_content.focus(); + return false; + } + + if (document.getElementById("char_count")) { + if (char_min > 0 || char_max > 0) { + var cnt = parseInt(check_byte("wr_content", "char_count")); + if (char_min > 0 && char_min > cnt) { + alert("내용은 " + char_min + "글자 이상 쓰셔야 합니다."); + return false; + } + else if (char_max > 0 && char_max < cnt) { + alert("내용은 " + char_max + "글자 이하로 쓰셔야 합니다."); + return false; + } + } + } + document.getElementById("btn_submit").disabled = "disabled"; + + return true; + } + $(".wr_8").on("change", function () { + if ($(this).val() == 'wr_1') { + $("#crop").css("display", "block"); + } else { + $("#crop").css("display", "none"); + } + }); +
    - \ No newline at end of file + diff --git a/write_comment_update.skin.php b/write_comment_update.skin.php index e5c99ca..d3bd8ff 100644 --- a/write_comment_update.skin.php +++ b/write_comment_update.skin.php @@ -1,44 +1,48 @@ diff --git a/write_update.skin.php b/write_update.skin.php index bd43862..bf0692d 100644 --- a/write_update.skin.php +++ b/write_update.skin.php @@ -1,4 +1,4 @@