ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/skin/board/co_love/ |
Upload File : |
<?php if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 // $image_width = "80"; // 첫번째 이미지 크기 $max_W 와 같게 맞춘다.(모바일 5%업) // $image_height = "60"; // 첫번째 이미지 크기 /////////////////////// 썸네일 사용자 설정/////////////////////////////////////////////////////// $max_W = 163; // 가로 최대 크기 $max_H = 122; // 세로최대 크기 $thum_Qual = 100; // 썸네일 화질 $data_path = $g4[path]."/data/file/$bo_table"; $thumb_path = $data_path.'/thumb'; @mkdir($thumb_path, 0707); @chmod($thumb_path, 0707); //////////////////////// 썸네일 사용자 설정 /////////////////////////////////////////////////////// // 오토로 하기위해막음(추후에 모바일) //$mod = $board[bo_gallery_cols]; $mod = 4; // 한행당 출력할 이미지수 $width = (int)(100 / $mod); // 잘 맞지 않는다면 요기 조정해서^^ ?> <?php // 스타일 랜덤칼라 //$color = array('#666699','#669999','#CCCC99','#336699','#99CC66','#FF99CC','#FF6600','#CCCC33','#993366'); $color = array('#a0a0a0'); // 원하는 색상 한개로만 할때 shuffle($color); for( $i = 0; $i < 1; $i++ ) { $ran_color = $color[$i]; // echo $ran_color; } ?> <div class="location"> <dl> <dt class="blind">현재위치</dt> <dd><img src="/img/common/location_home.gif" width="11" height="11" alt="Home" /> <span>|</span> 현장 스케치 <span>|</span> <span class="lc">사랑의 자물쇠 게시판</span></dd> </dl> </div> <p class="title"><img src="/img/sub/title_05_08.gif" width="750" height="55" alt="사랑의 자물쇠 게시판 - The Love memories board" /></p> <? $view1[content] = " - 현장에 있는 추억간판에 실린 내용들을 홈페이지로 옮겨두었습니다 - 가족과 연인, 또는 동료들과 함께 공기 맑은 숲 속에서 하늘을 나는 짜릿함을 즐길 수 있는 새로운 레포츠!"; ?> <p style="display:none;">현장에 있는 추억간판에 실린 내용들을 홈페이지로 옮겨두었습니다 - 가족과 연인, 또는 동료들과 함께 공기 맑은 숲 속에서 하늘을 나는 짜릿함을 즐길 수 있는 새로운 레포츠!</p> <p><img src="/img/sub/visual_05_08.jpg" width="750" height="175" alt="현장에 있는 추억간판에 실린 내용들을 홈페이지로 옮겨두었습니다 - 가족과 연인, 또는 동료들과 함께 공기 맑은 숲 속에서 하늘을 나는 짜릿함을 즐길 수 있는 새로운 레포츠!" /></p> <!-- S: 서브 내용 --> <div id="gallery" class="sub_common"> <!-- S: 검색 --> <div class="search_box"> <form name="fsearch" method="get" action="" > <input type="hidden" name="bo_table" value="<?=$bo_table?>" /> <input type="hidden" name="sca" value="<?=$sca?>" /> <select name="sfl"> <option value="wr_subject">제목</option> <option value="wr_content">내용</option> <option value="wr_subject||wr_content">제목+내용</option> <option value="mb_id,1">회원아이디</option> <option value="mb_id,0">회원아이디(코)</option> <option value="wr_name,1">이름</option> <option value="wr_name,0">이름(코)</option> </select> <input name="stx" maxlength="15" size="10" title="검색어" class="required" value="<?=$stx?>" /> <select name="sop"> <option value="and">and</option> <option value="or">or</option> </select> <input type="image" src="<?=$board_skin_path?>/img/btn_search.gif" style="vertical-align:middle;" /> </form> </div> <!-- E: 검색 --> <!-- S : 목록 시작 --> <div class="list_box"> <form name="fboardlist" method="post" action="" > <input type="hidden" name="bo_table" value="<?=$bo_table?>" /> <input type="hidden" name="sfl" value="<?=$sfl?>" /> <input type="hidden" name="stx" value="<?=$stx?>" /> <input type="hidden" name="spt" value="<?=$spt?>" /> <input type="hidden" name="page" value="<?=$page?>" /> <input type="hidden" name="sw" value="" /> <? for ($i=0; $i<count($list); $i++) { ?> <?//if($i>1 && ($i+1)%4=='0'){?> <ul> <li class="list_cont"> <? ///////////////////////<!-- 썸네일 -->//////////////////////////////////////////// $image = urlencode($list[$i][file][0][file]); // 원본이미지 $file="$g4[path]/data/file/$bo_table/".$image; // 원본 이미지 기타등등 있는곳 if ( !file_exists($image) ) { $thum = "$board_skin_path/img/no_image.gif"; } // 확장자 검사 이미지는 jpg,jpeg,gif,png 만 가능 if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)){ //$thum = $thumb_path.'/'.$list[$i][wr_id].".jpg"; // Thumbnail 파일경로 //$thum = $thumb_path.'/'.$list[$i][file][0][file]; $thum = $data_path.'/'.$list[$i][file][0][file]; if ( file_exists($thum) ) { // Thumbnail 있다면 $thum_info = getimagesize($thum); // Thumbnail 정보 $thum_W = $thum_info[0] ; $thum_H = $thum_info[1] ; } $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file]; if ( !file_exists($thum) ) { // Thumbnail 없다면 $file_info = getimagesize($file); // 원본파일 정보 $fW = $file_info[0]; $fH = $file_info[1]; $W_ratio = $max_W / $fW; $H_ratio = $max_H / $fH; if ( ($fW <= $max_W) && ($fH <= $max_H) ) { $thum_W = $fW; $thum_H = $fH; }else if (($W_ratio * $fH) < $max_H) { $thum_H = ceil($W_ratio * $fH); $thum_W = $max_W; } else { $thum_W = ceil($H_ratio * $fW); $thum_H = $max_H; } if ($file_info[2] == 1) $src = imagecreatefromgif($file); else if ($file_info[2] == 2) $src = imagecreatefromjpeg($file); else if ($file_info[2] == 3) $src = imagecreatefrompng($file); else break; $dst = imagecreatetruecolor($thum_W, $thum_H); //// GD라이브러리 2.0 이상 함수 imagecopyresampled($dst, $src, 0, 0, 0, 0, $thum_W, $thum_H, $fW, $fH);// GD2.0이상 imagejpeg($dst, $data_path.'/'.$list[$i][file][0][file], $thum_Qual); //압축율좋음 chmod($data_path.'/'.$list[$i][file][0][file], 0606); imageDestroy($dst); //메모리에 제거 imageDestroy($src); $thum = $data_path.'/'.$list[$i][file][0][file]; // Thumbnail 파일경로 즉 썸파일 } // Thumbnail 없다면 } //if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)){ //////////////////////////<!-- 썸네일 -->////////////////////////////////////////////////////// if (!$list[$i][icon_secret]) { //내용보기가 체그 되더라도 비밀글 이라면 내용 보이지 않음 if (!$list[$i][content]) { // 목록에 내용이있다면 // 서버나, 외부이미지, 썸만든거 있음 보여 주세요 $thum = $data_path.'/'.$list[$i][file][0][file]; // ECHO $data_path.'/'.$list[$i][file][0][file]; if (file_exists($thum) && $list[$i][file][0][file]) { echo "<div class=\"img_thum\"><a href=\"{$list[$i][href]}\"><img src='$thum' alt=\"이미지\" width=\"147\" height=\"122\" /></a></div>"; //img_thum }else { echo "<div class=\"img_thum\"><a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/no_image.gif' alt=\"이미지없음\"/></a></div>"; //img_thum } } // 목록에 내용이있다면 }else{ //내용보기가 체그 되더라도 비밀글 이라면 내용 보이지 않음 echo "<div class=\"img_thum\"><a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/secret_image.gif' alt=\"비밀글\"/></a></div>"; //img_thum } ?> </li> <?$list[$i][subject] = cut_str(strip_tags($list[$i][subject]), 25, '..');?> <li class="subject"> <?if ($is_checkbox) { ?><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i][wr_id]?>" class="all_chk" /><? } ?><a href="<?=$list[$i][href]?>"><?=$list[$i][subject]?> <span style="color:#d30402;"><?=$list[$i][comment_cnt]?></span></a></li> </ul> <? } // for ?> <? if (count($list) == 0) { echo "<div class=\"nodata\">$board[bo_subject]에 게시물이 없습니다.</div>"; } ?> </form><? include_once("$g4[path]/sns.php"); ?> </div> <!-- E : 목록 끝 --> <!-- S : 페이징 시작 --> <div class="board_page"> <? if ($prev_part_href) { echo "<a href=\"$prev_part_href\" title=\"이전검색 합니다\" ><img src=\"$board_skin_path/img/page_search_prev.gif\" alt=\"이전검색\"/></a>"; } ?> <? $write_pages = str_replace("처음", "<img src=\"$board_skin_path/img/page_begin.gif\" title=\"처음으로 이동할까요?\" width=\"17\" height=\"14\" alt=\"처음\"/>", $write_pages); $write_pages = str_replace("이전", "<img src=\"$board_skin_path/img/page_prev.gif\" title=\"이전\" width=\"14\" height=\"14\" alt=\"이전\"/>", $write_pages); $write_pages = str_replace("다음", "<img src=\"$board_skin_path/img/page_next.gif\" title=\"다음\" width=\"14\" height=\"14\" alt=\"다음\"/>", $write_pages); $write_pages = str_replace("맨끝", "<img src=\"$board_skin_path/img/page_end.gif\" title=\"맨끝으로 이동할까요?\" width=\"17\" height=\"14\" alt=\"맨끝\"/>", $write_pages); $write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages); $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<span class=\"pages_w2\">$1</span>", $write_pages); ?> <?=$write_pages?> <? if ($next_part_href) { echo "<a href=\"$next_part_href\" title=\"다음검색 합니다\" ><img src=\"$board_skin_path/img/page_search_next.gif\" alt=\"다음검색\"/></a>"; } ?> </div> <!-- E : 페이징 시작 --> <!-- S : 버튼 시작 --> <div class="board_button"> <? if ($list_href) { ?><a href="<?=$list_href?>" title="목록보기" ><img src="<?=$board_skin_path?>/img/btn_list.gif" alt="목록보기"/></a><? } ?> <? if ($write_href) { ?> <a href="<?=$write_href?>" title="글쓰기, 글을 쓰시겠습니까?"><img src="<?=$board_skin_path?>/img/btn_write.gif" alt="글쓰기"/></a><? } ?> <? if ($is_checkbox) { ?> <img class="cursor_hand" src="<?=$board_skin_path?>/img/btn_select_delete.gif" onclick="select_delete();" title="선택삭제" alt="선택삭제"/> <img class="cursor_hand" src="<?=$board_skin_path?>/img/btn_select_copy.gif" onclick="select_copy('copy');" title="선택복사" alt="선택복사"/> <img class="cursor_hand" src="<?=$board_skin_path?>/img/btn_select_move.gif" onclick="select_copy('move');" title="선택이동" alt="선택이동"/> <? } ?> </div> <!-- E : 버튼 끝 --> </div> <script type="text/javascript"> //<![CDATA[ if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>'; if ('<?=$stx?>') { document.fsearch.sfl.value = '<?=$sfl?>'; if ('<?=$sop?>' == 'and') document.fsearch.sop[0].checked = true; if ('<?=$sop?>' == 'or') document.fsearch.sop[1].checked = true; } else { document.fsearch.sop[0].checked = true; } //]]> </script> <? if ($is_checkbox) { ?> <script type="text/javascript"> //<![CDATA[ function all_checked(sw) { var f = document.fboardlist; for (var i=0; i<f.length; i++) { if (f.elements[i].name == "chk_wr_id[]") f.elements[i].checked = sw; } } function check_confirm(str) { var f = document.fboardlist; var chk_count = 0; for (var i=0; i<f.length; i++) { if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked) chk_count++; } if (!chk_count) { alert(str + "할 게시물을 하나 이상 선택하세요."); return false; } return true; } // 선택한 게시물 삭제 function select_delete() { var f = document.fboardlist; str = "삭제"; if (!check_confirm(str)) return; if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다")) return; f.action = "./delete_all.php"; f.submit(); } // 선택한 게시물 복사 및 이동 function select_copy(sw) { var f = document.fboardlist; if (sw == "copy") str = "복사"; else str = "이동"; if (!check_confirm(str)) return; var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1"); f.sw.value = sw; f.target = "move"; f.action = "./move.php"; f.submit(); } //]]> </script> <? } ?>