All HeadLine
$headline_news[email]]"; } else{ $name="[$headline_news[name]]"; } if($headline_news[up_filename]){ switch($headline_news[pic_location]){ case("left") : $pic=""; break; case("right") : $pic=""; break; case("center") : $pic="

"; break; }#switch }#if else{ $pic=""; }#else #------- Çìµå¶óÀÎ ±â»ç ÀÚ¸£±â $str_location=500; if(strlen($headline_news[body])>$str_location and $headline_news[type]!="html"){#if...1 $headline_news[body]=substr($headline_news[body],0,$str_location+1); $aa=ord(substr($headline_news[body],15,-1)); while(ord(substr($headline_news[body],$str_location-1,-1))>126){ $str_location=$str_location-1; }#if...1 $headline_news[body]=substr($headline_news[body],0,$str_location); $headline_news[body]=$headline_news[body]."....."; } if($headline_news[type]=="text"){ $headline_news[body]=htmlspecialchars($headline_news[body]); $headline_news[body]=trim($headline_news[body]); $headline_news[body]=nl2br($headline_news[body]); } $headline_news[body]=$headline_news[body]."[°è¼Ó]"; echo"

$headline_news[subject]

$pic$headline_news[body]

"; }#while }#while ?>
"; #------- °¢ º¸µåÀÇ ÃÖ±Ù 20°³±Û ºÒ·¯¿À±â $query="select * from board_admin where skin!='0' order by category,sort"; $board_db=mysql_query($query); query_chk($board_db,"board_db select error"); if(mysql_num_rows($board_db)>0){ $l_num=20/mysql_num_rows($board_db); } while($board_base=mysql_fetch_array($board_db)){ if(mysql_num_rows($board_db)==1){ echo" "; exit; } $board_name="zboard".$board_base[board_id]; $board_list=db_access("select * from $board_name where subject!='' order by parent_id DESC, sort ASC limit 0,5"); if(mysql_num_rows($board_list)>0){ echo "
$board_base[board_name]
"; print ""; while($list=mysql_fetch_array($board_list)){ $cmt_no=mysql_num_rows(db_access("select * from $board_name where parent_id='$list[id]' and subject=''")); echo " "; echo " "; }#while print "
- ".$list[subject]."[$cmt_no][".$list[reg_date].":".$list[r_num]." read]"."
"; } }#while print "
"; ?>