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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/yuchun/movie_view_ajax.php
<?
include "$DOCUMENT_ROOT/conf/conf_dir.php";
$tableName = "photo_movie";
if($sessionLevel !=15){ //관리자 일떄 다 보이기.
	$where .= " is_secret='N' ";
}else{
	$where .= " 1=1 ";
}
if($num) $where .= "and no=$num";
else $where .= "and is_delete = 'N' order by start_date desc,no DESC";

$res = Get_dbres("select *,(select no from board_chuchun where module_no=a.no and module_name='$tableName' and uid_fk='$sessionIDX') as voted_chk from $tableName as a where $where ");

$rowU = mysql_fetch_array($res);
if($rowU[is_secret] == 'Y'){$New_secret="<font color='red'>[SECRET]</font>";}
$Num = $rowU[no];
if($rowU[inputtype]==1){
  //echo "$rowU[contentUrl]";
  $tmp_movieUrl = explode(".", $rowU[contentUrl]);

  if($tmp_movieUrl[1] == "mp4"){
    $contentsURL = "/files/muti/video/".$rowU[contentUrl];
    echo "<script>function initialize(){document.getElementById('movLink2').style.display ='';}initialize();</script>";
  }else{
    $cURL = "./movieflv.html?fileUrl=".$rowU[contentUrl];
    echo "<script>function initialize(){document.getElementById('movLink').style.display ='';}initialize();</script>";
  }
}else{
  $cURL = $rowU[contentUrl];
  echo "<script>function initialize(){document.getElementById('movLink').style.display ='';}initialize();</script>";
}
//hit
if($Num && $_SERVER["REMOTE_ADDR"] != $remoteAddr){
 $queryhit = "update $tableName set hit = hit+1 where no='$Num'";
 $hitresult = mysql_query($queryhit, $db_con);
}

$hit_count = $rowU[hit]+1;

$subjectU= stripslashes($rowU[subject]);
$SUBJECT_SUMMARY = utf8_cutstr($subjectU,20,$tail=" ...");

if($rowU[voted_chk]){
   $voted_img_tail = "on";
   $voted_count_color = "#FF4D06";
 }else{
   $voted_img_tail = "off";
   $voted_count_color = "#838383";
 }

//댓글
if(!$pageCount) $pageCount =4;
$show_one_page      = $pageCount;
$show_view_page     = 5;
$page     = ( $page ) ? $page : 1;
$offset   = ($page-1)*$show_one_page;
$query_limit  = "limit $offset,$show_one_page";
$QUERY_TOTAL = "SELECT count(*) FROM board_comment WHERE module_name='".$tableName."' and module_no='".$Num."' ";
$QUERY  = "SELECT * FROM board_comment WHERE module_name='".$tableName."' and module_no='".$Num."' ORDER BY reg_date desc,idx desc $query_limit";
$total_count  = get_db($QUERY_TOTAL);
$results= mysql_query($QUERY,$db_con);
$total = mysql_affected_rows();

$total_page   = ceil( $total_count / $show_one_page);
$start_num    = $total_count - $offset;
$more_next_page = $page+1;
$viewMore     = ($pageCount >=$total_count) ? "" : "<a href='javascript:fnMore($Num,\"$tableName\");' class='btn_cla' id='$more_next_page' data-total='$total_page'><div class='pagination03' id='btnMore'><img src='/images/sub/sub_pagbar_more.png'/></div></a>";

 for($i=0; $i<$total; $i++)
{
  $rows = mysql_fetch_array($results);

  $regdate = substr($rows[reg_date],0,10);
  $regdateArr = explode("-",$regdate);

	//댓글 이미지 색상
				$tmp_img= get_imgColor($rows[user_no]);
				$replyImg =$tmp_img[0];
				$replyColor = $tmp_img[1];

				if($rows[user_no] == $sessionIDX) $img_del = "<a href='javascript: commnet_del($rows[idx]);' style='margin:3px;'><img src='../images/sub/icon_del.jpg' alt='del' /></a>";
       else $img_del ="";

  $COMMENT_LIST .="
  <div class='mv_date_tit' id='vi".$rows[idx]."'>
     <div class='mvdate_tit_le nobody02' style='background-color:".$replyColor.";overflow: hidden; position: relative;'>$replyImg</div>
    <div class='mvdate_tit_ri'><span class='font_bold'>$rows[user_name]</span> <span class='mvis_date'>$regdateArr[0].$regdateArr[1].$regdateArr[2]</span>$img_del<br/>$rows[content]</div>
   </div>
  ";
}
?>
		<?include "./warning_mungu.html";?>
    <div class="movieBig padding_s1" id='post'>
     <div class="movieBig_del">
     <div style="display:block;">
      <video id='movLink2' src='<?=$contentsURL?>'  width="100%" controls style="display:none;" controlsList = "nodownload">このブラウザでは再生できません.</video>
      <iframe  id="movLink" width="100%" src="<?=$cURL?>" frameborder="0" allowfullscreen style="display:none;"></iframe>
      </div>
      <h2><?=$subjectU?> <?=$New_secret?></h2>
     </div>

   	 <div class="movie_icon">
      <ul>
      <? echo "
       <li class='li_like' id='voted_color_".$Num."' style='color:".$voted_count_color.";font-weight:bold;'><a href='javascript: content_like($Num,\"$tableName\",$sessionLevel);'><img id='voted_img".$Num."' src='../images/sub/icon_mv_like_".$voted_img_tail.".png' /></a><span id='voted_number".$Num."' style='color:".$voted_count_color.";'>$rowU[voted_count]</span> 名</li>
       ";?>

       <!--<li class="li_like"><img src="./../images/sub/icon_mv_like.png" onclick="content_like(<?=$Num?>)" style="cursor:pointer;" /><span id='voted_number<?=$Num?>'><?=$rowU[voted_count]?></span>名</li>-->
       <li class="li_gubun"> クリック <span class="icon_txt"><?=$hit_count?></span></li>
      </ul>
     </div>
    </div>

    <div class="movieComt_ar">
     <div class="movieComt_del">コメント<span class="icon_txt_02" id="comment_num"> <?=$rowU[reply_count]?></span></div>

     <form  name="form" method="post" action="javascript: commentok('<?=$Num?>','<?=$tableName?>');">
     <div class="movieCom_name">
      <div class="mv_date_tit">
     	 <div class="mvCom_cot_le nobody01"  style='height:43px; background-color:<?=$_SESSION[S_COLOR]?>;overflow: hidden; position: relative;'><?=$_SESSION[S_IMG_B]?></div>
     	 <div class="mvCom_cot_ri"><form><textarea name="comment" id="comment" placeholder="" style="height:43px;" onclick='$(this).height(100);'></textarea></form></div>
      </div>

      <div class="mv_input_but">
       <ul>
        <li class="mv_txt">[<?=$SUBJECT_SUMMARY?>]にコメントを登録してみてください。</li>
        <li class="mv_but"> <input type="button"  class="cancel" value="キャンセル" onclick="$('#comment').height(20);$('#comment').val('');"> <input type="submit" class="submitIn" value="コメント登録"> </li>
       </ul>
      </div>
      </form>
      <div id="com_new">
      <?=$COMMENT_LIST?>
      </div>

    </div> <!--코멘트End-->
  		<?=$viewMore?>

 </div>

 <!-- RIGHT -->

Anon7 - 2021