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; } ?>
"; else echo " "; } echo " ". strcut($post['title'], $cfg['length_subject'], "") . ""; if ( $cfg['name'] == 'checked' ) echo " " . postname($post); if ( $cfg['date'] == 'checked' ) echo " " . dt($post['dateTime_firstwrite']); if ( $cfg['reply'] == 'checked' ) echo " " . em($post['children']); if ( $cfg['file'] == 'checked' ) echo " " . em($post['files'],NULL,2); echo "
\n"; } ?>