계속되는 에러...그리고 스트레스...ㅠㅠ 정보
계속되는 에러...그리고 스트레스...ㅠㅠ본문
해외 지역 - 이스라엘 포털 사이트를 운영하고 있는 davi 입니다.
이름은 거창한데 홈페이지쪽은 잘 몰라서 페이지가 로딩될 때 에러 조차도 못 고치고 있습니다.
연후아빠님의 제나빌더를 사용하고 있는데 head.php 가 불여우에서 밀리고 패이지 오류가 생깁니다.
해당 사이트는 http://koisra.com 이고 head.php 소스에 문제가 있는거 같아서 이 곳에 올려봅니다.
꼭 좀 도와주시길 부탁드립니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
//***********************************************************************************************
// 라이센스는 http://sir.co.kr/gnuboard/g4_license.php를 따릅니다.
// 빌더명 : 제나빌더
// 제작일 : 2006-05-18일
// 제작자 : 제로나라 http://zeronara.net
// e-mail : http://zeronara.net/)는 제나빌더를 사용할 수 없거나 사용법을 제대로 인식하지 못해서
// 발생한 이익 손실, 업무 중단, 사업 정보의 손실 또는 금전상의 손실 등 사업상의 손해를
// 포함한 부수적이고 간접적인 손해에 대해서, 비록 이와 같은 손해 가능성에 대해서
// 사전에 알고 있었다고 해도 책임을 지지 않습니다.
// 저작권 : 이 주석 부분은 삭제할 수 없습니다.
//************************************************************************************************
?>
<body <? if ($member[mb_level] >= 2) {?> <? } else { ?> oncontextmenu='return false;' onselectstart='return false' ondragstart='return false' <? } ?>
<!--전체 테이블-->
<table width="100%" cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign="top" align="<?=$zalign?>">
<!--상단로고 및 메뉴-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td rowspan="2" width="10"></td>
<td rowspan="2" width="190" border="0" align=center><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.gif" border="0"></a></td>
<td rowspan="2" width="10"></td>
<td width="680" border="0" align=right valign=top>
<!--로그인 및 검색-->
<table width=100% border="0" cellspacing="0" cellpadding="0">
<tr>
<td align=left>
</td>
<td align=right>
<a href="<?=$g4['path']?>/">HOME</a>
ㅣ
<? if (!$member['mb_id']) { ?>
<!-- 로그인 이전-->
<a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>">로그인</a>
ㅣ
<a href="<?=$g4['bbs_path']?>/register.php">회원가입</a>
ㅣ
<? } else { ?>
<!--로그인 이후-->
<a href="<?=$g4['bbs_path']?>/logout.php">로그아웃</a>
ㅣ
<a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php">정보수정</a>
ㅣ
<? } ?>
<!--최근게시물 버튼-->
<a href="<?=$g4['bbs_path']?>/new.php">최근게시물</a>
ㅣ
<a href="<?=$g4['path']?>/include/sitemap/site_map.php">사이트맵</a>
</td>
<td width="190" align="right">
<!--검색 시작-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" height="33" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="10"></td>
<td width="126" valign="middle" bgcolor="#FFFFFF"><INPUT name="stx" maxlengt=20 style="BORDER : 1px solid; border-color:#CCCCCC; width: 126px; HEIGHT: 20px; BACKGROUND-COLOR: #FFFFFF" maxlength="20"></td>
<td width="5"></td>
<td width="44"><input type="image" src="<?=$g4['path']?>/img/search_button.gif" border="0"></td>
<td width="5"></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
//***********************************************************************************************
// 라이센스는 http://sir.co.kr/gnuboard/g4_license.php를 따릅니다.
// 빌더명 : 제나빌더
// 제작일 : 2006-05-18일
// 제작자 : 제로나라 http://zeronara.net
// e-mail : http://zeronara.net/)는 제나빌더를 사용할 수 없거나 사용법을 제대로 인식하지 못해서
// 발생한 이익 손실, 업무 중단, 사업 정보의 손실 또는 금전상의 손실 등 사업상의 손해를
// 포함한 부수적이고 간접적인 손해에 대해서, 비록 이와 같은 손해 가능성에 대해서
// 사전에 알고 있었다고 해도 책임을 지지 않습니다.
// 저작권 : 이 주석 부분은 삭제할 수 없습니다.
//************************************************************************************************
?>
<body <? if ($member[mb_level] >= 2) {?> <? } else { ?> oncontextmenu='return false;' onselectstart='return false' ondragstart='return false' <? } ?>
<!--전체 테이블-->
<table width="100%" cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign="top" align="<?=$zalign?>">
<!--상단로고 및 메뉴-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td rowspan="2" width="10"></td>
<td rowspan="2" width="190" border="0" align=center><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.gif" border="0"></a></td>
<td rowspan="2" width="10"></td>
<td width="680" border="0" align=right valign=top>
<!--로그인 및 검색-->
<table width=100% border="0" cellspacing="0" cellpadding="0">
<tr>
<td align=left>
</td>
<td align=right>
<a href="<?=$g4['path']?>/">HOME</a>
ㅣ
<? if (!$member['mb_id']) { ?>
<!-- 로그인 이전-->
<a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>">로그인</a>
ㅣ
<a href="<?=$g4['bbs_path']?>/register.php">회원가입</a>
ㅣ
<? } else { ?>
<!--로그인 이후-->
<a href="<?=$g4['bbs_path']?>/logout.php">로그아웃</a>
ㅣ
<a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php">정보수정</a>
ㅣ
<? } ?>
<!--최근게시물 버튼-->
<a href="<?=$g4['bbs_path']?>/new.php">최근게시물</a>
ㅣ
<a href="<?=$g4['path']?>/include/sitemap/site_map.php">사이트맵</a>
</td>
<td width="190" align="right">
<!--검색 시작-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" height="33" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="10"></td>
<td width="126" valign="middle" bgcolor="#FFFFFF"><INPUT name="stx" maxlengt=20 style="BORDER : 1px solid; border-color:#CCCCCC; width: 126px; HEIGHT: 20px; BACKGROUND-COLOR: #FFFFFF" maxlength="20"></td>
<td width="5"></td>
<td width="44"><input type="image" src="<?=$g4['path']?>/img/search_button.gif" border="0"></td>
<td width="5"></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
/*
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
f.action = "<?=$g4['bbs_path']?>/search.php";
f.submit();
}
</script>
<!-- 검색 끝 -->
</td>
</tr>
</table>
<!--로그인 및 검색끝-->
</td>
<td rowspan="2" width="10"></td>
<td rowspan="2" width="100"></td>
</tr>
<tr>
<td width="680" border="0" align=center valign=top>
<!--메인메뉴-->
<table width='100%' height=<?=$menu_grouphsize?> border='0' cellspacing="0" cellpadding="0" bgcolor=<?=$grcolor?> border=0><tr><td>
<div style='
width:100%;
position:relative; top:<?=$menu_top?>; left:<?=$menu_left?>;
border: 0px solid silver;
background-color:transparent;
float:left;
padding:0 0 0 0;
z-index:50;
'>
<? include_once("$g4[path]/include/mainmenu/mainmenu.php"); //상단메뉴 ?>
</div>
</td>
</tr>
</table>
<!--메인메뉴-->
</td>
</tr>
</table>
<!--여백 시작-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="<?=$zleftfront?>" height="5" border="0"></td>
<td width="<?=$zleftwidth?>" border="0"></td>
<td width="10" border="0"></td>
<td width="<?=$zcenterwidth?>" border="0"></td>
<td width="10" border="0"></td>
<td width="<?=$zrightwidth?>" border="0"></td>
</tr>
</table>
<!--여백 끝-->
<!--왼쪽/메인시작-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="<?=$zleftfront?>" border="0"></td>
<td width="<?=$zleftwidth?>" border="0" align=center valign=top>
<!--왼쪽-->
<?=outlogin("zn_outlogin"); // 외부 로그인 ?>
<div style='height:2px;'></div>
<? include_once("$g4[path]/include/leftmenu/leftmenu.php"); //왼쪽메뉴?>
<?=latest_banner("banner_left","leftbanner", 5, 1); //왼쪽배너 ?>
<div style='height:2px;'></div>
<!--환율-->
<table cellspacing="0" cellpadding="0" border="0" width="130" bgcolor="#ECECEC">
<tr><td colspan="5" width="180" align="center" class="bgBlueGrey" bgcolor="#FF6600"><b><font size="3" color="white">KOISRA 국제환율</font></b></td></tr>
<tr><td colspan="3"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></tr>
<tr><td colspan="3"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></tr>
<tr><td nowrap colspan="3" width="180" bgcolor="white"><p align="center"><span class="t9">2007/10/05 환율 기준</span></p></td></tr>
<tr><td colspan="3"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></tr>
<tr><td colspan="3" class="bgBlack"><img src="/hasen/images/0.gif" width="1" height="1" border="0"></td></tr>
<tr><td colspan="5"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></tr>
<tr width="180"><td bgcolor="white"><span class="t11">미국 USD</span></td><td align="right" bgcolor="white"><span class="t11">916.70</span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr width="180"><td bgcolor="white"><span class="t11">유로통화 EUR </span></td><td align="right" bgcolor="white"><span class="t11">1295.11</span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr width="180"><td bgcolor="white"><span class="t11"><b>이스라엘 ILS</b></span></td><td align="right" bgcolor="white"><span class="t11"><b>228.77</b></span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr width="180"><td bgcolor="white"><span class="t11">일본 JPY</span></td><td align="right" bgcolor="white"><span class="t11">786.66</span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr width="180"><td bgcolor="white"><span class="t11">요르단 JOD</span></td><td align="right" bgcolor="white"><span class="t11">1296.24</span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr><td colspan="3" bgcolor="white"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></td></tr></table>
f.submit();
}
</script>
<!-- 검색 끝 -->
</td>
</tr>
</table>
<!--로그인 및 검색끝-->
</td>
<td rowspan="2" width="10"></td>
<td rowspan="2" width="100"></td>
</tr>
<tr>
<td width="680" border="0" align=center valign=top>
<!--메인메뉴-->
<table width='100%' height=<?=$menu_grouphsize?> border='0' cellspacing="0" cellpadding="0" bgcolor=<?=$grcolor?> border=0><tr><td>
<div style='
width:100%;
position:relative; top:<?=$menu_top?>; left:<?=$menu_left?>;
border: 0px solid silver;
background-color:transparent;
float:left;
padding:0 0 0 0;
z-index:50;
'>
<? include_once("$g4[path]/include/mainmenu/mainmenu.php"); //상단메뉴 ?>
</div>
</td>
</tr>
</table>
<!--메인메뉴-->
</td>
</tr>
</table>
<!--여백 시작-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="<?=$zleftfront?>" height="5" border="0"></td>
<td width="<?=$zleftwidth?>" border="0"></td>
<td width="10" border="0"></td>
<td width="<?=$zcenterwidth?>" border="0"></td>
<td width="10" border="0"></td>
<td width="<?=$zrightwidth?>" border="0"></td>
</tr>
</table>
<!--여백 끝-->
<!--왼쪽/메인시작-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="<?=$zleftfront?>" border="0"></td>
<td width="<?=$zleftwidth?>" border="0" align=center valign=top>
<!--왼쪽-->
<?=outlogin("zn_outlogin"); // 외부 로그인 ?>
<div style='height:2px;'></div>
<? include_once("$g4[path]/include/leftmenu/leftmenu.php"); //왼쪽메뉴?>
<?=latest_banner("banner_left","leftbanner", 5, 1); //왼쪽배너 ?>
<div style='height:2px;'></div>
<!--환율-->
<table cellspacing="0" cellpadding="0" border="0" width="130" bgcolor="#ECECEC">
<tr><td colspan="5" width="180" align="center" class="bgBlueGrey" bgcolor="#FF6600"><b><font size="3" color="white">KOISRA 국제환율</font></b></td></tr>
<tr><td colspan="3"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></tr>
<tr><td colspan="3"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></tr>
<tr><td nowrap colspan="3" width="180" bgcolor="white"><p align="center"><span class="t9">2007/10/05 환율 기준</span></p></td></tr>
<tr><td colspan="3"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></tr>
<tr><td colspan="3" class="bgBlack"><img src="/hasen/images/0.gif" width="1" height="1" border="0"></td></tr>
<tr><td colspan="5"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></tr>
<tr width="180"><td bgcolor="white"><span class="t11">미국 USD</span></td><td align="right" bgcolor="white"><span class="t11">916.70</span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr width="180"><td bgcolor="white"><span class="t11">유로통화 EUR </span></td><td align="right" bgcolor="white"><span class="t11">1295.11</span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr width="180"><td bgcolor="white"><span class="t11"><b>이스라엘 ILS</b></span></td><td align="right" bgcolor="white"><span class="t11"><b>228.77</b></span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr width="180"><td bgcolor="white"><span class="t11">일본 JPY</span></td><td align="right" bgcolor="white"><span class="t11">786.66</span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr width="180"><td bgcolor="white"><span class="t11">요르단 JOD</span></td><td align="right" bgcolor="white"><span class="t11">1296.24</span></td><td bgcolor="white"><img src="/hasen/images/0.gif" width="3" height="1" border="0"></td></tr><tr><td colspan="3" bgcolor="white"><img src="/hasen/images/0.gif" width="1" height="3" border="0"></td></td></tr></table>
<table border="0" cellpadding="0" cellspacing="0" width="180" bgcolor="#ffffff">
<tr>
<td valign="top"><script SRC='http://dclk.haaretz.com/js.ng/site=Haaretz_Eng&adsize=120x30&hposition=400&hlayer1='></script></td>
</tr>
</table>
<!--환율끝-->
<div style='height:1px;'></div>
<!--naver시작-->
<iframe src="http://ia.www.naver.com/ia.nhn" width="100%" height="100" border="0" frameborder=0 scrolling=no marginheight=0 marginwidth=0 align=center></iframe>
<!--naver끝-->
<div style='height:1px;'></div>
<?=connect("basic"); // 현재 접속자수 ?>
<?=visit("basic"); // 방문자수 ?>
</tr>
<!--왼쪽끝-->
</td>
<td width="10" border="0"></td>
<td width="680" border="0" align=center valign=top>
<!--상단배너-->
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td align="center" valign=top>
<?=latest("banner_main", $grbanner, 1, 24); //상단배너 ?>
</td>
</tr>
</table>
<!--센터-->
<tr>
<td valign="top"><script SRC='http://dclk.haaretz.com/js.ng/site=Haaretz_Eng&adsize=120x30&hposition=400&hlayer1='></script></td>
</tr>
</table>
<!--환율끝-->
<div style='height:1px;'></div>
<!--naver시작-->
<iframe src="http://ia.www.naver.com/ia.nhn" width="100%" height="100" border="0" frameborder=0 scrolling=no marginheight=0 marginwidth=0 align=center></iframe>
<!--naver끝-->
<div style='height:1px;'></div>
<?=connect("basic"); // 현재 접속자수 ?>
<?=visit("basic"); // 방문자수 ?>
</tr>
<!--왼쪽끝-->
</td>
<td width="10" border="0"></td>
<td width="680" border="0" align=center valign=top>
<!--상단배너-->
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td align="center" valign=top>
<?=latest("banner_main", $grbanner, 1, 24); //상단배너 ?>
</td>
</tr>
</table>
<!--센터-->
댓글 전체
자세히 보지 못했지만 우선 아래 소스에서
<body <? if ($member[mb_level] >= 2) {?> <? } else { ?> oncontextmenu='return false;' onselectstart='return false' ondragstart='return false' <? } ?> 여기 맨 뒤에 > 가 빠졌네요.
즉
<body <? if ($member[mb_level] >= 2) {?> <? } else { ?> oncontextmenu='return false;' onselectstart='return false' ondragstart='return false' <? } ?>>
<body <? if ($member[mb_level] >= 2) {?> <? } else { ?> oncontextmenu='return false;' onselectstart='return false' ondragstart='return false' <? } ?> 여기 맨 뒤에 > 가 빠졌네요.
즉
<body <? if ($member[mb_level] >= 2) {?> <? } else { ?> oncontextmenu='return false;' onselectstart='return false' ondragstart='return false' <? } ?>>
아...거기가 빠졌군요?
근데... 수정해도 여전히 에러가 나네요...ㅠㅠ
근데... 수정해도 여전히 에러가 나네요...ㅠㅠ
tail에 해당하는 파일에서 divMenu에 해당하는 아이디가 속한 레이어가 없습니다.
아마도 센터정렬과 관련이 있는 것 같은데 .. 필요없는 소스라면 지우세요.
헤드서브 파일에서 스크롤 퀵메뉴에 해당하는 것도 지우셔도 될 듯합니다.
그리고 필요하지 않다고 여겨지는 스크립트는 과감히 지우세요.
지우고 나서 이상이 있다면 다시 쓰시고 그것에 해당하는 것이 어디서 무슨 기능을 하는지 대강이라도 알고계세요.
그래야 다음에 문제가 되도 해결이 쉬울 수 있습니다.
아마도 센터정렬과 관련이 있는 것 같은데 .. 필요없는 소스라면 지우세요.
헤드서브 파일에서 스크롤 퀵메뉴에 해당하는 것도 지우셔도 될 듯합니다.
그리고 필요하지 않다고 여겨지는 스크립트는 과감히 지우세요.
지우고 나서 이상이 있다면 다시 쓰시고 그것에 해당하는 것이 어디서 무슨 기능을 하는지 대강이라도 알고계세요.
그래야 다음에 문제가 되도 해결이 쉬울 수 있습니다.
좋은 조언 너무 감사합니다.
소스를 천천히 살펴보면서 지워봤는데 그래도 여전히 오류가 나네요.
좀 더 인내심을 가지고 해봐야겠습니다.
newpia 님에서 포인트 드립니다. 감사합니다.
소스를 천천히 살펴보면서 지워봤는데 그래도 여전히 오류가 나네요.
좀 더 인내심을 가지고 해봐야겠습니다.
newpia 님에서 포인트 드립니다. 감사합니다.
지금은 되네요..사이트 잘봤어요..^^