KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/www/gallary/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/gallary/video_list.html
<script>
function video_play(ttype,tmpUrl,dataOption,video_uploader,val,tval){

	if(ttype==1){
		document.getElementById("movLink").src =tmpUrl;
		document.getElementById("movLink").style.display ="";
		document.getElementById("movLink2").style.display ="none";
		document.getElementById("movLink2").pause();

	}else if(ttype==3){

		document.getElementById("movLink2").src =tmpUrl;
		document.getElementById("movLink").style.display ="none";
		document.getElementById("movLink2").style.display ="";
    document.getElementById("movLink").src = "";

	}else{
		//alert(tmpUrl);
		//document.getElementById("movLink").src =tmpUrl+"?autoplay=1";
		document.getElementById("movLink").src =tmpUrl;
		document.getElementById("movLink").style.display ="";
		document.getElementById("movLink2").style.display ="none";
    document.getElementById("movLink2").pause();
	}

	document.getElementById("VideoCaptionBox1").innerHTML = dataOption.substring(0,19)+"...";
	document.getElementById("VideoCaptionBox3").innerHTML = video_uploader;
	document.getElementById("VideoCaptionBox4").innerHTML = val;



	//var shin_video_name = video_title.substring(0,28);

	document.getElementById('movieform'+val).className ="mov_list_thumb_on";
	for(var k=0;k < tval;k++){
		if(val != k){
			document.getElementById('movieform'+k).className ="mov_list_thumb_off";
		}
	}
}
</script>
<style>
video::-internal-media-controls-download-button {
    display:none;
}

video::-webkit-media-controls-enclosure {
    overflow:hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px); /* Adjust as needed */
}
</style>
<?
//counter
	if($sessionLevel != 15  && $_SERVER['REMOTE_ADDR'] != $remoteAddr){

			$userhitpage ="movie";
			$hitcount = Get_db("select hit from user_hit where name = '$userhitpage' and startDay = '$today'");
			if(!$hitcount){
				$queryhit = "INSERT INTO user_hit ( id, name, hit, startDay) VALUES ( '', '$userhitpage', '1', '$today')";
			}else{
				$queryhit = "update user_hit set hit = hit+1 where name='$userhitpage' and startDay = '$today'";
			}
			$hitresult = mysql_query($queryhit, $db_con);
	}

	// =============================================== Query
	$tableName = "movie";

	if(!$pageCount) $pageCount = 6;

	$show_one_page			= $pageCount;
	$show_view_page			= 10;

	$page     = ( $page ) ? $page : 1;
	$offset   = ($page-1)*$show_one_page;

	if($key_word) {
		$key_word = str_replace(" ","",$key_word);
		$where = "AND $key LIKE '%$key_word%'";
	}

	$order_by = ' ORDER BY no DESC';
	$url_tail = "&tab=$tab&tabs=$tabs&key=$key&order_by=$order_by";

	$query_limit  = "limit $offset,$show_one_page";
	if($sessionLevel !='15'){
		$where .=" and is_secret='N' ";
	}
	if($tab==3){
		$where .=" and general_setting !='on' ";
	}

	$QUERY_TOTAL = "SELECT count(*) FROM photo_$tableName where original_no=0  $where $order_by";
	$QUERY_PAGE  = "SELECT * FROM photo_$tableName where original_no=0  $where $order_by $query_limit";

	$total_count  = get_db($QUERY_TOTAL);
	$Num = $total_count - $offset;
	$total_page   = ceil( $total_count / $show_one_page);
	$start_num    = $total_count - $offset;  //
	$viewlist     = ( !$total_count ) ? "" : Get_viewpage($page,$total_count,$show_one_page,$show_view_page,$url_tail);

	$result= mysql_query($QUERY_PAGE,$db_con);
	if(!$result) {
		error("DB_ERROR");
		exit;
	}
	$total = mysql_affected_rows();
?>
<div class="sub_title">
	<h3><img src="/images/sub/sub_title_04.jpg" width="123" height="29" alt="gallery" /></h3>
	<ul>
	<li>Home</li>
	<li>&gt;</li>
	<li>Movie</li>
	</ul>
</div>
<?

$res = Get_dbres("select * from photo_$tableName where original_no=0 $where order by start_date desc,no desc");
$rowU = mysql_fetch_array($res);
	if($rowU[inputtype]==1){
		//echo "$rowU[contentUrl]";
		$tmp_movieUrl = explode(".", $rowU[contentUrl]);
		// flv를 mp4로 수정함.
		$rowU[contentUrl] = $tmp_movieUrl[0].".mp4";
		$tmp_movieUrl = explode(".", $rowU[contentUrl]);

		if($tmp_movieUrl[1] == "mp4"){
			$contentsURL = "/gallary/mfiles/".$rowU[contentUrl];
			echo "<script>function initialize(){document.getElementById('movLink2').style.display ='';}window.onload = function() {initialize();}</script>";
		}else{
			$cURL = "./movieflv.html?fileUrl=".$rowU[contentUrl];
			echo "<script>function initialize(){document.getElementById('movLink').style.display ='';}window.onload = function() {initialize();}</script>";
		}
	}else{
		$cURL = $rowU[contentUrl];
		echo "<script>function initialize(){document.getElementById('movLink').style.display ='';}window.onload = function() {initialize();}</script>";
	}
	$subjectU= stripslashes($rowU[subject]);
?>
<div class="board_area4">
	<ul>
	<li class="mov_big">
		<ol class="big_ol">

		<li class="mov_link">
		<video	 id='movLink2' src='/gallary/mfiles/<?=$rowU[contentUrl]?>'width='481'  height="303"  controls style="display:none;" controlsList = "nodownload">このブラウザでは再生できません.</video>
		<iframe id="movLink" width="481" height="303" src="<?=$cURL?>" allowscriptaccess="always"  frameborder="0" allowTransparency="true" scrolling='no' allowfullscreen></iframe>
		</li>
		<li class="mov_text">
			<dl>
			<dt id="VideoCaptionBox1"><!--<img src="/images/sub/icon_youtube.gif" />-->&nbsp;<?=utf8_cutstr($subjectU,'60','...')?></dt>
			<dd id="VideoCaptionBox2">・登録日:<span id="VideoCaptionBox3"><?=$rowU[start_date]?></span>  ・作成者:<span id="VideoCaptionBox4"><?=$rowU[user_name]?></span></dd>
			</dl>
		</li>
		</ol>
	</li>
	</ul>
</div>
<div class="mov_list_area">
	<dl class="mov_list_left">
	<dt>MOVIE LIST (全<?=$total_count?>件)</dt>
	<dd>
		<ul>
		<?


			if(!$total){
				//echo "<tr><td colspan='$colsNum' align=center height=50px>등록된 정보가 없습니다.</td></tr>";
				echo "<dd><ul>登録された情報がございませ</ul></dd>";
			}else{
				$kk = 0;
				for($i=0; $i<$total; $i++) {

					$row = mysql_fetch_array($result);
					$contents = explode("</p>",$row[contents]);
					$regdate = substr($row[reg_date],0,10);
					$imgName = get_db("select file_name from files where module_no = '$row[no]' and module_name='$tableName' order by no");
					$Num = $total_count - $kk;
					$doY = $kk%3;
					$subject= $row[subject];
					if($row[inputtype]==1){

						$tmp_movieUrl_list = explode(".", $row[contentUrl]);
						$row[contentUrl] = $tmp_movieUrl_list[0].".mp4";
						$tmp_movieUrl_list = explode(".", $row[contentUrl]);
						if($tmp_movieUrl_list[1] == "mp4"){
							$contentsURL_list = "/gallary/mfiles/".$row[contentUrl];
							$inputtype = 3; //mp4
						}else{
							$contentsURL_list = "./movieflv.html?fileUrl=".$row[contentUrl];
							$inputtype=1;
						}
					}else{
						$contentsURL_list = $row[contentUrl];
						$inputtype=2;
					}
		?>

		<? if($i !=0)	if($Num > 0 && $doY == 0) { ?></ul></dd><dd><ul><? } ?>
		<li class="mov_thumb_padding">
			<ol>
			<li id="movieform<?=$i?>" class="mov_list_thumb_off" style="margin:0 7px 0; cursor:pointer;" onclick="video_play('<?=$inputtype?>','<?=$contentsURL_list?>','<?=$subject?>','<?=$row[start_date]?>','<?=$row[user_name]?>','<?=$i?>',<?=$total?>)" mouserollover="">
			<img src="/files/muti/thump/<?=$imgName?>" width="154" height="115"/></li>
			<li class="mov_list_txt">
			<h4 class="mov_list_txt_ti"><?=stripslashes($subject)?></h4>
			<span><?=$row[start_date]?></span>
			</li>
			</ol>
		</li>
		<?
			$kk++;
			$Num--;
				}
			}
		?>
		</ul>
	</dd>
	<dd class="small" style="padding-top:24px;">
		<div class="search_list">
		<ul class="gal_list_area2">
		<li class="result">(全<?=$total_count?>件)</li>
		<li class="list">
			<dl class="lists">
			<?=$viewlist?>
			</dl>
		</li>
		<!--li style="width:20%; height:18px; line-height:18px; text-align:right; display:inline; background:#fff; margin:2px 0 0 0; padding:0; border:3px solid #F11; text-align:left;">
		<span><input type="text" height="12" border="0" style="border:0; margin:0; padding:0; width:51px;" /></span>
		<span><img src="/images/sub/btn_s_arrow.gif" height="18" style="vertical-align:top" /></span>
		<span><img src="/images/sub/btn_search.gif" height="18" style="vertical-align:top" /></span>
		</li-->
		</ul>
		</div>
			<!--div style="height:18px; line-height:18px; text-align:right; display:inline; background:#fff; margin:2px 0 0 0; padding:0; border:3px solid #F11; text-align:left;">
			<span><input type="text" height="12" border="0" style="border:0; margin:0; padding:0; width:51px;" /></span>
			<span><img src="/images/sub/btn_s_arrow.gif" height="18" style="vertical-align:top" /></span>
			<span><img src="/images/sub/btn_search.gif" height="18" style="vertical-align:top" /></span>
			</div-->
	</dd>
	</dl>
	<dl class="mov_list_right">
	<dt>LATEST MOVIE 5</dt>
	<?
	$bestM  = "SELECT * FROM photo_$tableName where original_no=0 $where order by no desc limit 5";
	$results= mysql_query($bestM,$db_con);
	while ($rows = mysql_fetch_array($results)){
		$subjects= stripslashes($rows[subject]);
		$bestimgName = get_db("select file_name from files where module_no = '$rows[no]' and module_name='$tableName' order by no");
		if($rows[inputtype]==1){
			$contentsURLs = "./movieflv.html?fileUrl=".$rows[contentUrl];
		}else{
			$contentsURLs = $rows[contentUrl];
		}
	?>
	<dd>
		<ul style="cursor:pointer;" onclick="video_play('<?=$rows[inputtype]?>','<?=$contentsURLs?>','<?=$subjects?>','<?=$rows[start_date]?>','<?=$rows[user_name]?>','<?=$i?>',<?=$total?>)">
		<li class="mov_thumb"><img src="/files/muti/thump/<?=$bestimgName?>" width="105" height="64"/></li>
		<li class="mov_txt">
		<h4 class="mov_ti"><?=utf8_cutstr($subjects,12,'..')?></h4>
		<span><?=$rows[user_name]?></span><br />
		<span><?=$rows[start_date]?></span>
		</li>
		</ul>
	</dd>
	<?
	}
	?>
	</dl>
	<!-- -->
</div>
<!--li class="mov_thumb_area">
	<ol>
	<li>
		<dl>
		<dt class="mov_on"><img src="/images/sub/gal_thumbs_01.jpg" width="155" height="115" alt="" /></dt>
		<dd>いつもJYJを応援頂き有り難うございます。今年も…<br />
		<span>2012.03.15</span>
		</dd>
		</dl>
	</li>
	<li>
		<dl>
		<dt class="mov_out"><img src="/images/sub/gal_thumbs_02.jpg" width="155" height="115" alt="" /></dt>
		<dd>いつもJYJを応援頂き有り難うございます。今年も…<br />
		<span>2012.03.15</span>
		</dd>
		</dl>
	</li>
	<li>
		<dl>
		<dt class="mov_out"><img src="/images/sub/gal_thumbs_03.jpg" width="155" height="115" alt="" /></dt>
		<dd>いつもJYJを応援頂き有り難うございます。今年も…<br />
		<span>2012.03.15</span>
		</dd>
		</dl>
	</li>
	<li class="no_padding">
		<dl>
		<dt class="mov_out"><img src="/images/sub/gal_thumbs_04.jpg" width="155" height="115" alt="" /></dt>
		<dd>いつもJYJを応援頂き有り難うございます。今年も…<br />
		<span>2012.03.15</span>
		</dd>
		</dl>
	</li>
	</ol>
</li>
<li class="mov_thumb_area">
	<ol>
	<li>
		<dl>
		<dt class="mov_out"><img src="/images/sub/gal_thumbs_05.jpg" width="155" height="115" alt="" /></dt>
		<dd>いつもJYJを応援頂き有り難うございます。今年も…<br />
		<span>2012.03.15</span>
		</dd>
		</dl>
	</li>
	<li>
		<dl>
		<dt class="mov_out"><img src="/images/sub/gal_thumbs_06.jpg" width="155" height="115" alt="" /></dt>
		<dd>いつもJYJを応援頂き有り難うございます。今年も…<br />
		<span>2012.03.15</span>
		</dd>
		</dl>
	</li>
	<li>
		<dl>
		<dt class="mov_out"><img src="/images/sub/gal_thumbs_07.jpg" width="155" height="115" alt="" /></dt>
		<dd>いつもJYJを応援頂き有り難うございます。今年も…<br />
		<span>2012.03.15</span>
		</dd>
		</dl>
	</li>
	<li class="no_padding">
		<dl>
		<dt class="mov_out"><img src="/images/sub/gal_thumbs_08.jpg" width="155" height="115" alt="" /></dt>
		<dd>いつもJYJを応援頂き有り難うございます。今年も…<br />
		<span>2012.03.15</span>
		</dd>
		</dl>
	</li>
	</ol>
</li-->

Anon7 - 2021