테스트 사이트 - 개발 중인 베타 버전입니다

게시판 부분 문의드립니다~~ 채택완료

gnsl0308 9년 전 조회 3,606

작업하다 막히네요^^;;

메인페이지에는 왼쪽메뉴에 게시판 전체가 다 나오게 되어 있는데

서브페이지로 이동하면 해당 카테고리의 게시판만 나옵니다

이걸 메인 페이지에서 전체리스트 보이는 것 처럼 서브페이지도 전부 보이게 할순 없니요ㅜㅜ

어디를 수정 해야되는지 모르겠네요 ㅜㅜㅜㅜ

 

include_once(G5_PATH.'/head.sub.php'); include_once(G5_LIB_PATH.'/latest.lib.php'); include_once(G5_LIB_PATH.'/outlogin.lib.php'); include_once(G5_LIB_PATH.'/poll.lib.php'); include_once(G5_LIB_PATH.'/visit.lib.php'); include_once(G5_LIB_PATH.'/connect.lib.php'); include_once(G5_LIB_PATH.'/popular.lib.php');

// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. if ($config['cf_include_head']) {     if (!@include_once($config['cf_include_head'])) {         die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.');     }     return; // 이 코드의 아래는 실행을 하지 않습니다. }

if (G5_IS_MOBILE) {     include_once(G5_MOBILE_PATH.'/head.php');     return; }

$memo_not_read = 0; if ($is_member) {     $sql = " select count(*) as cnt ";     $sql.= "   from {$g5['memo_table']} ";     $sql.= "  where me_recv_mb_id = '{$member['mb_id']}' ";     $sql.= "    and substring(me_read_datetime, 1, 1) = '0' ";     $row = sql_fetch($sql);     $memo_not_read = $row['cnt']; }

$my_url = null; $menu = null;

if (strlen($_SERVER["REQUEST_URI"]) > 1) {     $my_url = set_http($_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);     $sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order ";     $qry = sql_query($sql);     while ($row = sql_fetch_array($qry)) {         if (strstr($my_url, $row['me_link'])) {             $menu = $row;             break;         }         //$menu = sql_fetch(" select * from {$g5['menu_table']} where me_link like '{$my_url}%' limit 1");     } }

if (!$theme && get_cookie("ck_theme"))     $theme = get_cookie("ck_theme");

if ($theme) {     if (preg_match("/^[a-z0-9_-]+$/i", $theme)) {         set_cookie("ck_theme", $theme, 60*60*24*30);         $g5_theme = $theme;     } }

$theme_path = G5_PATH."/theme/".$g5_theme; $theme_url = G5_URL."/theme/".$g5_theme;

if (!is_dir($theme_path) || !file_exists($theme_path)) {     $theme_path = G5_PATH."/theme/basic";     $theme_url = G5_URL."/theme/basic"; }

//if ($bo_table) echo ""; ?>

   
        http:// echo $_SERVER['HTTP_HOST']?>/' , '');">즐겨찾기         |         현재접속자 ()         |         최근게시물    
   
                관리자         |                         로그인         |         회원가입                 쪽지 ()         |                 포인트 ()         |                 로그아웃         |         정보수정                 |         FAQ         |         1:1문의         |         새글    

           
       

       

           
           
               

                $sql = " select *                            from {$g5['menu_table']}                           where me_use = '1'                             and length(me_code) = '2' {$sql_menu}                           order by me_order, me_id ";                 $qry = sql_query($sql);                 for ($i=0; $row=sql_fetch_array($qry); $i++) {                 ?>                    

                   
                                           
                                       
                           
           

       

       
   

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
그림자밟기

아마 아래 2줄 주석처리하면 될 듯 합니다.

</p><p>//                if ($menu['me_code'])</p><p>//                    $sql_menu = " and substring(me_code, 1, 2) = '".substr($menu['me_code'], 0, 2)."' ";</p><div><span style="font-size: 11pt; line-height: 1.5;">
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인

© 2025 SIRSOFT. All rights reserved.