묻고답하기

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

정말 미치겠습니다.... 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 남기남
김선길 자작프로그램에서 설문조사를 받았는데... [1] 2007.08.10
Mook''s 게시판에 있는 음악 게시판을 이용해 이렇게 만들수 있는지...netamp라는거 아세요? [2] 2007.08.10
이재민 버튼롤오버효과가 프레시버튼처럼 부드럽게 넘어가는거 테그를 어디다 넣는지요? [2] 2007.08.10
요코 아이프레임을 넣었는데요... [2] 2007.08.10
한일도 세션변수에 관하여... [2] 2007.08.10
Kard Cellspacing [1] 2007.08.10
조대경 제로카운터 번호를 000001,000002 이렇게 출력되게 하는 방법이 있을까요? [1] 2007.08.10
박선옥 개인컴퓨터를 서버로 만든후.. [7] 2007.08.10
박선옥 도메인을 샀는데요....... [1] 2007.08.10
최수호 제로보드 포인트에 관한 질문입니다.  
김진아 클릭할때 ~ [1] 2007.08.10
찌코2 체크박스 숨기기  
요한™ 스크립트 소스 안에 PHP 변수를 사용할 수 있나요 ?? [2] 2007.08.10
김형태 iframe관련 질문입니다. [1] 2007.08.10
요한™ 마우스 오버시 텍스트 뜨는 것 좀 가르쳐주세요 [2] 2007.08.10
요한™ 질문 많당.. =_=a PHP 함수사용할때 or [3] 2007.08.10
한일도 세션변수에 관하여...(2번째) [1] 2007.08.10
튀는아이 익스플로어로 볼때만 색상이 이상하게 나와요. [1] 2007.08.10
   꽁    php 에서 사설ip확인이 가능한지? [3] 2007.08.10
조성진 흠.. 회원가입할때 운영자가 특정한 질문을 내놓고 체크하는 기능은 없나요?// [1] 2007.08.10
강혜인 링크걸었을때 생기는 점선 없애는 방법 질문이요- [2] file 2007.08.10
鍾烈 음.. 게시판 한참 만들고 있는데요 여기다 어떤기능을 넣는게 좋을까요 [1] 2007.08.10
이태운 새창띄우는거 7일째 소스찾는데요 냉유 필독! [1] 2007.08.10
asprien 자료실이 안돼요 누가좀 도와조여~~~~~~~~~~~~~~~~~~~~~  
asprien 자료실이 안돼요 누가좀 도와주세요~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [5] 2007.08.10
鍾烈 mysql 쿼리문에서 [2] 2007.08.10
가인 여기 도메인 포워딩을 사용하고 있는데요. [3] 2007.08.10
굿샷♬ 테이블에서 <TD>에 관한 질문2개요.. [2] 2007.08.10
우리나라 노프레임에 관해서... [1] 2007.08.10
미자 xxx.php?a=b&c=d 이런거중에 a랑 c의 값이 다른페이지로 안넘어갑니다 [2] 2007.08.10