From 99b93b3da9a1fa7be28daaac40327fe88893f656 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Mon, 21 Oct 2024 11:10:59 +0900 Subject: [PATCH] init --- _common.php | 4 + list.skin.php | 183 +++++++++++++++++ set_order.php | 57 ++++++ set_order_update.php | 17 ++ style.css | 229 +++++++++++++++++++++ upload_file.php | 46 +++++ view.skin.php | 151 ++++++++++++++ view_comment.skin.php | 373 ++++++++++++++++++++++++++++++++++ write.skin.php | 297 +++++++++++++++++++++++++++ write_comment_update.skin.php | 44 ++++ write_update.skin.php | 37 ++++ 11 files changed, 1438 insertions(+) create mode 100644 _common.php create mode 100644 list.skin.php create mode 100644 set_order.php create mode 100644 set_order_update.php create mode 100644 style.css create mode 100644 upload_file.php create mode 100644 view.skin.php create mode 100644 view_comment.skin.php create mode 100644 write.skin.php create mode 100644 write_comment_update.skin.php create mode 100644 write_update.skin.php diff --git a/_common.php b/_common.php new file mode 100644 index 0000000..626acc9 --- /dev/null +++ b/_common.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/list.skin.php b/list.skin.php new file mode 100644 index 0000000..c515653 --- /dev/null +++ b/list.skin.php @@ -0,0 +1,183 @@ + +', 0); ?> + + +', 0); +include_once(G5_LIB_PATH.'/thumbnail.lib.php'); + +$au_type=$board['bo_1']?$board['bo_1']:'오리지널'; +$slide_space=10; +$margin="5px"; +$slide_loop=($board['bo_3']) ? 'true':'false'; +if($board['bo_table_width']==0) $width="100%"; + +$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 desc, wr_num"); + + for($k=0;$row=sql_fetch_array($list_item);$k++){ + $lists[$k]=get_list($row,$board,$board_skin_url); + } +?> +
+

+ +
+ + + + + + + + +
+ + + + + + + + + + + + diff --git a/set_order.php b/set_order.php new file mode 100644 index 0000000..638c85d --- /dev/null +++ b/set_order.php @@ -0,0 +1,57 @@ +', 0); + +if (!$is_admin) + alert('관리자만 접근 가능합니다.'); +if($is_admin){ +?> +
+ + +
+
    + +
  • + + [] + + + + + + + + + +
    + [AU] [] + + + + + +
    + + +
  • + +
+
+ +목록으로 +
+
+ \ No newline at end of file diff --git a/set_order_update.php b/set_order_update.php new file mode 100644 index 0000000..a6bcec2 --- /dev/null +++ b/set_order_update.php @@ -0,0 +1,17 @@ + diff --git a/style.css b/style.css new file mode 100644 index 0000000..7ac5630 --- /dev/null +++ b/style.css @@ -0,0 +1,229 @@ +@charset "utf-8"; + +#body hr.padding {height:0;padding:0;} +#body .fix-layout {max-width:1200px;} + +/*목록*/ + +.board-notice { max-width: 300px; padding: 10px; margin: 30px auto; text-align: center; box-sizing: border-box; } + +#navi_category ul {text-align:center;padding:30px 0;} +#navi_category li {display:inline-block; padding:5px 0;} +#navi_category li:before {display:inline-block; content:"|";padding:0 15px;opacity:.6;} +#navi_category li:first-child:before {display:none;content:"";} +#navi_category #bo_cate_on {font-weight:bold;} + +.board-skin-basic{ +position:relative; +width:100%; +padding:0 60px; +margin:30px auto 0; +box-sizing:border-box; +} + +.swiper-container { width: 100%; text-align:center; } +.swiper-container h2 { padding:45px 0 20px; } /*카테고리 - 분류별 정렬시 사용*/ + +.swiper-container li.bo-list{ + display:inline-flex; + flex-direction:column; + align-items:center; + position:relative; + padding:0; + text-align: center; + } +.swiper-container li a {display:block;} +.swiper-container li a.ui-thumb {opacity:0.8;overflow:hidden;} /*썸네일 기본*/ +.swiper-container li a.ui-thumb:hover{opacity:1;filter:saturate(1);} /*마우스오버*/ +.swiper-container li a.ui-profile {text-align:center;padding:10px 0 5px;} /*썸네일 하단 글씨 영역*/ +.swiper-container li a.ui-profile .name, .swiper-container li a.ui-profile .type {display:block;line-height:130%;word-break:break-all;} +.swiper-container li a.ui-profile .name {font-size:15px;} /*이름*/ +.swiper-container li a.ui-profile .type { display:none !important;opacity:0.7;} /* 구분내용 - 출력을 원하실 경우 display:none !important; 부분을 지워주세요. */ + +.swiper-container li.swiper-slide { + overflow:hidden; + padding:0; + text-align: center; + /* Center slide text vertically */ + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + -webkit-box-align: center; + -ms-flex-align: center; + -webkit-align-items: center; + align-items: center; + } +.swiper-slide a{position:relative;display:block;width:100%;height:100%; font-size: 20px; line-height:150%} +.board-skin-basic .swiper-button-prev, .board-skin-basic .swiper-container-rtl .swiper-button-next, +.board-skin-basic .swiper-button-next, .board-skin-basic .swiper-container-rtl .swiper-button-prev {background-image:none;font-size:44px;line-height:44px;} +.board-skin-basic .swiper-button-prev, .board-skin-basic .swiper-container-rtl .swiper-button-next {left:10px;} +.board-skin-basic .swiper-button-next, .board-skin-basic .swiper-container-rtl .swiper-button-prev {right:10px;} + + +/*글쓰기*/ + +.board-write { max-width:800px; padding: 0 10px; margin:30px auto; } +.board-write > dl {position:relative;} +.board-write > dl > dt { width:100px;position:absolute;line-height:32px;text-align:center; } +.board-write > dl > dd { width:100%;margin-left:0;padding-left:110px;box-sizing:border-box;line-height:32px;} +.board-write input.frm_input.full { width: 100%; display:block;margin:1px 0;} +.board-write .frm_input.small { width:50px;} +.board-write .frm_info{line-height:140%;} +.board-write .write-notice { + padding: 20px 10px 10px; + font-size: 11px; +} + +.board-write .files {position:relative;} +.board-write .files { margin-top: 20px;} +.board-write .files .sub {position:relative;padding-left:65px; box-sizing:border-box;} +.board-write .files span.sub_tit{position:absolute;left:0;display:block;width:65px;} +.board-write .files .frm_info{padding-top:5px;} +.board-write .files .label-right {position:absolute;top:0;right:0;z-index:2;} + + +/*본문*/ + +.board-viewer { + width:100%; + display: block; + position: relative; + box-sizing:border-box; + overflow:hidden; + /*height:auto !important;*/ /*페이지 전체 스크롤 원할 경우 해당 라인 주석처리 해제*/ +} +.board-viewer:after{content:"";display:block;clear:both;} + + +.board-viewer .body_img { + position:relative; + overflow:hidden; /*전신 이미지 스크롤 원할시 hidden 을 auto로 변경*/ + float:left; + height:100%; +} +#links-box-open {display:none;} +.links-box {position:absolute;top:0;width:100%;} +.links-box .ui-links {overflow:hidden;padding:10px;} +.links-box .ui-links li {margin-bottom:2px;font-weight:bold; font-size:14px;} +#rel_link {float:left;} +#rel_link li {text-align:left;} +#rel_link li a:before {content:"◈ ";} +#rel_link li a.txt-default:before {content: "◇ ";} +#clo_link {float:right;} +#clo_link li {text-align:right;} +#clo_link li a:after {content:" ◈";} +#clo_link li a.txt-default:after {content: " ◇";} + +.board-viewer .contents { + display: flex; + flex-direction: column; + justify-content: space-between; + position: relative; + padding: 0 15px; + box-sizing:border-box; + float:right; + width:400px; + max-width:550px; + height:100%; + overflow:auto; +} +.board-viewer .contents::-webkit-scrollbar,.board-viewer .body_img::-webkit-scrollbar {display:none;} /*스크롤바 숨김*/ + +.board-viewer.clear{height:auto !important;} +.board-viewer.clear .body_img, .board-viewer.clear .contents{ + float:none; + width:100% !important; + clear:both;height:auto; +} +.board-viewer.clear .contents { +margin:0 auto 30px; +} + +.board-viewer.clear .body_img {text-align:center;} +.board-viewer .body-img { height:100%; } +.board-viewer .body-img img{ + cursor:pointer; + max-height:100%; /* 전신 세로 최대를 스크린 사이즈에 맞게 설정 */ +} + +.board-comment-view {position:relative;clear:both;overflow:hidden;} +p.add { margin: 10px 0;} +p.add.txt-left {float:left;} +p.add.txt-right {float:right;} +p.add a {display:inline-block;} +#bo_vc_w {clear:both;} +#bo_v_con {padding:20px 0;} +#bo_v_bot { padding: 15px 0;} +#bo_v_bot .ui-btn {margin-bottom:2px;} + +.co-content {text-align:right;} + +.board-comment-list { position: relative;clear:both; } +.board-comment-list .item { + position: relative; + margin-bottom:5px; +} +.board-comment-list strong {display:block;margin:20px 0 5px;} +.board-comment-list .co-content {box-sizing:border-box;padding-right:50px;padding-bottom:5px;} +.board-comment-list .co-content .co-inner {text-align:left;} +.board-comment-list .co-info {position:absolute; width:50px; top:0;right:0;} +.board-comment-list .co-content .ui-btn {padding:0 8px; margin:0 2px;} +.board-comment-form { + position: relative; + padding-right: 80px; +} +.board-comment-form .btn_confirm { + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 80px; +} +.board-comment-form .btn_confirm .ui-btn { + width: 100%; + height: 100%; +} +.board-comment-form p { + margin: 0; + padding: 5px 10px; +} + +#wr_content{display:block;height:100px;} + +@media all and (max-width: 640px) { + .board-category { + display: block; + width: 100%; + box-sizing: border-box; + padding: 0 10px; + } + .board-category select { + width: 100%; + } + + .bo_fx { + display: block; + width: 100%; + box-sizing: border-box; + padding: 20px 10px !important; + } + .bo_fx a { + display: block; + width: 100%; + } +.board-skin-basic .swiper-button-prev, .board-skin-basic .swiper-container-rtl .swiper-button-next {left:0;} +.board-skin-basic .swiper-button-next, .board-skin-basic .swiper-container-rtl .swiper-button-prev {right:0;} +.board-viewer .body_img ,.board-viewer .contents {width:100%;float:none;clear:both;} +.board-viewer .body_img {text-align:center;} +.board-write .files .sub {padding-left:0;} +.board-write .files span.sub_tit{position:relative;} +.board-write .files .label-right {position:relative;} +#links-box-open {display:block;margin:10px auto;opacity:0.7;} +.links-box {position:relative;top:auto;overflow:hidden;display:none;} +.links-box .ui-links li {font-size:13px;} +} \ No newline at end of file diff --git a/upload_file.php b/upload_file.php new file mode 100644 index 0000000..265d80f --- /dev/null +++ b/upload_file.php @@ -0,0 +1,46 @@ + 16) + alert("업로드 불가능한 확장자입니다.","./board.php?bo_table=".$bo_table); //@200927 + }else{ + $files['img']=$timg; + $files['source']=$filename; + $files['size']=$filesize; + + // 아래의 문자열이 들어간 파일은 -x 를 붙여서 웹경로를 알더라도 실행을 하지 못하도록 함 + $filename = preg_replace("/\.(php|phtm|htm|cgi|pl|exe|jsp|asp|inc)/i", "$0-x", $filename); + + $chars_array = array_merge(range(0,9), range('a','z'), range('A','Z')); + shuffle($chars_array); + $shuffle = implode('', $chars_array); + + // 첨부파일 첨부시 첨부파일명에 공백이 포함되어 있으면 일부 PC에서 보이지 않거나 다운로드 되지 않는 현상이 있습니다. (길상여의 님 090925) + $file_name = abs(ip2long($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.replace_filename($filename); + + $dest_file = G5_DATA_PATH.'/file/'.$table.'/'.$file_name; + + @move_uploaded_file($tmp_file, $dest_file); + @chmod($dest_file, G5_FILE_PERMISSION); + + $files['link']=G5_DATA_URL.'/file/'.$table.'/'.$file_name; + $files['name']=$file_name; + if (!get_magic_quotes_gpc()) { + $files['source'] = addslashes($files['source']); + } + + return $files; + } +} +?> diff --git a/view.skin.php b/view.skin.php new file mode 100644 index 0000000..bb5550a --- /dev/null +++ b/view.skin.php @@ -0,0 +1,151 @@ +', 0); + +if($board['bo_table_width']==0) $width="100%"; +$parent_type=$board['bo_1']?$board['bo_1']:'오리지널'; +// 동일캐릭터 wr_9 묶음, au명은 wr_type 사용, 캐릭터명은 wr_subject 사용. + +$allow_body=450; +$content_width=400; +if($board['bo_5']) $conts=explode("|",$board['bo_5']); +if($conts[0]) $allow_body=trim($conts[0]); +if($conts[1]) $content_width=trim($conts[1]); + +$rel=sql_fetch("select wr_id from {$write_table} where wr_9='{$view['wr_9']}' and wr_id!={$view['wr_9']} order by wr_10*1"); +$relate=sql_query("select wr_id, wr_type from {$write_table} where wr_9='{$view['wr_9']}' and wr_id!={$view['wr_9']} order by wr_10*1, wr_reply"); +$or_link = './board.php?bo_table='.$bo_table.'&wr_id='.$view['wr_9'].$qstr; // @211117 +$parent=sql_fetch("select wr_id, wr_type, wr_7 from {$write_table} where wr_id='{$view['wr_9']}' and wr_is_comment=0"); +$cl_no=sql_query("select * from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content='옷장' order by wr_10*1 "); +$cl=array(); +$idx=0; +for($i=0;$clo=sql_fetch_array($cl_no);$i++){ + $cl[$idx]=$clo; + $idx++; +}?> +
+ +
+ +
+ + + + +0){?> +AU/옷장 + +
+
+
+ +
+ + + + +
+ + + +
+
+ + \ No newline at end of file diff --git a/view_comment.skin.php b/view_comment.skin.php new file mode 100644 index 0000000..bc1804a --- /dev/null +++ b/view_comment.skin.php @@ -0,0 +1,373 @@ + +
+ +=$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_"> + + + + + + +
+ + + +
+0){?> + 옷장 + + +
+
+
+ + + +
+ +
+ + m + d + +
+ +
+ + +
+ + " id="secret_comment_"> + + + + + +
+ +

▶ 로그 링크 추가

+

▶ 의상 추가

+ + + +
+=$board['bo_comment_level']){?> + \ No newline at end of file diff --git a/write.skin.php b/write.skin.php new file mode 100644 index 0000000..d07b695 --- /dev/null +++ b/write.skin.php @@ -0,0 +1,297 @@ +', 0); + +$c_name=$board['bo_1'] ? $board['bo_1'] : '오리지널'; + +if($w=='' || $w=='r'){ + $write['wr_width']=0; + $write['wr_height']=0; + $wr_type=''; +} +else $wr_type=$write['wr_type']; + +$category_option = ""; + +if($is_category && $board['bo_category_list']){ + + $categories = explode("|", $board['bo_category_list']); // 구분자가 | 로 되어 있음 + for ($i=0; $i + + +
+
+ +
+ + + + + + + + + + + + + '."\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_mail) { + $option .= "\n".''."\n".''; + } + } + + echo $option_hidden; + ?> + +
+ +
+
옵션
+
+
+ + + +
+
카테고리
+
+
+
+ +
+
이미지
+
+
+
전신 + + "> + + 전신 확인 + + +
style="display:none;">크롭 지점 + X (왼쪽에서부터) px / + Y (위에서부터) px

+ +
+
+ 1){?>
두상 + + "> + + 두상 확인 + + + +
+ + + +
+
+
+
+
캐릭터명
+
+ + +
+
+ + +
+
구분
+
+ " > + > 프로필 AU 목록에 ''로 표기 + +
+
+
+
+
설정 및 내용
+
+ + + +

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

+ + + + +
글자
+ +
+
+
+
+
순서
+
+ " > + +
+
+
+
+ +
+
+ + 취소 +
+
+ + +
+ \ No newline at end of file diff --git a/write_comment_update.skin.php b/write_comment_update.skin.php new file mode 100644 index 0000000..e5c99ca --- /dev/null +++ b/write_comment_update.skin.php @@ -0,0 +1,44 @@ + diff --git a/write_update.skin.php b/write_update.skin.php new file mode 100644 index 0000000..2e2b651 --- /dev/null +++ b/write_update.skin.php @@ -0,0 +1,37 @@ +