'$id' and id=parent_id and subject!='' order by id ASC limit 0,1"; $select_list=mysql_query($query); query_chk($select_list,"list select error"); $list_pre=mysql_fetch_array($select_list); #-------´ÙÀ½±Û $query="select id,subject from $board where parent_id<'$id' and id=parent_id and subject!='' order by id DESC limit 0,1"; $select_list=mysql_query($query); query_chk($select_list,"list select error"); $list_next=mysql_fetch_array($select_list); #-------ÇöÁ¦ ¼±ÅÃµÈ±Û $query="select id,subject,name,email,body,home_page,reg_date,ip,r_num,type,up_filename,parent_id,sort,n_type,pic_location from $board where id='$id'"; $select_list=mysql_query($query); query_chk($select_list,"list select error"); $list=mysql_fetch_array($select_list); #------- ±â»çÀϰæ¿ì »çÁø Ãâ·Â if($board_info[skin]==0 and $list[up_filename]){ switch($list[pic_location]){ case("left") : $pic=""; break; case("right") : $pic=""; break; case("center") : $pic="

"; break; }#switch }#if if($list[type]=="text"){ $list[body]=htmlspecialchars($list[body]); $list[body]=nl2br($list[body]); #$list[body]="
".$list[body]."
"; } #-------±ÛÀÇ Ã³À½°ú ¸¶Áö¸·À» ÆÇ´ÜÇÑ´Ù. if(!$list_pre[id]){ $list_pre_dsp="Çö".$n_type_text1."ÀÇ Ã³À½ÀÔ´Ï´Ù."; } else{ $list_pre_dsp="$list_pre[subject]"; } if(!$list_next[id]){ $list_next_dsp="Çö".$n_type_text1."ÀÇ ¸¶Áö¸·ÀÔ´Ï´Ù."; } else{ $list_next_dsp="$list_next[subject]"; } #-------°Ô½Ã¹°ÀÇ Á¶È¸¼ö Áõ°¡ if($mode!="comment" and $mode!="delete"){ $r_num=$list[r_num]+1; $r_num_update=mysql_query("update $board set r_num='$r_num' where id='$id'"); query_chk($r_num_update,"r_num update error"); } if($list[email]){ $name_link="$list[name]"; } else{ $name_link="$list[name]"; } if($list[home_page]){ $home_page_link=" ȨÆäÀÌÁö[$list[home_page]]"; } $top_name="µî·ÏÀÎ[$name_link]"."$home_page_link"; $top_state="IP["."$list[ip]"."] µî·ÏÀÏ["."$list[reg_date]"."] Á¶È¸¼ö["."$list[r_num]"."]"; #-------°Ë»öÀϰæ¿ì °Ë»ö´Ü¾î Ç¥½ÃÇϱâ if($ser_type and $search){ $list[$ser_type]=ereg_replace("$search","$search",$list[$ser_type]); } #-------÷ºÎÆÄÀÏ Á¸Á¦ È®ÀÎ if(file_exists("./zboard/data/$board/$list[up_filename]")){ $f_type_chk=explode(".",$list[up_filename]); if( strtolower($f_type_chk[count($f_type_chk)-1])=="gif" or strtolower($f_type_chk[count($f_type_chk)-1])=="jpg" or strtolower($f_type_chk[count($f_type_chk)-1])=="png" or strtolower($f_type_chk[count($f_type_chk)-1])=="jpeg" or strtolower($f_type_chk[count($f_type_chk)-1])=="bmp" ){ $pic_size=GetImageSize("./zboard/data/$board/$list[up_filename]"); $width=$pic_size[0]; $height=$pic_size[1]; $limit_w=563; $limit_h=422; $percentage_w=$width/$limit_w; $percentage_h=$height/$limit_h; if($height > $limit_h || $width > $limit_w) { if(($height > $limit_h && $width > $limit_w && $percentage_w > $percentage_h) || ($height < $limit_h && $width > $limit_w)) {$percentage=$percentage_w;} elseif(($height > $limit_h && $width > $limit_w && $percentage_w < $percentage_h) || ($height > $limit_h && $width < $limit_w)) {$percentage=$percentage_h;} } else{$percentage=1;} $height_new=$height/$percentage; $width_new=$width/$percentage; $file="

"; } else{ $file="$list[up_filename]"; } } else{ $file="÷ºÎÆÄÀÏÀÌ ¾ø½À´Ï´Ù."; } if($board_info[skin]==0){ #------- n_type ¼³Á¤ $n_type=strtoupper($list[n_type]); $n_type=$n_type."-"; } ?> "; ?>
"; } ?>
$file
"; } if($board_info[skin]!=0 or $board_mode=="2"){ echo" "; } ?>
²¿¸®±Û
±Û¾´ÀÌ
ºñ¹Ð¹øÈ£
"; } ?>
"; include "http://myicon.ciz21.com/icon.html?icon=$cmt[name]"; echo"
From $cmt[ip] At $cmt[reg_date]
".nl2br($cmt[body])."
¡¿
ÀÌÀü
´ÙÀ½
´ä±Û[$board_list_num]
F
"; } ?> new"; } else{ $subject_tail=""; } if($search){ $list[$ser_type]=ereg_replace("$search","$search",$list[$ser_type]); } $subject_tab_str=""; if(ereg("-+",$list[sort])){ $subject_tab=ereg_replace("[^-]","",$list[sort]); $subject_tab_len=strlen($subject_tab); while($subject_tab_len){ $subject_tab_str=$subject_tab_str."  "; $subject_tab_len=$subject_tab_len-1; } $subject_tab_str=$subject_tab_str."+>"; } $subject_tab_len=ceil((strlen($subject_tab_str)-5)/6+5); $subject_len=strlen($list[subject]); $total_len=$subject_len+$subject_tab_len; $cut_point=70-$subject_tab_len; if($total_len>70){ $list[subject]=substr($list[subject],0,$cut_point); $list[subject]=$list[subject]."..."; } if($list[id]==$id){ $location="$board_info[color_d]"; $l_str="+>"; } else{ $location=""; $l_str=""; } if($list[up_filename]){ $files="DN"; } else{ $files=""; } if($list[email]){ $reg_name="$list[name]"; } else{ $reg_name="$list[name]"; } echo""; if($board_info[upload]=="yes"){ echo" "; } echo" "; } print "
L
Á¦¸ñ
H
µî·ÏÀÏ
µî·ÏÀÎ
$l_str
$subject_tab_str$list[subject] $subject_tail
$list[r_num]
$files
$list[reg_date]
$reg_name
"; }#top_if ÀÌ·±½ÄÀ¸·Îµµ IF°¡ ¸Ô´Â´ç~~~~~¿ìÇØÇØ~~~~~~¿ä°Ç À§ÀÇ W_mode ÆÇ´ç IF²¨~ ?>

ºñ¹Ð¹øÈ£