From ecaae4d8fa0ff5b51581b08ed892cff633a8981b Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 5 Mar 2013 16:01:06 +0900 Subject: [PATCH 1/6] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=EC=9A=A9=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=95=20=EB=B3=80=EC=88=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/new.php | 4 ++-- bbs/point.php | 31 ++++++++++++------------- mobile/skin/member/basic/scrap.skin.php | 2 +- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/bbs/new.php b/bbs/new.php index 2d23a6ea7..d2b2c3978 100644 --- a/bbs/new.php +++ b/bbs/new.php @@ -48,7 +48,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { $tmp_write_table = $g4['write_prefix'].$row['bo_table']; if ($row['wr_id'] == $row['wr_parent']) { - + // 원글 $comment = ""; $comment_link = ""; @@ -103,7 +103,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { $list[$i]['wr_subject'] = $row2['wr_subject']; } -$write_pages = get_paging($config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page="); +$write_pages = get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page="); include_once($new_skin_path.'/new.skin.php'); diff --git a/bbs/point.php b/bbs/point.php index 6c24174d6..1c1762cb9 100644 --- a/bbs/point.php +++ b/bbs/point.php @@ -1,22 +1,22 @@ 보유포인트 - + @@ -72,18 +72,18 @@ for($i=0; $row=sql_fetch_array($result); $i++) { $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $point1 = $point2 = 0; - if ($row[po_point] > 0) { - $point1 = '+' .number_format($row[po_point]); - $sum_point1 += $row[po_point]; + if ($row['po_point'] > 0) { + $point1 = '+' .number_format($row['po_point']); + $sum_point1 += $row['po_point']; } else { - $point2 = number_format($row[po_point]); - $sum_point2 += $row[po_point]; + $point2 = number_format($row['po_point']); + $sum_point2 += $row['po_point']; } ?> - - + + @@ -102,14 +102,13 @@ for($i=0; $row=sql_fetch_array($result); $i++) { - + +
창닫기
- \ No newline at end of file From a63f950606ac838fa2a8b5c2f2164f342c216849 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 5 Mar 2013 16:06:14 +0900 Subject: [PATCH 3/6] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=95=20=EB=B3=80=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/search.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/bbs/search.php b/bbs/search.php index b4be43264..448e1bd55 100644 --- a/bbs/search.php +++ b/bbs/search.php @@ -29,9 +29,9 @@ if ($stx) { $sql .= " and bo_table = '{$onetable}' "; $sql .= " order by bo_order, gr_id, bo_table "; $result = sql_query($sql); - for ($i=0; $row=sql_fetch_array($result); $i++) + for ($i=0; $row=sql_fetch_array($result); $i++) { - if ($is_admin != 'super') + if ($is_admin != 'super') { // 그룹접근 사용에 대한 검색 차단 $sql2 = " select gr_use_access, gr_admin from {$g4['group_table']} where gr_id = '{$row['gr_id']}' "; @@ -44,7 +44,7 @@ if ($stx) { } else { $sql3 = " select count(*) as cnt from {$g4['group_member_table']} where gr_id = '{$row['gr_id']}' and mb_id = '{$member['mb_id']}' and mb_id <> '' "; $row3 = sql_fetch($sql3); - if (!$row3['cnt']) + if (!$row3['cnt']) continue; } } @@ -73,7 +73,7 @@ if ($stx) { $search_str = $s[$i]; $str .= $op1; $str .= "("; - + $op2 = ''; // 필드의 수만큼 다중 필드 검색 가능 (필드1+필드2...) for ($k=0; $k= $rows) - break; + if ($k >= $rows) + break; } sql_free_result($result); - - if ($k >= $rows) - break; + + if ($k >= $rows) + break; $from_record = 0; } - $write_pages = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$search_query.'&gr_id='.$gr_id.'&srows='.$srows.'&onetable='.$onetable.'&page='); + $write_pages = get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$search_query.'&gr_id='.$gr_id.'&srows='.$srows.'&onetable='.$onetable.'&page='); } $group_select = '