게시판이 아닌 일반페이지를 > 그누3질답

그누3질답

게시판이 아닌 일반페이지를 정보

그누보드 게시판이 아닌 일반페이지를

본문

게시판이 아닌 일반페이지를 만들어 문서(php/html)를 꾸민후에 그누폴더 안에 파일을 올리고 상단에 아래처럼 넣었는데 에러가...
<?
/*
    사용자 화면 상단과 좌측을 담당하는 페이지입니다.
    상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
*/
include "./$cfg[bbs_dir]/gblayer.php";

// 쇼핑몰
$is_shop = false;
if (file_exists($cfg[shop_dir])) {
    include "./$cfg[shop_dir]/shop.lib.php";
    $is_shop = true;
}
?>
이렇게 했는데 에러가 나는데...

-------소스내용------
<?
/*
    사용자 화면 상단과 좌측을 담당하는 페이지입니다.
    상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
*/
include "./$cfg[bbs_dir]/gblayer.php";

// 쇼핑몰
$is_shop = false;
if (file_exists($cfg[shop_dir])) {
    include "./$cfg[shop_dir]/shop.lib.php";
    $is_shop = true;
}
?>
<head><script language="JavaScript">

function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
</script></head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<map name="ImageMap1">
<area shape="rect" coords="549, 31, 641, 91" href="http://arttoart.pe.kr/gnu3/?doc=bbs/gnuboard.php&bo_table=board" target="_self">
<area shape="rect" coords="22, 110, 177, 162" href="http://arttoart.pe.kr/gnu3" target="_top">
<area shape="rect" coords="459, 31, 546, 92" href="head_minigallery.php" target="_self">
<area shape="rect" coords="371, 32, 457, 92" href="head_study.php" target="_self">
<area shape="rect" coords="276, 32, 366, 90" href="head_gallery.php" target="_self">
<area shape="rect" coords="173, 33, 271, 89" href="head_guide.php" target="_self">
</map>
<table align="center" cellpadding="0" cellspacing="0" width="880">
    <tr>
        <td width="880" height="40" align="left" valign="top" colspan="2" bgcolor="#6048A0">
            <table cellpadding="0" cellspacing="0" width="876">
                <tr>
                    <td width="345" height="40" align="center" valign="bottom" bgcolor="#6048A0">
                        <p>
        <table cellpadding=0 cellspacing=0>
        <form name=fgnusearch method=get action='./'>
        <tr>
            <td bgcolor="#6048A0">
                <b><span style="font-size:9pt;"><font color="#CC0000">전체검색</font></span></b><input type='hidden' name='doc'          value='bbs/gnusearch.php'>
                <input type='hidden' name='sselect'      value='wr_subject|wr_content'>
                <input type='hidden' name='soperator'    value='0'>
                <input type='hidden' name='srch_rows'    value='5'>
                <input type='hidden' name='srch_comment'  value='1'>
                <input type='hidden' name='srch_days'    value='0'>

                <input type=text class=input name='stext' size=20 required minlength=2 itemname='검색어' value='<?=hsc($stext)?>'>
                <input type=submit value='검색' style=color:#ffffff;border-color:#FAC267;background-color:#EF2E41;font-size:8pt;font-family:Tahoma;height:20px; >
                &nbsp;
            </td>
        </tr>
        </form>
        </table>                    </td>
                    <td width="523" height="40" align="right" valign="top" bgcolor="#6048A0">
                        <p><?
        echo "<a href='./'>HOME</a> | ";
        if (!$member[mb_id]) {
            echo "
            <a href='./?doc=$cfg[bbs_dir]/mblogin.php&url=$urlencode'>로그인</a> |
            <a href='./?doc=$cfg[bbs_dir]/mbform.php'>회원가입</a>";
        } else {
            echo "
            <a href='./?doc=$cfg[bbs_dir]/mblogout.php&url=$urlencode'>로그아웃</a> |
            <a href='./?doc=$cfg[bbs_dir]/mbform.php&w=u'>정보수정</a>";
            if ($is_admin == "default" || $is_admin == "group") {
                echo " (<a href='./?doc=$cfg[bbs_dir]/admin/index.php'><u>ADMIN</u></a>)";
            }
        }

        if ($is_shop) {
            echo "
            | <a href='./?doc=$cfg[shop_dir]/cartlist.php'>장바구니</a>
            | <a href='./?doc=$cfg[shop_dir]/mypage.php'>My Page</a>
            | <a href='./?doc=$cfg[shop_dir]/wishlist.php'>Wish List</a>";
            if ($is_admin == "default" || $is_admin == "shop") {
                echo " (<a href='./?doc=$cfg[shop_dir]/admin/index.php'><u>SHOP ADMIN</u></a>)";
            }
        }
        ?>
        &nbsp;</p>
                    </td>
                    <td width="8" height="40" bgcolor="#6048A0">
                        <p>&nbsp;</p>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td width="880" align="left" valign="top" height="227" colspan="2">
            <table cellpadding="0" cellspacing="0" width="879">
                <tr>
                    <td width="879" height="190" align="left" valign="top" colspan="3">
                        <p align="center"><img src="new/guide_top.gif" width="880" height="200" border="0" usemap="#ImageMap1"></p>
</td>
                </tr>
                <tr>
                    <td width="172" height="40" align="left" valign="top">
                        <p><img src="new/login.gif" width="172" height="40" border="0"></p>
</td>
                    <td width="45" height="40" align="left" valign="top">
                        <p><img src="new/center1.gif" width="45" height="40" border="0"></p>
                    </td>
                    <td width="662" height="40" align="left" valign="top">
                        <p><img src="new/center2.gif" width="663" height="10" border="0"></p>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td width="218" align="left" valign="top" height="455">
            <table cellpadding="0" cellspacing="0" width="174">
                <tr>
                    <td width="174" height="100" align="left" valign="top">
                        <p>
        <table width=100% cellpadding=0 cellspacing=0>
        <tr><td width="173" height="17"><? include "./$cfg[bbs_dir]/outlogin.php"; ?></td></tr>
       
        </table>                    </td>
                </tr>
                <tr>
                    <td width="174" height="209" align="left" valign="top">
                        <!-- 투표 시작 -->
        <? include "./$cfg[bbs_dir]/vote.php"; ?>
        <!-- 투표 끝 -->
                    </td>
                </tr>
                <tr>
                    <td width="174" height="145" align="left" valign="bottom">
                        <p><!-- 카운터 시작 -->
        <? include "./$cfg[bbs_dir]/count.php"; ?>
        <!-- 카운터 끝 --></p>
                    </td>
                </tr>
            </table>
        </td>
        <td width="662" align="left" valign="top" height="455">
  • 복사

댓글 전체

헉~스~~!! 그래군요..ㅡ.ㅡ

index.php에 아래와 같이 타입을 여러개 적어 넣고
일반 문서 상단에 각 각의 타입을 적어 주시면 되겠지요..^^

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "shop1"); <- 헤드와 푸터 불러오는 부분
$html_title = "일반문서 상단A";
?>

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "shop2"); <- 헤드와 푸터 불러오는 부분
$html_title = "일반문서 상단B";
?>
............................
............................

// gshop 은 쇼핑몰 사용을 위해 만든 상단, 하단 파일을 필요로 하는 TYPE
 case "shop1" :  <- 여기 케이스 이름을 다르게
    include './head.sub.php';
    include './head_xxxa.php'; <- 요기 각각 만들어둔 상단 파일 이름..
    echo $ob_content;
    include './tail_shop.php';
    break;
// gshop 은 쇼핑몰 사용을 위해 만든 상단, 하단 파일을 필요로 하는 TYPE
 case "shop2" :
    include './head.sub.php';
    include './head_xxxb.php';
    echo $ob_content;
    include './tail_shop.php';
    break;
// gshop 은 쇼핑몰 사용을 위해 만든 상단, 하단 파일을 필요로 하는 TYPE
 case "shop3" :
    include './head.sub.php';
    include './head_xxxc.php';
    echo $ob_content;
    include './tail_shop.php';
    break;
에구구^^*
카자님~~~~~~~~~그냥 불러봤어요^^
무식한놈 한테....
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");<--------------이거만 덜렁 써주니 그냥하죠^^*
<? -------------요넘
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE"); <- 헤드와 푸터 불러오는 부분
$html_title = "그누보드 로그인";
?>--------------요넘을 안집어 넣어서리...
지금 혼미상태  ~~~~~~~~~~~~~~~

[또질문]
--카자님 쇼핑팁 적용 한거처럼 했다면....
// gshop 은 쇼핑몰 사용을 위해 만든 상단, 하단 파일을 필요로 하는 TYPE
  case "shop" :
      include './head.sub.php';
      include './head_shop.php';
      echo $ob_content;
      include './tail_shop.php';
      break;
이것두 설명좀 부탁해요?
지금요 알던것두 정리가 안되는 사태임.....띵
감사해요^^*
만드신 head_guide.php파일은 상단의 역할을하는 테이블이 이미 들어가 있으니까
타입이 필요없지요..^^
이런때는 head_guide.php파일의 상단에 아래 처럼만 넣어주시면 됩니다.
index.php에 기본으로 있는 스타일 시트만 적용한 타입이지요..^^

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");
아~~
그게 그런거군요^^*
index.php에서 설정한 타입은 원본 그데로 인데...
head_guide.php/head_xxxx.php/head_xxxx.php 어렇게 문서 페이지가 따루따루 여러개라면
타입두 매번 정해줘야 하나요?

추신--카자님 쇼핑팁 적용 한거처럼 했다면....
 // gshop 은 쇼핑몰 사용을 위해 만든 상단, 하단 파일을 필요로 하는 TYPE
  case "shop" :
      include './head.sub.php';
      include './head_shop.php';
      echo $ob_content;
      include './tail_shop.php';
      break;
index.php에서  타입을 어떻게 하는건지^^* 
예를 조금만 이라두(일반문서의 경우)
매번 감사하단 말씀밖에 못드리는군요~~~~~
7쟁이님 그누3.0버전은 불러올때 항상 gnu3/?doc=파일 이름으로 불러와야 합니다
아래 링크처럼 말이지요 왜~~!! index.php에서 데이타를 처리 후에 결과를 보여주기 때문이지요..ㅡ.ㅡ
head_guide.php파일 상단에 index.php에서 설정한 타입도 넣어셔야 하고요..^^
아래 링크 보시면 이상없이 나오지요..상단의 타입만 넣어 주시면 짠~!!
http://arttoart.pe.kr/gnu3/?doc=head_guide.php
© SIRSOFT
현재 페이지 제일 처음으로