1 ) { if ( $cfg['url_move'] ) $url_move = $cfg['url_move']; else $url_move = "#"; } else $url_move = "?$cfg[category]"; // 기본 값 처리 if ( ! isset($cfg['cname']) ) $cfg['cname'] = NULL; if ( ! isset($cfg['number']) || !is_numeric($cfg['number']) ) $cfg['number'] = 10; if ( ! isset($cfg['header']) ) $cfg['header'] = NULL; if ( ! isset($cfg['name']) ) $cfg['name'] = NULL; if ( ! isset($cfg['new']) ) $cfg['new'] = NULL; if ( ! isset($cfg['date']) ) $cfg['date'] = NULL; if ( ! isset($cfg['reply']) ) $cfg['reply'] = NULL; if ( ! isset($cfg['file']) ) $cfg['file'] = NULL; if ( ! isset($cfg['length_subject']) ) $cfg['length_subject'] = 10; if ( ! isset($cfg['width']) ) $cfg['width'] = 200; // lib('post'); lib('utility'); lib('string'); $posts = articles($categories, $cfg['number']); if ( faultcode($posts) ) { alert("데이터베이스로 부터 글을 가져올 수 없습니다. 카테고리를 확인하십시오."); return; } $res = "etc/res/box"; ?>
/aqua_dot.gif> | ||
/aqua_dot.gif width=1> | /aqua_dot.gif width=1> | |
/aqua_dot.gif width=1> | /aqua_dot.gif width=1> | |
/aqua_header.gif> | ||
/aqua_dot.gif width=1> |
foreach( $posts as $post )
{
if ( $cfg['cname'] == 'checked' )
{
$c = category($post['idx_category']);
echo " $c[name]";
}
if ( $cfg['new'] == 'checked' )
{
if (isNew($post['dateTime']) ) echo "
\n"; } ?> |
/aqua_dot.gif width=1> |
/aqua_dot.gif> |