if (!defined('_GNUBOARD_')) exit; function latest_bann($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="") { global $g5; if(preg_match('#^theme/(.+)$#', $skin_dir, $match)) { if (G5_IS_MOBILE) { $latest_skin_path = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/latest/'.$match[1]; if(!is_dir($latest_skin_path)) $latest_skin_path = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/latest/'.$match[1]; $latest_skin_url = str_replace(G5_PATH, G5_URL, $latest_skin_path); } else { $latest_skin_path = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/latest/'.$match[1]; $latest_skin_url = str_replace(G5_PATH, G5_URL, $latest_skin_path); } $skin_dir = $match[1]; } else { if(G5_IS_MOBILE) { $latest_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/latest/'.$skin_dir; $latest_skin_url = G5_MOBILE_URL.'/'.G5_SKIN_DIR.'/latest/'.$skin_dir; } else { $latest_skin_path = G5_SKIN_PATH.'/latest/'.$skin_dir; $latest_skin_url = G5_SKIN_URL.'/latest/'.$skin_dir; } } $list = array(); $sql = " select * from {$g5[board_table]} where bo_table = '$bo_table'"; $board = sql_fetch($sql); $tmp_write_table = $g5['write_prefix'] . $bo_table; $option_sql = " wr_is_comment = 0 "; $option_sql .= (!empty($options)) ? "and ca_name = '".$options."'":""; $sql = " select * from $tmp_write_table where $option_sql order by wr_num limit 0, $rows "; $result = sql_query($sql); for ($i=0; $row = sql_fetch_array($result); $i++) $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len); ob_start(); include "$latest_skin_path/latest.skin.php"; $content = ob_get_contents(); ob_end_clean(); return $content; } ?>
회사명 : CODIZIN / 대표 : 권영준
주소 : 서울시 서대문구 이화여대 1길 38, 2층 201호
사업자 등록번호 : 687-63-00535
팩스 : 02-6008-8469
개인정보관리책임자 : Dr.Eum
등록된 코멘트가 없습니다.