From c197036c1fb7403f4584a55c827ce569363ad8c0 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 24 Mar 2014 15:17:44 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=9D=BC=20?= =?UTF-8?q?=EB=95=8C=EB=8A=94=20=EC=9D=B8=EC=A6=9D=20=EA=B2=8C=EC=8B=9C?= =?UTF-8?q?=ED=8C=90=20=EC=B5=9C=EC=8B=A0=EA=B8=80=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/group.php | 7 ++++--- index.php | 7 ++++--- mobile/group.php | 7 ++++--- mobile/index.php | 7 ++++--- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/bbs/group.php b/bbs/group.php index 833155aac..6b0ed8441 100644 --- a/bbs/group.php +++ b/bbs/group.php @@ -22,9 +22,10 @@ $sql = " select bo_table, bo_subject from {$g5[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' - and bo_device <> 'mobile' - and bo_use_cert = '' - order by bo_order "; + and bo_device <> 'mobile' "; +if(!$is_admin) + $sql .= " and bo_use_cert = '' "; +$sql .= " order by bo_order "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $lt_style = ""; diff --git a/index.php b/index.php index fb648761e..b5e308d96 100644 --- a/index.php +++ b/index.php @@ -24,9 +24,10 @@ include_once('./_head.php'); // 최신글 $sql = " select bo_table from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id) - where a.bo_device <> 'mobile' - and a.bo_use_cert = '' - order by b.gr_order, a.bo_order "; + where a.bo_device <> 'mobile' "; +if(!$is_admin) + $sql .= " and a.bo_use_cert = '' "; +$sql .= " order by b.gr_order, a.bo_order "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { if ($i%2==1) $lt_style = "margin-left:20px"; diff --git a/mobile/group.php b/mobile/group.php index 9ad4d6e51..1c76c69fb 100644 --- a/mobile/group.php +++ b/mobile/group.php @@ -14,9 +14,10 @@ $sql = " select bo_table, bo_subject from {$g5[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' - and bo_device <> 'pc' - and bo_use_cert = '' - order by bo_table "; + and bo_device <> 'pc' "; +if(!$is_admin) + $sql .= " and bo_use_cert = '' "; +$sql .= " order by bo_table "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { // 이 함수가 바로 최신글을 추출하는 역할을 합니다. diff --git a/mobile/index.php b/mobile/index.php index 412e66457..541213c26 100644 --- a/mobile/index.php +++ b/mobile/index.php @@ -9,9 +9,10 @@ include_once(G5_MOBILE_PATH.'/_head.php'); // 최신글 $sql = " select bo_table from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id) - where a.bo_device <> 'pc' - and a.bo_use_cert = '' - order by b.gr_order, a.bo_order "; + where a.bo_device <> 'pc' "; +if(!$is_admin) + $sql .= " and a.bo_use_cert = '' "; +$sql .= " order by b.gr_order, a.bo_order "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { // 이 함수가 바로 최신글을 추출하는 역할을 합니다.