diff --git a/bbs/board.php b/bbs/board.php index 2fa3dcda0..4d734128c 100644 --- a/bbs/board.php +++ b/bbs/board.php @@ -130,13 +130,13 @@ if (isset($wr_id) && $wr_id) { if ($config['cf_use_point'] && $board['bo_read_point'] && $member['mb_point'] + $board['bo_read_point'] < 0) alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 글읽기('.number_format($board['bo_read_point']).')가 불가합니다.\\n\\n포인트를 모으신 후 다시 글읽기 해 주십시오.'); - insert_point($member['mb_id'], $board['bo_read_point'], "{$board['bo_subject']} {$wr_id} 글읽기", $bo_table, $wr_id, '읽기'); + insert_point($member['mb_id'], $board['bo_read_point'], ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']).' '.$wr_id.' 글읽기', $bo_table, $wr_id, '읽기'); } set_session($ss_name, TRUE); } - $g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." > ".$board['bo_subject']; + $g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." > ".((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']); } else { if ($member['mb_level'] < $board['bo_list_level']) { if ($member['mb_id']) @@ -171,7 +171,7 @@ if (isset($wr_id) && $wr_id) { if (!isset($page) || (isset($page) && $page == 0)) $page = 1; - $g5['title'] = $board['bo_subject']." ".$page." 페이지"; + $g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']).' '.$page.' 페이지'; } include_once(G5_PATH.'/head.sub.php'); diff --git a/bbs/new.php b/bbs/new.php index 9e008e861..06233009d 100644 --- a/bbs/new.php +++ b/bbs/new.php @@ -46,7 +46,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { $group_select .= ''; $list = array(); -$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$from_record}, {$rows} "; +$sql = " select a.*, b.bo_subject, b.bo_mobile_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$from_record}, {$rows} "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $tmp_write_table = $g5['write_prefix'].$row['bo_table']; @@ -104,7 +104,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { $list[$i]['datetime2'] = $datetime2; $list[$i]['gr_subject'] = $row['gr_subject']; - $list[$i]['bo_subject'] = $row['bo_subject']; + $list[$i]['bo_subject'] = ((G5_IS_MOBILE && $row['bo_mobile_subject']) ? $row['bo_mobile_subject'] : $row['bo_subject']); $list[$i]['wr_subject'] = $row2['wr_subject']; } diff --git a/bbs/search.php b/bbs/search.php index b9831eb67..32ebf3e99 100644 --- a/bbs/search.php +++ b/bbs/search.php @@ -129,13 +129,13 @@ if ($stx) { $read_level[] = $g5_search['read_level'][$i]; $search_table_count[] = $total_count; - $sql2 = " select bo_subject from {$g5['board_table']} where bo_table = '{$g5_search['tables'][$i]}' "; + $sql2 = " select bo_subject, bo_mobile_subject from {$g5['board_table']} where bo_table = '{$g5_search['tables'][$i]}' "; $row2 = sql_fetch($sql2); $sch_class = ""; $sch_all = ""; if ($onetable == $g5_search['tables'][$i]) $sch_class = "class=sch_on"; else $sch_all = "class=sch_on"; - $str_board_list .= '
  • '.$row2['bo_subject'].''.$row['cnt'].'
  • '; + $str_board_list .= '
  • '.((G5_IS_MOBILE && $row2['bo_mobile_subject']) ? $row2['bo_mobile_subject'] : $row2['bo_subject']).''.$row['cnt'].'
  • '; } } @@ -157,9 +157,9 @@ if ($stx) { $k=0; for ($idx=$table_index; $idx', 0); ?> -

    목록

    +

    목록

    ">