메인화면 공지사항 추출 때 경고 글이 뜹니다. 도와주세요. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

메인화면 공지사항 추출 때 경고 글이 뜹니다. 도와주세요. 정보

메인화면 공지사항 추출 때 경고 글이 뜹니다. 도와주세요.

본문

다들 고생 많으십니다.
저번에 한 번 도움을 받았었는데요,
게시판 추출시 헤더 파일에 중복되는 명령어 때문이라고 하셔서 나름대로 수정을 해봤는데요.
저번에는 동일한 경고 문구가 3번 떴었는데 지금은 한 번만 뜨네요.
또 어떤 부분에서 문제가 있는 것 같아요.
그누보드 공지사항 게시판에서 해더와 푸드 없이 적용해 봤을 때도 경고 문구가 뜨는 것을 보니
해더의 문제는 아닌 것 같아요.
아마 인덱스 파일에서의 문제가 하는데요.
아래는 제가 제작하고 있는 홈페이지 파일인데요.
한 번 봐주시고 도움 부탁드립니다.
감사합니다.

메인화면내용
<html>
<head>
<title>금강자연미술비엔날레 GEUMGANG NATURE ART BIENNAIE </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="embed.js" language="JavaScript" type="text/javascript"></script>
<style>
<!--
a {  text-decoration:none; }
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;

color: #4A6F37;
}
.style2 {color: #4A6F37}
-->
</style>
<script language="JavaScript">
<!--
function getCookie( name )
{
    var nameOfCookie = name + "=";
    var x = 0;
    while ( x <= document.cookie.length )
    {
        var y = (x+nameOfCookie.length);
        if ( document.cookie.substring( x, y ) == nameOfCookie )
        {
            if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
                endOfCookie = document.cookie.length;
            return unescape( document.cookie.substring( y, endOfCookie ) );
        }
        x = document.cookie.indexOf( " ", x ) + 1;
        if ( x == 0 )
            break;
    }
    return "";
}

function window_popup(){

    if(getCookie("dmch_noty") != "no"){
        var child = null;
        child = window.open("popup/popup.html", "notice", "width=445,height=580,left=0,top=0,notoolbars,resizable=no,scrollbars=no");
        child.focus();
    }



//if(getCookie("popup_schedule") != "no"){
        //var child = null;
        //child = window.open("popup/popup_schedule.html", "schedule", "width=630,height=435,left=345,top=0,notoolbars,resizable=no,scrollbars=no");
        //child.focus();
    //}

    //return;

}

function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  }
}

function na_preload_img()
{
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null)
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]    = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  }
}

function na_change_img_src(name, nsdoc, rpath, preload)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  }
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

// -->
</script>
</head>

<body bgcolor="#F6F5F1" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<body onLoad="window_popup()" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table align="center" width="900" height="146" border="0" cellpadding="0" cellspacing="0">
  <tr>

</td>
  </tr>
  <tr>
    <td width="231" height="76" valign="top"><a href="http://natureartbiennale.org/" target="_self"><img src="images/em2.jpg" width="231" height="32" border="0" /></a></td>
    <td valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="669" height="76">
        <param name="movie" value="menu.swf">
<param name="wmode" value="transparent">
        <param name="quality" value="high">
        <embed wmode="transparent" src="menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="669" height="76"></embed></object></td>
  </tr>
</table>
<table align="center" width="900" height="250" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="900" height="250">
      <param name="movie" value="1.swf">
      <param name="quality" value="high">
      <embed src="1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="900" height="250"></embed>
    </object></td>
  </tr>
</table>
<table width="900" height="146" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><span class="style2"></span>
<table width="900" border="0" cellspacing="0" cellpadding="0" style="margin:1">
  <tr>
    <td height="27"><p class="style1"><a href="http://natureartbiennale.org/bbs/board.php?bo_table=notice"><img src="images/notice1.jpg" width="100" height="27" border="0" usemap="#MapMap" /></a></p>      </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="342"><?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?></td>
    <td width="558" valign="top"><p class="style1"> YATOO International Project (YATOO-i), is a newly-organized project and is based on the idea that the Nature we live in is seamlessly connected regardless of the human-designated borderlines.<br>
      <br>
      <a href="http://yatooi.com"><img src="images/yatooilogo1.jpg" width="170" height="52" border="0" usemap="#MapMap" /></a> <strong>YATOO INTERNATIONAL PROJECT </strong></p>      </td>
  </tr>
</table></td>
  </tr>
  <tr>
    <td valign="top"><img src="images/foot02.jpg" width="900" height="101" border="0" usemap="#Map" /></td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="687,20,709,44" href="http://natureartbiennale.org/adm" target="_blank">
  <area shape="rect" coords="709,20,732,45" href="mailto:*** 개인정보보호를 위한 이메일주소 노출방지 ***">
</map>
</body>
</html>



공지사항 게시판 헤더부분
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 900;
?>

<!-- 상단 배경 시작 -->
<!-- 상단 배경 끝 -->

<!-- 상단 로고 및 버튼 시작 -->

<!-- 상단 로고 및 버튼 끝 -->

<!-- 검색 시작 -->

<!-- 검색 끝 -->
<table bgcolor="#F6F5F1" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><? include "head3.php"; ?>
<table align="center" bgcolor="#EAE6DF" width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
    <td></td>
    <!-- 왼쪽 메뉴 -->
    <td width=204 valign=top>
        <table width="204" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#E3DED5">
            <tr>
              <td width="204" height="296"><img src="images/bl.jpg" width="204" height="296"></td>
            </tr>
            <tr>
              <td width="204"><table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table></td>
            </tr>
          </table>
    </td>
    <td></td>
    <!-- 중간 -->
    <td width=696 valign=top>
  • 복사

댓글 전체

include_once("./_common.php"); --> 이것은 항상 화일 맨 처음에 들어가야 합니다
그리고 head.sub.php 소스를 보면
html ,body, head 등의 태그가 들어갑니다
이 태그들이 2중으로 들어가도록 만든 것 같기도 하네요
© SIRSOFT
현재 페이지 제일 처음으로