|
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 : |
<?
require $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";
$tableName = "board_news";
if($sessionLevel !=15){ //관리자 일떄 다 보이기.
$where .= " and is_secret='N' ";
}
if($MG=="on"){ // member 회원 볼수있게함.
if($sessionLevel < 10){
echo "<script>parent.location.href = './guide.php'</script>";
exit;
}
$where .= "AND general_setting = 'on'";
$url_tail .= "&MG=$MG";
}
$where .= "and is_delete = 'N'";
$QUERY_PAGE = "SELECT * FROM $tableName where no='$post_num' $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($sessionLevel == "" && $row[general_setting] == 'on'){
$membersJapansName = "<div style='width:100%;text-align:center; padding-bottom:2.5em;'>".$membersJapansName."</div>";
$RESULT_CONTENT = $membersJapansName;
}else{
$RESULT_CONTENT = $RESULT_CONTENT;
}
if($row[general_setting] == 'on'){$is_notice_chk .="<font color='#067acc'>member only</font>";}
$BRD_LIST .="
<div class='post_date'>
<div class='date_tit_le'>$regdateArr[0].$regdateArr[1]</div>
<div class='date_tit_mi'>$regdateArr[2]</div>
<div class='date_tit_ri'><h2>$row[subject] $is_notice_chk $is_secret_chk</h2></div>
</div>
<div id='list".$Num."' class='post_del'>
<!--<a href='#' class='image featured'><img src='../images/top_big.jpg' ></a>-->
<p class='line_h23px image featured'>$RESULT_CONTENT</p>
</div>
<div id='area".$Num."' class='post_social_area'>
<div class='le' style='color:#FFC422;'><img src='../images/btn_news_good_num.jpg' /><span id='voted_number".$Num."' style='color:#FFC422;'>$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://pro.yuchun.jp/news.php\",\"$row[subject]\");'><IMG src='/images/sub/icon_share.png'></a></li>
</ul>
</div>
</div>
";
}
//next ,previous
$prev_num = get_db("select min(no) from $tableName where (no > $row[no]) $where");
$next_num= get_db("select max(no) from $tableName where (no < $row[no]) $where");
?>
<!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 property="og:title" content="PARK YUCHUN JAPAN OFFICAL FANCLUB">
<meta property="og:description" content="PARK YUCHUN JAPAN OFFICAL FANCLUB">
<meta property="og:url" content="http://">
<meta name="description" content="PARK YUCHUN JAPAN OFFICAL FANCLUB">
<meta name="keywords" content="PARK YUCHUN JAPAN OFFICAL FANCLUB, YUCHUN, パクユチョン、ユチョン、JYJ,C-JeS Entertainment">
<title>PARK YUCHUN JAPAN OFFICAL FANCLUB</title>
<link rel="stylesheet" type="text/css" href="../sys_css_js/css_common.css"/>
<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 ;cursor:pointer;}
.btn_next {right:10px; background: url(../images/sub/icon_view_next.jpg) no-repeat;cursor:pointer;}
.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){
var check_login = "<?=$sessionLevel?>";
if(check_login < 3){
alert("로그인 후 사용 가능합니다.");
return ;
}
$.ajax({
type: "POST",
url: "news_like_ajax.php",
dateType: "json",
data: "num="+ val+"&division=<?=$tableName?>" ,
cache: false,
success: function(data){
if(data.checkUser == 0){
alert("이미 누르셨습니다.");
}else{
$("#voted_number"+val).html(data.now);
}
}
});
return false;
}
function chage_page(val_page){
if(val_page){
window.location.href="<?=$PHP_SELF?>?post_num="+val_page+"<?=$url_tail?>";
}else{
alert("마지막 페이지 입니다.");
return false;
}
}
</script>
</head>
<body>
<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: top.smartPopClose();" ><img src="../images/sub/icon_view_close.png" /></a></div>
<?=$BRD_LIST?>
</div>
</div>
</body>
</html>