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/profile_view.php
<?
    require $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";
    $tableName = "board_profile";
    if($sessionLevel !=15){ //관리자 일떄 다 보이기.
        $where .= " and is_secret='N' ";
    }
    if($act == 0) $where .="AND division not in (5,6)";
    else $where .="AND division='$act'";
    $where .= "and is_delete = 'N'";

		$QUERY_PAGE  = "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 no='$no' $where";


    $result= mysql_query($QUERY_PAGE,$db_con);
    $row = mysql_fetch_array($result);
    $Num = $row[no];
    if($Num){


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

    $RESULT_CONTENT = $row[contents];
    $RESULT_CONTENT = stripslashes($RESULT_CONTENT);

    $RESULT_CONTENT = preg_replace("/ height:(\"|\')?([^\"\']+)(\"|\')?;/","",$RESULT_CONTENT);
    $RESULT_CONTENT = preg_replace("/ width:(\"|\')?([^\"\']+)(\"|\')?;/","",$RESULT_CONTENT);

    $RESULT_CONTENT=preg_replace("/ height=(\"|\')?\d+(\"|\')?/","",$RESULT_CONTENT);
    $RESULT_CONTENT=preg_replace("/ width=(\"|\')?\d+(\"|\')?/","",$RESULT_CONTENT);

    if($row[voted_chk]){
        $voted_img_tail = "icon_main_gallery_01";
        $voted_count_color = "#FEC223";
      }else{
        $voted_img_tail = "icon_mv_like_off";
        $voted_count_color = "#838383";
      }

    $BRD_LIST .="
            <div class='post_date_view'>
                <div class='date_tit_ri_ls'><img src='../images/sub/view_tit_0".$row[division].".jpg' > $row[subtitle]</div>
                <div class='date_tit_ri'><h2>$row[subject]</h2></div>
            </div>
            <div class='post_del'>
                <!--<a href='#' class='image featured'><img src='../images/sub/sub_profile_view_01.jpg' style='width:100%'></a>-->
                <div class='profile_list_det image featured imgSize'>
                $RESULT_CONTENT
                </div>
                <div class='post_social_area'>
                    <div class='le' 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/".$voted_img_tail.".png' width='24' /></a><span id='voted_number".$Num."' style='color:".$voted_count_color.";'>$row[voted_count]</span> 名</div>
                    <div class='ri'>
                        <ul >
                        <li><a href='javascript: window.print();'><IMG src='/images/sub/icon_print.png'></a></li>
                        <!--<li><a href='javascript: content_like($Num);'><IMG src='/images/sub/icon_like_b.png'></a></li>-->
                        <!--li><a href='javascript: sendSns(\"facebook\",\"http://www.lucky-7.jp/profile.php\",\"$row[subject]\");'><IMG src='/images/sub/icon_share.png'></a></li-->
                        </ul>
                    </div>
                </div>
            </div><!-- post_del -->

    ";
    }

    //next ,previous
		if($act == 0){
			$wherePre		="(no > $row[no]) AND division not in (5,6) order by division asc,no desc,subtitle desc";
			$whereNext		="(no < $row[no]) AND division not in (5,6) order by division asc,no desc,subtitle desc";
		}else{
			$wherePre		="(no > $row[no]) AND division='$row[division]'";
			$whereNext		="(no < $row[no]) AND division='$row[division]'";
		}
		$url_tail="&act=$act";



    $prev_num = get_db("select min(no) from $tableName where $wherePre");
    $next_num= get_db("select max(no) from $tableName where $whereNext");
		//echo "$prev_num $next_num";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

 <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="format-detection" content="telephone=no">

 <title>PARK YU CHUN JAPAN OFFICAL FANCLUB</title>
	<link rel="stylesheet" type="text/css" href="/sys_css_js/css_common.css"/>
 </head>
 <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript" ></script>

<style>
.profileviewBox         {position: relative; width:100%; max-width:800px; z-index: 2;min-height: 100%;height: 100%;max-height: auto;}

.post_view													{display:block; border:14px solid #fec223;padding:40px;}
.post_view	.btn_top				{width:100%; height:28px; text-align:right;}

.post_date_view    				{margin:0 auto; width:100%; padding:20px 0 20px 0;}
.post_date-view:after  {clear: both; display: block; content: "";}
.date_tit_ri_ls  						{color:rgb(254, 194, 35); font-size:2em; font-weight:bold; padding-bottom:10px; vertical-align:top;}
.date_tit_ri h2								{color:rgb(28, 28, 28); font-size:1.5em; line-height:25px; }

.proviewBox_contr a    {position:absolute; top:50%; margin-top:-16px;outline:0;width: 20px;height: 51px;text-indent: -9999px;z-index: 9999;}
 .btn_prev            {left:10px; background: url(/images/sub/icon_view_prew.jpg) no-repeat ;}
 .btn_next            {right:10px; background: url(/images/sub/icon_view_next.jpg) no-repeat;}

.profileviewBox .profile_list_det    						{ display:block;  padding:1% 3% 3% 1%; }


		@media only screen and (max-width:920px)
	{
			/*********************@@  PROFILE VIEW *************************************/
			.profile_list_det    						{ display:block;  padding:1%;}
	}


	@media only screen and (max-width: 401px)
	{
					/*********************@@  PROFILE VIEW *************************************/
			.profileviewBox  																							{	display:table; width:100%; padding:0%; margin:0px;}
			.post_date_view .date_tit_ri_ls  						{color:rgb(254, 194, 35); font-size:1.8em; font-weight:bold; padding-bottom:10px; vertical-align:top;}
			.post_date_view .date_tit_ri h2			{width: 100%;}
	}


	@media only screen and (max-width: 360px)
	{
					/*********************@@  PROFILE VIEW *************************************/
			.post_date_view .date_tit_ri_ls 		 h2				{width: 100%;}
	}

</style>
<script>
    $(document).ready(function(){
            var bheight = $('.profileviewBox').height();
            top.$.smartPop.resizeHeight(bheight);
    });

//좋아요
function content_like(val,val2,val3){
   var check_login = val3;
   if(check_login < 3){
       alert("ログイン後ご利用可能です");
       return ;
   }

   $.ajax({
       type: "POST",
       url: "like_ajax.php",
       dateType: "json",
       data: "num="+ val+"&division="+val2 ,
       cache: false,
       success: function(data){
									$("#voted_number"+val).html(data.now);
         if(data.checkUser == 0){
           $("#voted_img"+val).attr("src","/images/sub/icon_mv_like_off.png");

											$("#voted_color_"+val).css("color","#838383");
											$("#voted_number"+val).css("color","#838383");

         }else{
            $("#voted_img"+val).attr("src","/images/sub/icon_main_gallery_01.png");

											$("#voted_color_"+val).css("color","#FEC223");
											$("#voted_number"+val).css("color","#FEC223");
         }


       }
   });
}


    function chage_page(val_page){
       if(val_page){
       window.location.href="<?=$PHP_SELF?>?no="+val_page+"<?=$url_tail?>";
       }else{
        alert("最後のページです");
        return false;
       }
    }

		function pop_close(){
			var filter = "win16|win32|win64|mac";
			if(navigator.platform){
				if(0 > filter.indexOf(navigator.platform.toLowerCase())){
					//alert("Mobile");
					window.close();
				}else{
					//alert("PC");
					top.smartPopClose();
				}
			}
		}
    </script>
   	<!-- 팝업 -->
    <div class="profileviewBox">
        <div class="proviewBox_contr">
            <a class="btn_prev" onclick="chage_page(<?=$prev_num?>)">prev</a>
            <a class="btn_next" onclick="chage_page(<?=$next_num?>)">next</a>
        </div>

        <div class="post_view padding_s1">
            <div class="btn_top"><a href="javascript:pop_close();" ><img src="../images/sub/icon_view_close.png" /></a></div>
            <?=$BRD_LIST?>
        </div><!-- post_view -->

    </div><!-- profileviewBox -->
    <!-- 팝업 -->


</html>

Anon7 - 2021