$str = "<span class='mw_basic_comment_secret'>* {$str}</span>"; } $str = preg_replace("/\\[\\<a\\s.*href\\=\"(http|https|ftp|mms)\\:\\/\\/([^[:space:]]+)\\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\\<\\/a\\>\\]/i", "<script>doc_write(obj_movie('\$1://\$2.\$3'));</script>", $str); // FLASH XSS 공격에 의해 주석 처리 //$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str); // 검색시 적용안되는 문제 //$str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);'>", $str); $str = 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);'>", $str); $str = 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);'>", $str); $str = preg_replace_callback("/\\[code\\](.*)\\[\\/code\\]/iU", "_preg_callback", $str); $row[content] = $str; if (!$mw_basic['cf_time_comment']) { $mw_basic['cf_time_comment'] = "Y-m-d (w) H:i"; } $row['datetime2'] = mw_get_date($row['wr_datetime'], $mw_basic['cf_time_comment']); $row['datetime_sns'] = mw_get_date($row['wr_datetime'], 'sns'); if ($row[del_link]) { $row[del_link] = mw_bbs_path($row[del_link]); } $row[content] = preg_replace("/(\\[@[^\\]]+\\])/iUs", "<span style='font-weight:bold;'>\\1</span>", $row[content]); if ($mw_basic['cf_rate_level'] && $row['wr_rate'] > 0) { ob_start(); ?> <div id="star_rate_<?php echo $row['wr_id']; ?> " style="margin:0 0 10px 0;"></div> <script> $(document).ready(function () { $("#star_rate_<?php echo $row['wr_id'];
<?php } ?> <?php $view_sns = ob_get_contents(); ob_end_clean(); } if (function_exists("mw_moa_read")) { mw_moa_read($member['mb_id'], $bo_table, $wr_id); } if (!$mw_basic['cf_time_view']) { $mw_basic['cf_time_view'] = "Y-m-d (w) H:i"; } $view['datetime2'] = mw_get_date($write['wr_datetime'], $mw_basic['cf_time_view']); $view['datetime_sns'] = mw_get_date($write['wr_datetime'], 'sns'); $mw_admin_button = ''; if ($is_admin || $history_href || $is_singo_admin) { ob_start(); ?> <script> $(document).ready(function () { $(".mw_manage_title").mouseenter(function () { $manage_button = $(this); $(".mw_manage").css("top", $manage_button.position().top+10); $(".mw_manage").css("left", $manage_button.position().left - ($(".mw_manage").width()-$manage_button.width())); $(".mw_manage").css("display", "block"); $(".mw_manage .item").mouseenter(function () { $(this).css("background-color", "#ddd"); }); $(".mw_manage .item").mouseleave(function () {
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]) { $list[$i][wr_hit] = ""; } if ($list[$i][is_notice]) { if ($mw_basic[cf_notice_name]) { $list[$i][name] = ""; }