diff --git a/bbs/faq.php b/bbs/faq.php index d3fe9406e..affa51c97 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -64,11 +64,9 @@ if(is_file($skin_file)) { $faq_list = array(); $stx = trim($stx); - $sql_search = ''; if($stx) { $sql_search = " and ( INSTR(fa_subject, '$stx') > 0 or INSTR(fa_content, '$stx') > 0 ) "; - $category_stx = '&stx='.$stx; } if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) @@ -92,8 +90,12 @@ if(is_file($skin_file)) { order by fa_order , fa_id limit $from_record, $page_rows "; $result = sql_query($sql); - while ($row=sql_fetch_array($result)){ + for ($i=0;$row=sql_fetch_array($result);$i++){ $faq_list[] = $row; + if($stx) { + $faq_list[$i]['fa_subject'] = search_font($stx, $faq_list[$i]['fa_subject']); + $faq_list[$i]['fa_content'] = search_font($stx, $faq_list[$i]['fa_content']); + } } include_once($skin_file); } else { diff --git a/g4_import_run.php b/g4_import_run.php index 8392e0d6b..867af24cc 100644 --- a/g4_import_run.php +++ b/g4_import_run.php @@ -263,15 +263,21 @@ document.onkeydown = noRefresh ; // visit table 복사 $sql = " select * from {$g4['visit_table']} "; $result = sql_query($sql); + + // g5_visit 테이블 초기화 + sql_query(" delete from {$g5['visit_table']} "); + for($i=0; $row=sql_fetch_array($result); $i++) { if($is_euckr) $row = array_map('iconv_utf8', $row); // 중복체크 + /* $sql2 = " select count(*) as cnt from {$g5['visit_table']} where vi_ip = '{$row['vi_ip']}' and vi_date = '{$row['vi_date']}' "; $row2 = sql_fetch($sql2); if($row2['cnt']) continue; + */ $comma = ''; $sql_common = ''; @@ -289,15 +295,21 @@ document.onkeydown = noRefresh ; // visit sum table 복사 $sql = " select * from {$g4['visit_sum_table']} "; $result = sql_query($sql); + + // g5_visit_sub 테이블 초기화 + sql_query(" delete from {$g5['visit_sum_table']} "); + for($i=0; $row=sql_fetch_array($result); $i++) { if($is_euckr) $row = array_map('iconv_utf8', $row); // 중복체크 + /* $sql2 = " select count(*) as cnt from {$g5['visit_sum_table']} where vs_date = '{$row['vs_date']}' "; $row2 = sql_fetch($sql2); if($row2['cnt']) continue; + */ $comma = ''; $sql_common = ''; diff --git a/mobile/skin/faq/basic/list.skin.php b/mobile/skin/faq/basic/list.skin.php index 931fb8832..d823a9579 100644 --- a/mobile/skin/faq/basic/list.skin.php +++ b/mobile/skin/faq/basic/list.skin.php @@ -26,7 +26,7 @@ if( count($faq_master_list) ){ $category_msg = '열린 분류 '; } ?> -
  • >
  • +
  • >
  • @@ -62,7 +62,7 @@ if( count($faq_master_list) ){ } else { if($stx){ - echo '

    검색된 게시물이 없습니다.

    '; + echo '

    검색된 게시물이 없습니다.

    '; } else { echo '
    등록된 FAQ가 없습니다.'; if($is_admin) diff --git a/skin/faq/basic/list.skin.php b/skin/faq/basic/list.skin.php index 56792c1be..bf26708de 100644 --- a/skin/faq/basic/list.skin.php +++ b/skin/faq/basic/list.skin.php @@ -32,7 +32,7 @@ if( count($faq_master_list) ){ $category_msg = '열린 분류 '; } ?> -
  • >
  • +
  • >
  • @@ -68,7 +68,7 @@ if( count($faq_master_list) ){ } else { if($stx){ - echo '

    검색된 게시물이 없습니다.

    '; + echo '

    검색된 게시물이 없습니다.

    '; } else { echo '
    등록된 FAQ가 없습니다.'; if($is_admin)