// ±âº» Ŭ·¡½º ºÒ·¯¿À±â
include('../common.php');
// °ü¸®ÀÚ Á¤º¸ ºÒ·¯¿À±â
$admin_stat = $db->object("kb_admin", "");
$MV_DATA = $_GET[board_data];
$BOARD_DATA = $tools->decode( $_GET[board_data] );
if($_GET[idx] ) { $idx = $_GET[idx]; } else { $idx = $BOARD_DATA[idx]; }
$MV_SEARCH_ITEM = $_GET[search_items];
$SEARCH_ITEM = $tools->decode( $_GET[search_items] );
if($_GET[part_idx] ) { $part_idx = $_GET[part_idx]; } else { $part_idx = $SEARCH_ITEM[part_idx]; }
if($_GET[search_order] ) { $search_order = $_GET[search_order]; }else { $search_order = $SEARCH_ITEM[search_order]; }
// Ä«Å×°í¸® Á¤º¸
if($part_idx) {
$part_stat = $db->object("kb_part", "where idx=$part_idx");
$part_img = "../data/part/".$part_stat->images;
if($part_stat->part_index==3){
$part3_stat = $db->object("kb_part", "where idx=$part_stat->part2_idx");
$part_img = "../data/part/".$part3_stat->images;
}
} else {
$tools->errMsg('ºñÁ¤»óÀûÀ¸·Î Á¢¼Ó ÇÏ¿´½À´Ï´Ù');
}
$stat = $db->object("kb_news", "where idx='$idx' and news_depth='5'");
if(!$stat->idx) {
$tools->msgClose('±â»ç°¡ »èÁ¦µÇ¾ú°Å³ª Á¤»óÀûÀÎ ±â»ç°¡ ¾Æ´Õ´Ï´Ù.');
}
if($stat->read_level == 1 && $stat->read_level > $_SESSION[LEVEL]){
$tools->errMsg('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ¸é µµ¿ò¹Þ°í Àç¹ÌÀÖ´Â ¸¹Àº ÄÁÅÙÃ÷¸¦ ¸¸³¯ ¼ö ÀÖ½À´Ï´Ù.');
} else if($stat->read_level == 2 && $_SESSION[LEVEL] < 7){
$pay_stat = $db->object("kb_pay", "where userid like '$_SESSION[USERID]' and kind=1 and start_date <= now() and end_date >= now() and pay_no not like '' order by idx desc limit 1");
if(!$pay_stat->idx) {
$tools->alertJavaGo('À¯·á °áÁ¦ ÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä.','order_info_action.php');
}
}
$part_real_idx = $stat->part1_idx;
if($stat->part2_idx){
$part_real_idx = $stat->part2_idx;
}
if($stat->part3_idx){
$part_real_idx = $stat->part3_idx;
}
$part_real_stat = $db->object("kb_part", "where idx=$part_real_idx");
$writer_info = $db->object("kb_member", "where userid='$stat->writer'");
$img_resut = $db->select("kb_news_img","where temp_session='$stat->temp_session' order by idx asc");
while( $img_row = mysql_fetch_object($img_resut)) {
$img_cnt++;
$thumbname = "";
$file = "";
$file2 = "";
$tmp_img = explode("/",$img_row->image);
$file = $tmp_img[count($tmp_img)-1];
$file2 = $tmp_img[count($tmp_img)-2];
$EXT_TMP = explode( ".",$file);
$thumbname = "../data/newsThumb/".$EXT_TMP[0]."ADD_thumb";
if($img_row->img_info){
$img_info= "
¡è¡è ".$img_row->img_info." |
";
}else{
$img_info="";
}
if($img_row->img_align==2){
$img_size = "580";
} else if($img_row->person_img == 1){
$img_size = "180";
} else {
$img_size = "430";
}
if($img_row->img_align==1){
${"count_img_".$img_cnt} = "idx."')\"> | |
|
".$img_info."¨Ï ".$img_row->img_copyright_name." |
";
}elseif($img_row->img_align==2){
${"count_img_".$img_cnt} = " |
idx."')\"> |
|
".$img_info."¨Ï ".$img_row->img_copyright_name." |
|
";
}elseif($img_row->img_align==3){
${"count_img_".$img_cnt} = " | idx."')\"> | |
|
".$img_info."¨Ï ".$img_row->img_copyright_name." | |
";
}
}
?>
=$admin_stat->shop_name;?>
$document_title = strip_tags($db->addSlash($stat->main_subject)); ?>
$logo = explode(".",$admin_stat->title_logo);
if($logo[count($logo)-1] == "swf") {
?>
} else {?>
}?>
|
ÇÁ¸°Æ®Çϱâ´Ý±â
|
$view_content = str_replace($search_order,"".$search_order."", $stat->main_subject);
echo $view_content;
?>
if($stat->sub_subject) { ?>
$view_content = str_replace($search_order,"".$search_order."", $stat->sub_subject);
echo $tools->strHtmlBr($view_content);
?>
} ?>
$copyright = $tools->strDateCut( $stat->reg_date, 8);
if($stat->newsho){
$newsho = $stat->newsho."È£";
}
?>
=$stat->writer_name?> ±âÀÚ / =$writer_info->email?>=$newsho?>}?>ÀÔ·Â : =$copyright?>
|
$content = $stat->news_content;
$content = str_replace($search_order,"".$search_order."", $content);
//@IMG1@ ã¾Æ¼ ¹Ù²Ù±â
for($i=1;$i<=100;$i++){
$content = str_replace("@IMG".$i."@", ${"count_img_".$i}, $content);
}
//@IMG2@ ã¾Æ¼ ¹Ù²Ù±â
//@IMG3@ ã¾Æ¼ ¹Ù²Ù±â
//·Î±×ÀÎ ¾ÈµÈ »ç¿ëÀÚ´Â ±â»ç ³»¿ë ÀϺθ¸ º¸ÀÓ
if($part_real_stat->login == 1 && (!$_SESSION[USERID] || !$_SESSION[PASSWD])){
$content = $tools->strCut($content,"175");
$content .= " [ȸ¿ø°¡ÀÔÀ» ÇÏ½Ã¸é ±â»ç³»¿ë Àüü¸¦ º¸½Ç ¼ö ÀÖ½À´Ï´Ù.] ";
}
?>
newstype==2){
if($part_real_stat->login == 1){
if($_SESSION[USERID] && $_SESSION[PASSWD]){ //·Î±×ÀÎ ¾ÈµÈ »ç¿ëÀÚ´Â ±â»ç ³»¿ë ÀϺθ¸ º¸ÀÓ?>
}
} else {
?>
}
}
?>
if($stat->reg_date >= $admin_stat->news_editor_date || $stat->idx < 18939){
echo $tools->strHtml($content);
}else{
echo $tools->strHtmlBr($content);
}
?>
|
$copyright = $tools->strDateCut( $stat->reg_date, 8);
if($stat->newsho){
$newsho = $stat->newsho."È£";
}
?>
url : http://=$admin_stat->shop_domain?>/default/index_view_page.php?part_idx==$part_idx?>&idx==$idx?>
Copyrights ¨Ï=$admin_stat->shop_name?>¹«´Ü ÀüÀç ¹× Àç¹èÆ÷ ±ÝÁö