인증을 사용하는 게시판의 최신글을 추출하지 않도록 수정
This commit is contained in:
@ -18,7 +18,13 @@ include_once('./_head.php');
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?php
|
||||
// 최신글
|
||||
$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' order by bo_order ";
|
||||
$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 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$lt_style = "";
|
||||
|
||||
@ -22,7 +22,11 @@ include_once('./_head.php');
|
||||
<!-- 최신글 시작 { -->
|
||||
<?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' order by b.gr_order, a.bo_order ";
|
||||
$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 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if ($i%2==1) $lt_style = "margin-left:20px";
|
||||
|
||||
@ -10,7 +10,13 @@ include_once(G5_MOBILE_PATH.'/_head.php');
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?php
|
||||
// 최신글
|
||||
$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' order by bo_table ";
|
||||
$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 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
|
||||
@ -7,7 +7,11 @@ include_once(G5_MOBILE_PATH.'/_head.php');
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?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' order by b.gr_order, a.bo_order ";
|
||||
$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 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
|
||||
Reference in New Issue
Block a user