while ($row = sql_fetch_array($qry)) { $hot_list[] = sql_fetch("select wr_id, wr_subject, wr_link1, wr_link_write from {$write_table} where wr_id = '{$row['wr_id']}'"); } } else { $sql = " select wr_id, wr_subject, wr_link1, wr_link_write from {$write_table} where wr_is_comment = 0 and {$sql_between} {$sql_except} "; $sql .= " order by wr_{$mw_basic[cf_hot_basis]} desc limit {$mw_basic['cf_hot_limit']}"; $qry = sql_query($sql); while ($row = sql_fetch_array($qry)) { $hot_list[] = $row; } } mw_board_cache_write($hot_cache_file, $hot_list); } for ($i = 0, $m = count($hot_list); $row = $hot_list[$i]; $i++) { $row = get_list($row, $board, $board_skin_path, $mw_basic[cf_hot_len]); $row = mw_list_link($row); $row[subject] = mw_reg_str($row[subject]); $row[subject] = bc_code($row[subject], 0); $hot_list[$i] = $row; } ?> <div id=mw_basic_hot_list> <h3> <?php echo $hot_title; ?> 인기 게시물 </h3> <ul class=mw_basic_hot_dot> <?php for ($i = 0, $m = count($hot_list); $row = $hot_list[$i]; $i++) { ?> <li class=hot_icon_<?php
return; } if ($mw_basic[cf_notice_top]) { if (sizeof($notice_list)) { ?> <div id="notice_top"> <ul> <?php for ($i = 0, $m = sizeof($notice_list); $i < $m; $i++) { $sql = "select * from {$write_table} where wr_id = '{$notice_list[$i]}'"; $qry = sql_query($sql); while ($row = sql_fetch_array($qry)) { $notice = get_list($row, $board, $board_skin_path, $mw_basic[cf_notice_top_length]); $notice[subject] = mw_reg_str($notice[subject]); $notice[subject] = bc_code($notice[subject], 0); $notice = mw_list_link($notice); ?> <li> <i class="fa fa-bullhorn"></i> <span class="subject"><a href="<?php echo $notice[href]; ?> "><?php echo $notice[subject]; ?> </a></span> <?php if ($notice[comment_cnt]) { ?> <span class=mw_basic_list_comment_count><?php echo $notice[wr_comment];
$reward[edate] = substr($reward[re_edate], 5, 5); } $list_run_time = mw_time_log($list_run_time, "[list] reward"); } // 컨텐츠샵 $mw_price = ""; if ($mw_basic[cf_contents_shop]) { if ($list[$i][is_notice]) { $mw_price = ' '; } elseif (!$list[$i][wr_contents_price]) { $mw_price = "무료"; } else { $mw_price = number_format($list[$i][wr_contents_price]) . $mw_cash[cf_cash_unit]; } } $list[$i] = mw_list_link($list[$i]); // sns식 날짜표시 if ($mw_basic[cf_sns_datetime]) { $list[$i][datetime2] = "<span style='font-size:11px;'>" . mw_basic_sns_date($list[$i][wr_datetime]) . "</span>"; } if ($mw_basic['cf_time_list']) { $list[$i]['datetime2'] = mw_get_date($list[$i]['wr_datetime'], $mw_basic['cf_time_list']); } // 공지사항 출력 항목 if ($mw_basic[cf_post_name]) { $list[$i][name] = ""; } if ($mw_basic[cf_post_date]) { $list[$i][datetime2] = ""; } if ($mw_basic[cf_post_hit]) {