ÿØÿà 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/latest/movie_play/ |
Upload File : |
<!-- <meta name="generator" content="Namo WebEditor"> --> <? if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 ?> <? $query = "select * from g4_write_ga_movie order by wr_id desc limit 1"; $result = mysql_query($query); while($array = mysql_fetch_array($result)){ $link = $array[wr_link2]; $link = str_replace("&", "&", $link); } ?> <script type="text/javascript"> //<![CDATA[ function start(){ document.MediaPlayer1.Play(); } function pause(){ if (MediaPlayer1.PlayState == 2) document.MediaPlayer1.pause(); } //]]> </script> <script type="text/javascript"> //<![CDATA[ function setMovieLink(url){ MediaPlayer1.Filename = url; //alert( MediaPlayer1.Filename); } //]]> </script> <div class="ucc-box"> <textarea id="txt_play" style="display:none;" rows="0" cols="0"> <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="100%" height="100%" id="MediaPlayer1"> <param name="Filename" value="<?=$link?>"> <param name="wmode" value="transparent"> <param name="AutoSize" value="1"> <param name="AutoStart" value="true"> <param name="AutoRewind" value="0"> <param name="ClickToPlay" value="false"> <param name="Enabled" value="1"> <param name="EnableContextdir" value="false"> <param name="EnableTracker" value="0"> <param name="Mute" value="0"> <param name="ShowCaptioning" value="0"> <param name="ShowControls" value="1"> <param name="ShowAudioControls" value="false"> <param name="ShowDisplay" value="false"> <param name="ShowTracker" value="false"> <param name="VideoBorderWidth" value="0"> <param name="ShowStatusBar" value="0"> </object> </textarea> <script type="text/javascript" src="<?=$latest_skin_path?>/embed.js" ></script> </div> <? if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 /////////////////////// 썸네일 사용자 설정/////////////////////////////////////////////////////// $max_W = 93; // 가로 최대 크기 $max_H = 61; // 세로최대 크기 $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="ucc_list"> <p><span class="title"><img src="/img/main/title_ucc.png" width="136" height="17" alt="ZIPLINE UCC MOVIE" class="png24"/></span><span class="more"><a href="/bbs/board.php?bo_table=ga_movie" title="짚라인UCC" ><img src="/img/main/btn_more.gif" width="40" height="17" alt="더보기" /></a></span></p> <ul> <? 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][wr_id].".jpg"; // Thumbnail 파일경로 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][wr_id].".jpg", $thum_Qual); //압축율좋음 chmod($thumb_path.'/'.$list[$i][wr_id].".jpg", 0606); imageDestroy($dst); //메모리에 제거 imageDestroy($src); $thum = $thumb_path.'/'.$list[$i][wr_id].".jpg"; // Thumbnail 파일경로 즉 썸파일 } // Thumbnail 없다면 } //if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)){ //////////////////////////<!-- 썸네일 -->//////////////////////////////////////////////////////?> <? if (!$list[$i][icon_secret]) { //내용보기가 체그 되더라도 비밀글 이라면 내용 보이지 않음 $thum = $thumb_path.'/'.$list[$i][wr_id].".jpg";// 서버나, 외부이미지, 썸만든거 있음 보여 주세요. $link = str_replace("&", "&", $list[$i][wr_link2]); if (file_exists($thum)) { echo "<li onclick=\"setMovieLink('{$link}');\" class=\"jqzoom\" title=\"{$list[$i][subject]}\"><img onmouseover=\"this.style. filter=''\" style=\"filter:gray;\" onmouseout=\"this.style.filter='gray'\" src='$thum' alt=\"이미지\" width=\"93\" height=\"61\" /></li>"; // 줌 적용 }else{// 목록에 내용이있는데 이미지가 없다면 echo "<li onclick=\"setMovieLink('{$link}');\" style=\"cursor:arrow; text-align:center; padding-top:27px;\">"; echo "[이미지없음]"; echo "</li>"; }//file_exists($thum) } //내용보기가 체그 되더라도 비밀글 이라면 내용 보이지 않음 ?> <? } // for ?> <? if (count($list) == 0) { echo "<div class=\"n_title3\">$board[bo_subject]에 게시물이 없습니다.</div>"; } ?> </ul> </div>