if ($wr_id) { 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
$sql_search .= " and (wr_num between '" . $spt . "' and '" . ($spt + $config[cf_search_part]) . "') "; // 원글만 얻는다. (코멘트의 내용도 검색하기 위함) $sql = " select distinct wr_parent from {$write_table} where {$sql_search} "; $result = sql_query($sql); $total_count = sql_num_rows($result); } else { $sql_search = ""; $total_count = $board[bo_count_write]; } // 자동치환 //$view[rich_content] = mw_reg_str($view[rich_content]); $view[wr_subject] = mw_reg_str($view[wr_subject]); $view[wr_subject] = bc_code($view[wr_subject], 0, 0); $prev_wr_subject = bc_code($prev_wr_subject, 0, 0); $prev_wr_subject = mw_reg_str($prev_wr_subject); $next_wr_subject = bc_code($next_wr_subject, 0, 0); $next_wr_subject = mw_reg_str($next_wr_subject); // IP보이기 사용 여부 $ip = ""; $is_ip_view = $board[bo_use_ip_view]; if ($is_admin) { $is_ip_view = true; $ip = $write[wr_ip]; } else { if ($mw_basic[cf_attribute] == 'anonymous') { $ip = ""; } else { if ($view[wr_anonymous]) { $ip = ""; } else { if ($view[mb_id] == $config[cf_admin]) {
} } 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 echo $i + 1; ?>
if (!$is_comment_write) { $row[is_edit] = false; $row[is_reply] = false; } $tmpsize = array(0, 0); $is_comment_image = false; $comment_image = mw_get_noimage(); if ($mw_basic[cf_attribute] != "anonymous" && !$row[wr_anonymous] && $row[mb_id] && file_exists("{$comment_image_path}/{$row[mb_id]}")) { $comment_image = "{$comment_image_path}/{$row[mb_id]}"; $is_comment_image = true; $tmpsize = @getImageSize($comment_image); $comment_image .= '?' . filemtime($comment_image); } $row[content] = mw_reg_str($row[content]); // 자동치환 $row[content] = bc_code($row[content]); if (strstr($row[wr_option], "html")) { $row[content] = mw_tag_debug($row[content]); } $row[content] = mw_set_sync_tag($row[content]); // 잘못된 태그교정 $row[content] = mw_youtube_content($row[content], "144"); // 유투브 자동 재생 if ($mw_basic[cf_iframe_level] && $mw_basic[cf_iframe_level] <= $mb[mb_level]) { $row[content] = mw_special_tag($row[content]); } // 관리자 게시물은 IP 주소를 보이지 않습니다 if ($row[mb_id] == $config[cf_admin]) { $row[ip] = ""; } $str = $row[content];
echo $wr_id; ?> &good="+good+"&no_cancel=1", function (data) { alert(data); mw_good_load(); }); } mw_good_load(); </script> <?php } ?> <?php echo bc_code($mw_basic[cf_content_tail], 1, 1); if ($mw_basic[cf_include_view_tail] && is_mw_file($mw_basic[cf_include_view_tail])) { include_once $mw_basic[cf_include_view_tail]; } ?> </div><!--view_$wr_id--> </div><!--mw_basic_view_content--> <?php if ($mw_basic[cf_talent_market]) { echo $talent_market_content; } if ($mw_basic[cf_google_map] && trim($write[wr_google_map]) && !$google_map_is_view && $google_map_code) { echo $google_map_code; }
} } $file_viewer = ob_get_contents(); ob_end_clean(); $write[wr_content] = conv_content($write[wr_content], $html); if (!strstr($write[wr_content], "{이미지:")) { // 파일 출력 $write[wr_content] = $file_viewer . $write[wr_content]; } else { $write[wr_content] = preg_replace("/{이미지\\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $write[wr_content]); } $write[wr_content] = preg_replace("/\\[\\<a\\s*href\\=\"(http|https|ftp)\\:\\/\\/([^[:space:]]+)\\.(gif|png|jpg|jpeg|bmp)\"\\s*[^\\>]*\\>.*\\<\\/a\\>\\]/iUs", "<img src='\$1://\$2.\$3'>", $write[wr_content]); $write[wr_content] = preg_replace("/\\[(http|https|ftp)\\:\\/\\/([^[:space:]]+)\\.(gif|png|jpg|jpeg|bmp)\\]/iUs", "<img src='\$1://\$2.\$3' id='target_resize_image[]' onclick='image_window(this);'>", $write[wr_content]); // 배추코드 $write[wr_subject] = bc_code($write[wr_subject]); $write[wr_content] = bc_code($write[wr_content]); $sql = " insert {$g4['mail_table']}\n set ma_subject = '" . addslashes($write[wr_subject]) . "',\n ma_content = '" . addslashes($write[wr_content]) . "',\n ma_time = '{$g4['time_ymdhis']}',\n ma_ip = '{$_SERVER['REMOTE_ADDR']}' "; sql_query($sql); die("등록되었습니다. 회원메일발송 페이지로 이동하시겠습니까?"); function view_file_link2($file, $width, $height, $content = "") { global $config, $board; global $g4; static $ids; if (!$file) { return; } $ids++; // 파일의 폭이 게시판설정의 이미지폭 보다 크다면 게시판설정 폭으로 맞추고 비율에 따라 높이를 계산 if ($width > $board[bo_image_width] && $board[bo_image_width]) { $rate = $board[bo_image_width] / $width;
} $data = @preg_replace($pattern, $replacement, $data); } } $view[rich_content] = $data; } // 추천링크 방지 $view[rich_content] = preg_replace("/bbs\\/good\\.php\\?/i", "#", $view[rich_content]); $view[rich_content] = preg_replace_callback("/\\[code\\](.*)\\[\\/code\\]/iUs", "_preg_callback", $view[rich_content]); $view[rich_content] = mw_reg_str($view[rich_content]); // 이미지 링크 $view[rich_content] = preg_replace("/\\[\\<a\\s*href\\=\"(http|https|ftp)\\:\\/\\/([^[:space:]]+)\\.(gif|png|jpg|jpeg|bmp)\"\\s*[^\\>]*\\>.*\\<\\/a\\>\\]/iUs", "<img src='\$1://\$2.\$3' id='target_resize_image[]' onclick='image_window(this);'>", $view[rich_content]); $view[rich_content] = preg_replace("/\\[(http|https|ftp)\\:\\/\\/([^[:space:]]+)\\.(gif|png|jpg|jpeg|bmp)\\]/iUs", "<img src='\$1://\$2.\$3' id='target_resize_image[]' onclick='image_window(this);'>", $view[rich_content]); $view[rich_content] = preg_replace("/\\[\\<a\\s*href\\=\"(http|https|ftp)\\:\\/\\/([^[:space:]]+)\\.(gif|png|jpg|jpeg|bmp)\\]\"\\s*[^\\>]*\\>.*\\]\\<\\/a\\>/iUs", "<img src='\$1://\$2.\$3' id='target_resize_image[]' onclick='image_window(this);'>", $view[rich_content]); // 배추코드 $view[rich_content] = bc_code($view[rich_content], 1, 0); if (strstr($write[wr_option], "html")) { $view[rich_content] = mw_tag_debug($view[rich_content]); } $view[rich_content] = mw_set_sync_tag($view[rich_content]); if ($mw_basic[cf_iframe_level] && $mw_basic[cf_iframe_level] <= $mb[mb_level]) { $view[rich_content] = mw_special_tag($view[rich_content]); } $google_map_code = null; $google_map_is_view = false; if ($mw_basic[cf_google_map] && trim($write[wr_google_map])) { ob_start(); ?> <script src="http://maps.google.com/maps/api/js?sensor=true&language=ko"></script> <script src="<?php echo $board_skin_path;
?> % (<b><?php echo $hold_point; ?> </b> 포인트)</span> 만 되돌려드립니다. </div> <?php } ?> </div> <?php } ?> <?php echo bc_code($mw_basic[cf_comment_tail]); ?> <!-- 코멘트 입력 --> <?php // 에디터 if ($mw_basic[cf_comment_editor] && $is_comment_write || $mw_basic[cf_admin_dhtml_comment] && $is_admin) { $is_comment_editor = true; } else { $is_comment_editor = false; } // 모바일 접근시 에디터 사용안함 if (mw_agent_mobile()) { $is_comment_editor = false; }
$ca_color = $mw_category_list[$list[$i]['ca_name']]['ca_color']; } $ca_color_style = ''; if ($ca_color) { $ca_color_style = " style='color:#{$ca_color}' "; } // 댓글감춤 if ($list[$i][wr_comment_hide]) { $list[$i][comment_cnt] = 0; } // 호칭 $list[$i][name] = get_name_title($list[$i][name], $list[$i][wr_name]); $list[$i][name] = mw_sideview($list[$i][name]); $list[$i]['subject'] = $list[$i]['wr_subject']; $list[$i]['subject'] = mw_reg_str($list[$i]['subject']); $list[$i]['subject'] = bc_code($list[$i]['subject'], 0); $list[$i]['subject'] = conv_subject($list[$i]['subject'], $board['bo_subject_len'], "…"); if (strstr($sfl, 'subject')) { $list[$i]['subject'] = search_font($stx, $list[$i]['subject']); } // 멤버쉽 아이콘 if (function_exists("mw_cash_membership_icon") && $list[$i][mb_id] != $config[cf_admin]) { if (!in_array($list[$i][mb_id], $mw_membership)) { $mw_membership[] = $list[$i][mb_id]; $mw_membership_icon[$list[$i][mb_id]] = mw_cash_membership_icon($list[$i][mb_id]); $list[$i][name] = $mw_membership_icon[$list[$i][mb_id]] . $list[$i][name]; } else { $list[$i][name] = $mw_membership_icon[$list[$i][mb_id]] . $list[$i][name]; } $list_run_time = mw_time_log($list_run_time, "[list] mw_cash_membership_icon()"); }