리자

프로그램을 아주 약간 수정하였습니다.

lib.inc.php 의

function set_search_font($stext, $str)
{
   // / 검색시 오류나는 부분을 수정
   return ereg_replace("$stext", "__SEARCH_FONT_BEGIN__{$stext}__SEARCH_FONT_END__", $str);

   //return preg_replace("/$stext/i", "__SEARCH_FONT_BEGIN__{$stext}__SEARCH_FONT_END__", $str);
}

그리고 gbview.php 가 수정 되었습니다.


$subject = cut_str($write[wr_subject], 255);
if ($stext && preg_match("/wr_subject/", $sselect)) {
   $subject = set_search_font($stext, $subject);
}
$subject = get_text($subject);
if ($stext && preg_match("/wr_subject/", $sselect)) {
$subject = get_search_font($subject);
}

$content = $write[wr_content];
// 텍스트이면
if (!$write[wr_html]) {
if ($stext && preg_match("/wr_content/", $sselect)) {
$content = set_search_font($stext, $content);
}
$content = get_text($content, 1);
if ($stext && preg_match("/wr_content/", $sselect)) {
$content = get_search_font($content);
}
}
|

댓글 1개

댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
레이
22년 전 조회 1,377
22년 전 조회 1,682
레이
22년 전 조회 1,628
22년 전 조회 1,495
22년 전 조회 1,393
22년 전 조회 1,356
레이
22년 전 조회 1,359
레이
22년 전 조회 1,383
레이
22년 전 조회 1,273
22년 전 조회 1,462
레이
22년 전 조회 1,357
레이
22년 전 조회 1,379
우리아빠
22년 전 조회 1,916
22년 전 조회 1,443
22년 전 조회 1,622
22년 전 조회 1,433
22년 전 조회 1,825
22년 전 조회 1,613
22년 전 조회 1,382
22년 전 조회 1,771