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/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/admin/video.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script type="text/JavaScript"> 
function goPage(page)
{
	var f = document.form;
	f.page.value = page;
	f.action = '/admin/video.php';
	f.submit();
}
</script>
<script type="text/javascript"> 
function go_View(mediano) {
	var f = document.form;
	f.idx.value = mediano;
	f.action = 'video_view.php';
	f.submit();
}
 
function go_Write() {
	var f = document.form;
	f.action = 'video_write.php';
	f.submit();
}
 
function go_Modify(mediano) {
	var f = document.form;
	f.idx.value = mediano;
	f.action = 'video_write.php';
	f.submit();
}
 
function go_Delete(mediano) {
	if(confirm("등록된 글이 삭제 됩니다.\n삭제하시겠습니까?")) {
		var f = document.form;
		f.mode.value = 'del';
		f.idx.value = mediano;
		f.action = './Proc/multimedia_proc.php';
		f.submit();
	}
}
</script>
<div id="contents">
	<h2>Multimedia Video</h2>
	<div id="content">
	<table summary="관리자모드 게시판입니다" cellspacing="0" width="1000">
		<colgroup>
			<col width="70" />
			<col width="100" />
			<col />
			<col width="90" />
			<col width="80" />
			<col width="80" />
		</colgroup>
 		<thead>
			<tr>
				<th>No</th>
				<th>분류</th>
				<th>비밀글</th>
				<th>Image</th>
				<th>Title</th>
				<th>Date</th>
				<th>Hit</th>
				<th>Action</th>
			</tr>
		</thead>
		<tbody>
<form name="form" method="post" target="_self" onsubmit="return false;" > 
<input type="hidden" name="page" value="1">
<input type="hidden" name="totalRow" value="10" >
<input type="hidden" name="searchType" value="">
<input type="hidden" name="searchStr" value="">
<input type="hidden" name="searchGroup" value="">
<input type="hidden" name="mode" value="">
<input type="hidden" name="lang_code" value="KO">
<input type="hidden" name="division" value="movie">
<input type="hidden" name="idx" value="">

</form>
<?
	// =============================================== Query
	$tableName = "movie";
	
	if(!$pageCount) $pageCount = 10;

	$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";
  
	$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;  // 
	$viewlist2     = ( !$total_count ) ? "" : Get_viewpage2($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();
	
	if(!$total){
		//echo "<tr><td colspan='$colsNum' align=center height=50px>등록된 정보가 없습니다.</td></tr>";
		echo "<tr><td colspan='8' align=center height=50px>登録された情報がございませ</td></tr>";
	}else{
		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");
			$subject= stripslashes($row[subject]);
			if($row[general_setting] == "on") $generalName ="M";
			else $generalName ="G";
?>
			<tr>
				<td><?=$Num--?></td>
				<td><?=$generalName?></td>
				<td><?=$row[is_secret]?></td>
				<td><img src="/files/muti/thump/<?=$imgName?>" width="100"></td>
				<td class="depth" style="padding-left:20px;"><a href="javascript:go_View(<?=$row[no]?>);"><?=$subject?></a></td>
				<td><?=$regdate?></td>
				<td><?=$row[hit]?></td>
				<td><a href="javascript:go_Modify(<?=$row[no]?>);"><img src="./images/check.png" alt="" /></a><a href="javascript:go_Delete(<?=$row[no]?>);"><img src="./images/out.png" alt="" /></a></td>
			</tr>
<?
		}
	}
?>
		</tbody>
	</table>
	<div class="btn">
			<a href="javascript:go_Write();" class="btn_blue">등록하기</a>
		</div>
		<div class="page_list">
		<!--  prev/next_std -->
		<?=$viewlist2?>
		<!--  prev/next_end -->
		</div>
 	</div>
	</div>
<p></p>
</body>
</html>


Anon7 - 2021