묻고답하기

안녕하세요.... 소스를 보고 또 봐도 알 수 가 없습니다....

정말 미치겠습니다.... main.php 파일에서는  되는데... 메인파일을 head.htm과 foot.htm으로 나눈 head.htm파일은

잘 안됩니다. 뭐가 문제인지 도저히 알 수 없습니다...

소스를 한번 올려봅니다...

[member_check.php] -------------- 로그인 인증파일

<?php
//---------------- member_check.php: form으로 받은 id passwd를 이용하여 관리자/일반회원을 분류하는 파일 --------------//

$path="c:/kebihome/myhome/home";
include("$path/include/db_header.inc");   //---------- Database에 연결하는 HeaderFile를 호출한다.
include("$path/bbs/lib.php");

//------------------- form으로 받은 id를 cpa_member Table에서 일치하는 id가 있는지 검색한다. --------------------//
$query="select * from $membertable where id='$id'";
$result=mysql_query($query, $connect);
$rows=mysql_num_rows($result);
if(!$rows) {  //----------------------------------- 검색결과 일치하는 id가 없다면
        echo("
                <script>
                        alert('이용불가![등록되지 않은 ID입니다.]');
                        history.go(-1);
                </script>
                exit;
        ");
} else {  //--------------------------------------- 검색결과 일치하는 ID가 있다면
        $info=mysql_fetch_array($result);  //----검색결과에서 한행을 읽어와서 info배열에 반환한다. 주로 field name이 키
        if($info['passwd'] != $passwd) {   //----- 패스워드가 테이블에 저장한 것과 실제 입력한 것이 다른 경우
                echo("
                        <script>
                                alert('이용불가!![비밀번호가 틀립니다.]');
                                history.go(-1);
                        </script>
                ");
                exit;
        } else {   //---------------------------- 패스워드가 일치하는 경우
                session_start();  //----------------- session Data의 초기화(제일먼저 실행)
                $id_sess=$id;     //----------------- id를 세션변수(id_sess)로 설정: 세션변수에 값을 미리 넣어야 한다.
                $name_sess=$info[name];  //---------- name를 세션변수(name_sess)로 설정
        session_register("id_sess", "name_sess"); //----- session사용에 필요한 변수의 등록: 변수이름만 등록됨(전역변수)

//-------------------------------- 제로보드에 대한 인증에 필요한 부분 --------------------------------------//
        $zb_logged_no = $id;
                $zb_logged_time = time();
                $zb_logged_ip = $REMOTE_ADDR;
                $zb_last_connect_check = '0';

                session_register("zb_logged_no");
                session_register("zb_logged_time");
                session_register("zb_logged_ip");
                session_register("zb_last_connect_check");

//---------------------------------------------------- 제로보드 인증 끝 -----------------------------------//



                

                if($id=='hanildo')  //----------------- id가 관리자의 id인 경우
                        echo("
                                <script>
                                        location.href='http://w3ip-www.rokcpa.com:8000/main/main.php?left=admin.php&body_board=check' //--admin.php파일
                                </script>
                        ");
                else  //------------------------------- id가 일반회원인 경우
                        echo("
                                <script>
                                        location.href='http://w3ip-www.rokcpa.com:8000/main/main.php?left=member.php&id=$id' //--member.php파일
                                </script>
                        ");
            }
}
?>



[main.php] ---------- 메인파일로 상단/좌측/보디(최근게시물)로 이루어져있음...

<?php
session_start();
$path="c:/kebihome/myhome/home";
include("$path/include/db_header.inc");

//--------------------------- 로그인 하지 않고 접속하는 것을 막기위해 ------------------------------------------------//
if(($id_sess != 'hanildo') && (!isset($id_sess))) {
     echo("
        <script>
                alert('로그인 해야 사용할 수 있습니다.');
            location.href='http://w3ip-www.rokcpa.com:8000/index.php'
        </script>
        ");
        exit;
}

//------------------------------------------- 제로보드에 대한 경로지정 부분 -----------------------------------------//
$_zb_url = "http://w3ip-www.rokcpa.com:8000/bbs/";
$_zb_path = "c:/kebihome/myhome/home/bbs/";
include $_zb_path."outlogin.php";
// @include $_zb_path."_head.php";
?>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="980" border="1" cellspacing="0" align="center" bordercolor="#999999">
  <tr>
    <td>
      <table width="980" border="0" cellspacing="0" align="center">

<!------------------------------------ 상단이미지 --------------------------------------------------------------->
        <tr>
          <td width="980" height="100" colspan="4" background="http://w3ip-www.rokcpa.com:8000/gif/top_title1.png"> 
<!--                    <img src="http://w3ip-www.rokcpa.com:8000/gif/top_title1.png" border="0">  ----->
                  </td>
        </tr>

<!------------------------------------ 주메뉴 ------------------------------------------------------------------>
        <tr>
          <td width="980" colspan="4" align="right" bgcolor="#003f7d">
              <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
              <img src='http://w3ip-www.rokcpa.com:8000/gif/home.gif' border='0'>
              <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/audit.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/tax.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/consulting.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/erp.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/law.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/aq.gif' border='0'>
                  </td>
        </tr>
        <tr>
          <td colspan="4">서브메뉴</td>
        </tr>
        <tr>
          <td width="160" align="center" valign="top" background="http://w3ip-www.rokcpa.com:8000/gif/bodyback.gif">
              <table align="center" cellpadding="0" cellspacing="0" width="160">
                <tr><td height='5'></td></tr>

<!---------------------------------- 좌측 최초박스: 회원모드 or 관리자 모드 ---------------------------------------->
                <tr>
                                <td width="180">
                                            <div align="center">
                                                <?
                                         if(is_file("$path/left/$left")){
                                                include("$path/left/$left");
                              }
                              if(is_file("$path/left/$left1")){
                                                include("$path/left/$left1");
                              }
                                                 ?>
                             </div>
                                        </td>
                             </tr>
                                 <tr><td height="5"></td></tr>

<!----------------------------------- 좌측 서브메뉴가 들어가는 부분 ------------------------------------------------>
                                 <tr>
                                 <td width="180">
                     </tr>                                                                                
                        </table>
                  </td>

<!------------------------------------ 좌측란과 우측(최근게시물 등)란의 경계를 두기위한 1픽셀의 공간 ------------------->
          <td width="1" bgcolor="#FFFFFF"> </td>
          <td width="818", align="center" bgcolor="FFFFFF">
            <table width="818" border="0" cellspacing="0" align="center">
<!------------------------------ 공백줄은 넣어 간격을 주려는 것 ---------------------------------->                        
                          <tr><td height='5'></td>
                  <td></td>
                  <td></td>
              </tr>
              
          <?php
                  if($body_board == "") {  //------------ body_board에 "check"가 없으면 회원조회임
                    echo("
                          <tr>
                            <td width='818' align='center' bgcolor='white'>
                    ");
                    if(is_file("$path/body/$body")){
                         include("$path/body/$body");
                    }
                        if(is_file("$path/body/$body1")){
                         include("$path/body/$body1");
                    }
            echo("</td></tr>");
                  } else { //----------------------------- 최근게시물을 보여주는 부분
                echo("
              <tr>
                <td width='407' align='center' bgcolor='#FFFFFF'>
                        ");
                            print_bbs("vouge/bbs", "공지사항", "notice", 5, 22);
                        echo("
                            </td>
                <td width='4'> </td>
                <td width='407' align='center' bgcolor='#FFFFFF'>
                        ");
                                print_bbs("vouge/bbs", "감사업무", "audit", 5, 22);
                        echo("
                                </td>
<!------------------------------ 공백줄은 넣어 간격을 주려는 것 ---------------------------------->                        
              <tr><td height='5'></td>
                  <td></td>
                  <td></td>
              </tr>
              <tr>
                <td width='407' align='center' bgcolor='#FFFFFF'>
             ");
                            print_bbs("vouge/bbs", "세무업무", "tax", 5, 22);
                         echo("
                                </td>
                <td width='4' align='center'> </td>
                <td width='407' align='center' bgcolor='#FFFFFF'>
                         ");
                            print_bbs("vouge/bbs", "Consulting", "consulting", 5, 22);
                         echo("
                                </td>
              </tr>
                          <tr><td height='5'+ '+ '></td>
                  <td></td>
                  <td></td>
              </tr>
              <tr>
                <td width='407' align='center'+ ' bgcolor='#FFFFFF'>
                          ");
                print_bbs("vouge/bbs", "ERP System", "erp", 5, 22);
                          echo("
                                </td>
                <td width='4' align='center'> </td>
                <td width='407' align='center' bgcolor='#FFFFFF'>
                          ");
                print_bbs("vouge/bbs", "최근법령개정", "new_tax", 5, 22);
                          echo("
                                </td>
              </tr>
                          <tr><td height='5'></td>
                  <td></td>
                  <td></td>
              </tr>
            </table>
          </td>
          <td width='1' bgcolor='#FFFFFF'> </td>
        </tr>
                      ");
        }
        ?>
        <tr>
          <td width="980" align="right" colspan="4" height="25" bgcolor="#2E2248">
                      <img src="http://w3ip-www.rokcpa.com:8000/gif/copyright.png" border="0">
                  </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>



[head.htm]---------- 제로보드에서 상단에 들어갈 파일

<?php
session_start();
$path="c:/kebihome/myhome/home";
include("$path/include/db_header.inc");
******************************************************************************************************
                                                 이부분이 되질 않습니다....
******************************************************************************************************

//--------------------------- 로그인 하지 않고 접속하는 것을 막기위해 ------------------------------------------------//
if(($id_sess != 'hanildo') && (!isset($id_sess))) {
     echo("
        <script>
                alert('로그인 해야 사용할 수 있습니다.');
            location.href='http://w3ip-www.rokcpa.com:8000/index.php'
        </script>
        ");
        exit;
}

//------------------------------------------- 제로보드에 대한 경로지정 부분 -----------------------------------------//
$_zb_url = "http://w3ip-www.rokcpa.com:8000/bbs/";
$_zb_path = "c:/kebihome/myhome/home/bbs/";
include $_zb_path."outlogin.php";
// @include $_zb_path."_head.php";
?>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="980" border="1" cellspacing="0" align="center" bordercolor="#999999">
  <tr>
    <td>
      <table width="980" border="0" cellspacing="0" align="center">

<!------------------------------------ 상단이미지 --------------------------------------------------------------->
        <tr>
          <td width="980" height="100" colspan="4" background="http://w3ip-www.rokcpa.com:8000/gif/top_title1.png"> 
<!--                    <img src="http://w3ip-www.rokcpa.com:8000/gif/top_title1.png" border="0">  ----->
                  </td>
        </tr>

<!------------------------------------ 주메뉴 ------------------------------------------------------------------>
        <tr>
          <td width="980" colspan="4" align="right" bgcolor="#003f7d">
              <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
              <img src='http://w3ip-www.rokcpa.com:8000/gif/home.gif' border='0'>
              <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/audit.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/tax.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/consulting.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/erp.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/law.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/bar.gif' border='0'>
                          <img src='http://w3ip-www.rokcpa.com:8000/gif/aq.gif' border='0'>
                  </td>
        </tr>
        <tr>
          <td colspan="4">서브메뉴</td>
        </tr>
        <tr>
          <td width="160" align="center" valign="top" background="http://w3ip-www.rokcpa.com:8000/gif/bodyback.gif">
              <table align="center" cellpadding="0" cellspacing="0" width="160">
                <tr><td height='5'></td></tr>

<!---------------------------------- 좌측 최초박스: 회원모드 or 관리자 모드 ---------------------------------------->
                <tr>
                                <td width="180">
                                            <div align="center">
                                                <?
                                         if(is_file("$path/left/$left")){
                                                include("$path/left/$left");
                              }
                              if(is_file("$path/left/$left1")){
                                                include("$path/left/$left1");
                              }
                                                 ?>
                             </div>
                                        </td>
                             </tr>
                                 <tr><td height="5"></td></tr>

<!----------------------------------- 좌측 서브메뉴가 들어가는 부분 ------------------------------------------------>
                                 <tr>
                                 <td width="180">
                     </tr>                                                                                
                        </table>
                  </td>

<!------------------------------------ 좌측란과 우측(최근게시물 등)란의 경계를 두기위한 1픽셀의 공간 ------------------->
          <td width="1" bgcolor="#FFFFFF"> </td>
          <td width="818", align="center" bgcolor="FFFFFF">
            <table width="818" border="0" cellspacing="0" align="center">


[foot.htm]---------------------- 제로보드에서 하단에 들어갈 파일


        <tr>
          <td width="980" align="right" colspan="4" height="25" bgcolor="#2E2248">
                      <img src="http://w3ip-www.rokcpa.com:8000/gif/copyright.png" border="0">
                  </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>



++++++++++++++++++++++++ 제발 부탁드립니다.... 저로서는 정말 미칠지경입니다.....
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
울프 초보자 질문입니다 [2] file 2009.04.26 by 울프
울프 설치했습니다만  
케이준 메뉴에서 이미지 버튼 등록이 안됩니다. file  
재택알바 XE 추천인 제도 넣기 [1] 2009.04.26 by ^_^;
루나사마 첨부파일 삭제가 안됩니다.. [1] 2009.04.26 by 루나사마
Qwiff "긴급" 디비의 게시글들이 갑자기 안나옵니다 [3] 2009.04.26 by Habile
저글링4마리 홈피주소치면 이상한게.... [2] 2009.04.26 by 저글링4마리
KRB FaceOff 요.. [2] file 2009.04.26 by KRB
정정훈188 데이터 이전/관리 에서...  
김완기680 특정 회원에게 관리자페이지의 일부 접근권한 주는방법 있나요? [1] 2009.04.26 by Habile
해적K 첨부파일 에러문제  
스틱 레이아웃 상단 수정 문의 2가지 [1] file 2009.04.26 by Habile
밀로그 xe백업 방법 질문좀 드려요. [2] 2009.04.26 by Habile
starcraft.a-ram.net 페이지 설정했는데 사진이 안보여요, 게시판 관련 [2] 2009.04.26 by starcraft.a-ram.net
네비게이터 XE 1.1.5 질문이요...(급합니다_왕초보임돠) file  
AttiStory 드림위버 cs3에서 플래쉬 삽입이 되질 않습니다.  
sakurastorm 리플이 보이다 안 보이다 그러네요 (버그) file  
sakurastorm WidgetHandler.class.php 에러 [2] file 2009.04.26 by sakurastorm
chin9 하단스크룰 안생기게 하려면 어떻게 해야 하죠? [1] 2009.04.26 by qww
포핑 아이프레임을 만들었더니 링크가 안 걸려요 [1] 2009.04.26 by 포핑