|
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/junsu/ |
Upload File : |
<?
require $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";
$tableName = "board_news";
$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 is_delete = 'N' and no='$post_num'";
$result= mysql_query($QUERY_PAGE,$db_con);
$row = mysql_fetch_array($result);
$Num = $row[no];
$regdate = substr($row[reg_date],0,10);
$regdateArr = explode("-",$regdate);
$RESULT_CONTENT = $row[contents];
$RESULT_CONTENT = stripslashes($RESULT_CONTENT);
//$RESULT_CONTENT=preg_replace("/ style=([^\"\']+) /"," ",$RESULT_CONTENT); // style=border:0... 따옴표가 없을때
//$RESULT_CONTENT=preg_replace("/ style=(\"|\')?([^\"\']+)(\"|\')?/","",$RESULT_CONTENT); // style="border:0..." 따옴표 있을때 style='width:100%;max-width:650px;'
$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[voted_chk]){
$voted_img_tail = "on";
$voted_count_color = "#FF4D06";
}else{
$voted_img_tail = "off";
$voted_count_color = "#838383";
}
if($row[general_setting] == 'on'){$is_notice_chk .="<font color='#067acc'>member only</font>";}
$BRD_LIST .="
<div class='post padding_s1' id='post".$Num."'>
<div class='btn_top'><a href='javascript:chklist($Num);'><img id='listBtn".$Num."' src='../images/sub/icon_arr_more.jpg' /></a></div>
<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' id='voted_color_".$Num."' style='color:".$voted_count_color.";font-weight:bold;'><img id='voted_img".$Num."' src='../images/sub/icon_mv_like_".$voted_img_tail.".png' /><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://pro.yuchun.jp/news.php\",\"$row[subject]\");'><IMG src='../images/sub/icon_share.png'>共有すること </a></li>-->
</ul>
</div>
</div>
</div>
";
?>
<!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">
<title>KIM JUNSU JAPAN OFFICAL FANCLUB</title>
<link rel="stylesheet" type="text/css" href="../sys_css_js/css_common.css"/>
</head>
<body onload="window.print();">
<!--<button onclick="window.print();">인쇄하기</button> <button onclick="self.close();">취소</button>-->
<?=$BRD_LIST?>
</body>
</html>