diff --git a/lib/latest.lib.php b/lib/latest.lib.php index d1facaa4f..4692f4f66 100644 --- a/lib/latest.lib.php +++ b/lib/latest.lib.php @@ -2,13 +2,9 @@ if (!defined('_GNUBOARD_')) exit; // 최신글 추출 -function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40, $position='left') +function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40) { global $g4; - static $lt_count=0; - - if ($position == 'right') - $lt_count++; if (!$skin_dir) $skin_dir = 'basic'; $latest_skin_path = skin_path().'/latest/'.$skin_dir; diff --git a/main.php b/main.php index d375e19ec..194ce613d 100644 --- a/main.php +++ b/main.php @@ -12,12 +12,21 @@ include_once('./_head.php'); $sql = " select bo_table from {$g4['board_table']} order by gr_id, bo_table "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { - // 이 함수가 바로 최신글을 추출하는 역할을 합니다. - // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. + $lt_style = ""; + if ($i%2==1) $lt_style = "margin-left:20px"; + else $lt_style = ""; +?> +