From cefead10adca53c88aee96bf713fe351dfb843b7 Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 4 Mar 2013 10:31:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=EA=B0=A4?= =?UTF-8?q?=EB=9F=AC=EB=A6=AC=EC=8A=A4=ED=82=A8=20=EC=8B=9C=EC=9E=91=20=20?= =?UTF-8?q?=EB=B0=8F=20=EA=B8=B0=EB=B3=B8=EC=8A=A4=ED=82=A8=20caption=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 6 +- lib/common.lib.php | 2 +- skin/board/basic/list.skin.php | 1 + skin/board/gallery/img/icon_file.gif | Bin 0 -> 107 bytes skin/board/gallery/img/icon_hot.gif | Bin 0 -> 97 bytes skin/board/gallery/img/icon_img.gif | Bin 0 -> 145 bytes skin/board/gallery/img/icon_link.gif | Bin 0 -> 104 bytes skin/board/gallery/img/icon_mobile.gif | Bin 0 -> 62 bytes skin/board/gallery/img/icon_movie.gif | Bin 0 -> 110 bytes skin/board/gallery/img/icon_new.gif | Bin 0 -> 71 bytes skin/board/gallery/img/icon_reply.gif | Bin 0 -> 77 bytes skin/board/gallery/img/icon_secret.gif | Bin 0 -> 97 bytes skin/board/gallery/img/icon_sound.gif | Bin 0 -> 113 bytes skin/board/gallery/list.skin.php | 236 ++++++++++++++++++ skin/board/gallery/view.skin.php | 221 +++++++++++++++++ skin/board/gallery/view_comment.skin.php | 292 +++++++++++++++++++++++ skin/board/gallery/write.skin.php | 234 ++++++++++++++++++ 17 files changed, 988 insertions(+), 4 deletions(-) create mode 100644 skin/board/gallery/img/icon_file.gif create mode 100644 skin/board/gallery/img/icon_hot.gif create mode 100644 skin/board/gallery/img/icon_img.gif create mode 100644 skin/board/gallery/img/icon_link.gif create mode 100644 skin/board/gallery/img/icon_mobile.gif create mode 100644 skin/board/gallery/img/icon_movie.gif create mode 100644 skin/board/gallery/img/icon_new.gif create mode 100644 skin/board/gallery/img/icon_reply.gif create mode 100644 skin/board/gallery/img/icon_secret.gif create mode 100644 skin/board/gallery/img/icon_sound.gif create mode 100644 skin/board/gallery/list.skin.php create mode 100644 skin/board/gallery/view.skin.php create mode 100644 skin/board/gallery/view_comment.skin.php create mode 100644 skin/board/gallery/write.skin.php diff --git a/css/default.css b/css/default.css index 2da8878a5..70a483bd3 100644 --- a/css/default.css +++ b/css/default.css @@ -160,7 +160,7 @@ a:active {color:#000;text-decoration:underline} /* 기본테이블 */ .basic_tbl {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0} -.basic_tbl caption {padding:0 0 10px;color:#777;text-align:left} +.basic_tbl caption {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden} .basic_tbl thead th {padding:12px 0 8px;background:#565e60;color:#fff} .basic_tbl thead a {color:#fff} .basic_tbl thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */ @@ -217,7 +217,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff; .new_win {} .new_win h1 {margin-bottom:20px;padding:0 20px;height:60px;border-top:3px solid #4e5d60;border-bottom:1px solid #e9e9e9;background:#fff;font-size:1.2em;line-height:5em} .new_win table {margin:0 auto 20px !important;width:93% !important;background:#fff !important} -.new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #455255;background:#4e5d60;list-style:none;zoom:1} +.new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #455255;background:#484848;list-style:none;zoom:1} .new_win_ul:after {display:block;visibility:hidden;clear:both;content:""} .new_win_ul li {float:left;margin-left:-1px} .new_win_ul a {display:block;padding:10px 10px 8px;border-right:1px solid #455255;border-left:1px solid #455255;color:#fff;font-family:"dotum";font-weight:bold;text-decoration:none} @@ -319,7 +319,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff; .memo_view_li {position:relative;padding:5px 0} .memo_view_subj {display:inline-block;width:65px} #memo_view_ul a {} -#memo_view section p {min-height:150px;height:auto !important;height:150px} +#memo_view section p {padding:10px;min-height:150px;height:auto !important;height:150px;background:#fff} #memo_write textarea {height:100px} diff --git a/lib/common.lib.php b/lib/common.lib.php index d7e16f719..80cb4d5d7 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -350,7 +350,7 @@ function get_list($write_row, $board, $skin_url, $subject_len=40) $list['comment_cnt'] = ''; if ($list['wr_comment']) - $list['comment_cnt'] = "댓글".$list['wr_comment'].""; + $list['comment_cnt'] = "".$list['wr_comment'].""; // 당일인 경우 시간으로 표시함 $list['datetime'] = substr($list['wr_datetime'],0,10); diff --git a/skin/board/basic/list.skin.php b/skin/board/basic/list.skin.php index 7f0e0a120..66e2b5c4a 100644 --- a/skin/board/basic/list.skin.php +++ b/skin/board/basic/list.skin.php @@ -49,6 +49,7 @@ if ($is_nogood) $colspan++; + diff --git a/skin/board/gallery/img/icon_file.gif b/skin/board/gallery/img/icon_file.gif new file mode 100644 index 0000000000000000000000000000000000000000..cca47f566ac0db655fb2ab0f56628b64958e48b2 GIT binary patch literal 107 zcmZ?wbhEHb-Wqsc#^P~2x#@rVooH@5wHB9i@BozKb;P9uI^*c|UyXO5@>VyLmgEat< Cr6(f* literal 0 HcmV?d00001 diff --git a/skin/board/gallery/img/icon_hot.gif b/skin/board/gallery/img/icon_hot.gif new file mode 100644 index 0000000000000000000000000000000000000000..c95b839aeef0c1e26a4bab4ea50cd6d3f1969d7f GIT binary patch literal 97 zcmZ?wbhEHbzHen|7VvwFnzUPlarEA ZqW~YXyUO~T+#YkUoJ%V_>ib05Q5F AasU7T literal 0 HcmV?d00001 diff --git a/skin/board/gallery/img/icon_mobile.gif b/skin/board/gallery/img/icon_mobile.gif new file mode 100644 index 0000000000000000000000000000000000000000..ad934d23c440c83db0c4589596465cb087353e01 GIT binary patch literal 62 zcmZ?wbhEHbZ% literal 0 HcmV?d00001 diff --git a/skin/board/gallery/img/icon_reply.gif b/skin/board/gallery/img/icon_reply.gif new file mode 100644 index 0000000000000000000000000000000000000000..91c135977b4f445a90c849310dc80efde1983830 GIT binary patch literal 77 zcmZ?wbhEHb&!1E4^4&ClEzh)PmWxV3{9A~!gB2-%RL5bHcgg3Zp^!+W)H2^A_AxQuL literal 0 HcmV?d00001 diff --git a/skin/board/gallery/img/icon_sound.gif b/skin/board/gallery/img/icon_sound.gif new file mode 100644 index 0000000000000000000000000000000000000000..c5188318a5cdc394b984125c0ddd376c5f57bbe4 GIT binary patch literal 113 zcmZ?wbhEHbE1CJY$zMikVi`-#gIi|DbmsXBWf6U5szE@->A`0*`&<;b@XASRrB8=E6~=S>Pbm I%fes{0AXt-SpWb4 literal 0 HcmV?d00001 diff --git a/skin/board/gallery/list.skin.php b/skin/board/gallery/list.skin.php new file mode 100644 index 000000000..39c16fd90 --- /dev/null +++ b/skin/board/gallery/list.skin.php @@ -0,0 +1,236 @@ + + +

+ + +
+ + +
+ + + + +
+
+ Total + 페이지 +
+ + + + +
+ +
+ + + + + + + +
    + +
  • + +
+ + +
목록
번호
+ + + + + + + + + + + + + + + "> + + + + + + + + + + + '; } ?> + +
번호제목글쓴이날짜조회추천비추천
+ 공지'; + else if ($wr_id == $list[$i]['wr_id']) + echo "열람중"; + else + echo $list[$i]['num']; + ?> + + + + + + + + 댓글 + + + '; } + + if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new']; + if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot']; + if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file']; + if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link']; + if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret']; + + ?> +
게시물이 없습니다.
+ + +
+ + + +
+ + + + + + + + + + + +
+ 게시물 검색 + +
+ + + + + + +
+
+ + + + + diff --git a/skin/board/gallery/view.skin.php b/skin/board/gallery/view.skin.php new file mode 100644 index 000000000..bbc215eb8 --- /dev/null +++ b/skin/board/gallery/view.skin.php @@ -0,0 +1,221 @@ + + +
+ +

+ + +

+ +

+ +
+

게시물 정보

+ 작성자 + 작성일 + 조회 + 댓글 +
+ + + + +
+

첨부파일

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

본문

+
+ + \n"; + + for ($i=0; $i<=count($view['file']); $i++) { + if ($view['file'][$i]['view']) { + //echo $view['file'][$i]['view']; + echo get_view_thumbnail($view['file'][$i]['view']); + } + } + + echo "
\n"; + } + ?> + +
+ + + +

+ + +
+ 스크랩 + 추천 + 비추천 +
+ +
+ 추천 + 비추천 +
+ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/skin/board/gallery/view_comment.skin.php b/skin/board/gallery/view_comment.skin.php new file mode 100644 index 000000000..d0f1874d3 --- /dev/null +++ b/skin/board/gallery/view_comment.skin.php @@ -0,0 +1,292 @@ + + + + + +
+

댓글목록

+ \]/i", "", $str); + // FLASH XSS 공격에 의해 주석 처리 - 110406 + //$str = preg_replace("/\[\\]/i", "", $str); + $str = preg_replace("/\[\]*\>[^\s]*\<\/a\>\]/i", "", $str); + ?> +
style="margin-left:px;border-top-color:#e0e0e0"> +
+

님의 댓글

+ + 댓글의 댓글 + + 아이피 + + + 작성일 + +
+ + +

+ ";?> + +

+ + + + + "> + + + + + +
+ +

등록된 댓글이 없습니다.

+ +
+ + + + + + diff --git a/skin/board/gallery/write.skin.php b/skin/board/gallery/write.skin.php new file mode 100644 index 000000000..c61d351a5 --- /dev/null +++ b/skin/board/gallery/write.skin.php @@ -0,0 +1,234 @@ + + +

+ +
+ + + + + + + + + + +'.PHP_EOL.''; + } + + if ($is_html) { + if ($is_dhtml_editor) { + $option_hidden .= ''; + } else { + $option .= PHP_EOL.''.PHP_EOL.''; + } + } + + if ($is_secret) { + if ($is_admin || $is_secret==1) { + $option .= PHP_EOL.''.PHP_EOL.''; + } else { + $option_hidden .= ''; + } + } + + if ($is_mail) { + $option .= PHP_EOL.''.PHP_EOL.''; + } +} + +echo $option_hidden; +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
>
옵션
+ +
">
파일 # + + + + + + + +
자동등록방지 + +
+ +
+ + 취소 +
+
+ +