그누보드 최신버전을 사용하고 있고요.
외부로그인떄문에 그러는데요.
<?
include_once("../sir/_common.php");
include_once("../sir/lib/latest.lib.php");
include_once("../sir/lib/outlogin.lib.php"); //
$g4['title'] = "";
include_once("../sir/_common.php_head.php");
?>
<html>
<head>
<title>▒ 기린&황룡서버 한마음 상단 ▒</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
function reSize() {
try {
var objBody = auto_iframe.document.body;
var objFrame = document.all["auto_iframe"];
ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
objFrame.style.height = ifrmHeight;
}
catch(e) {}
}
function init_iframe() {
reSize();
setTimeout('init_iframe()',1)
}
init_iframe();
</script>
<STYLE type=text/css>
<!--
BODY { scrollbar-3dlight-color:#FFFFFF;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#FFFFFF;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-face-color:#FFFFFF;
scrollbar-highlight-color:#FFFFFF;
scrollbar-shadow-color:#FFFFFF}
a { text-decoration:none; }
--></STYLE>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="1110" height="865" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="18">
<img src="images/han_01.gif" width="1110" height="9" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images/han_02.gif" width="129" height="32" alt=""></td>
<td>
<a href="images/main.php" target="auto_iframe" onfocus=this.blur();><img src="images/han_03.gif" width="87" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_04.gif" width="369" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_notice" target="auto_iframe" onfocus=this.blur();><img src="images/han_05.gif" width="53" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_06.gif" width="22" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_bbs" target="auto_iframe" onfocus=this.blur();><img src="images/han_07.gif" width="68" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_08.gif" width="19" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_data" target="auto_iframe" onfocus=this.blur();><img src="images/han_09.gif" width="44" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_10.gif" width="21" height="32" alt=""></td>
<td>
<img src="images/han_11.gif" width="43" height="22" alt=""></td>
<td rowspan="2">
<img src="images/han_12.gif" width="19" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_screen" target="auto_iframe" onfocus=this.blur();><img src="images/han_13.gif" width="57" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_14.gif" width="17" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_guest" target="auto_iframe" onfocus=this.blur();><img src="images/han_15.gif" width="37" height="22" alt="" border="0"></a></td>
<td colspan="2" rowspan="2">
<img src="images/han_16.gif" width="125" height="32" alt=""></td>
</tr>
<tr>
<td>
<img src="images/han_17.gif" width="87" height="10" alt=""></td>
<td>
<img src="images/han_18.gif" width="53" height="10" alt=""></td>
<td>
<img src="images/han_19.gif" width="68" height="10" alt=""></td>
<td>
<img src="images/han_20.gif" width="44" height="10" alt=""></td>
<td>
<img src="images/han_21.gif" width="43" height="10" alt=""></td>
<td>
<img src="images/han_22.gif" width="57" height="10" alt=""></td>
<td>
<img src="images/han_23.gif" width="37" height="10" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/han_24.gif" width="35" height="356" alt=""></td>
<td colspan="15">
<img src="images/han_25.gif" width="1039" height="356" alt=""></td>
<td rowspan="3">
<img src="images/han_26.gif" width="36" height="823" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/han_27.gif" width="33" height="467" alt=""></td>
<td colspan="16" height="412" valign="top">
<table align="center" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td><?=outlogin("outlogin_tu")?></td>
</tr>
</table>
<p align="center"><iframe src="images/main.php" frameborder="0" width="95%" allowTransparency="true" name="auto_iframe" id="auto_iframe" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="true" align="top"></iframe></p>
</td>
</tr>
<tr>
<td colspan="16">
<img src="images/han_29.gif" width="1041" height="55" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="33" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="94" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="87" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="369" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="53" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="22" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="68" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="19" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="44" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="21" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="43" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="19" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="57" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="17" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="37" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="89" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="36" height="1" alt=""></td>
</tr>
</table>
</body>
</html>
소스는 이렇게되어있구요.
애러코드는 위에 스샷을 보시는거와 같이 나타납니다.
두번째 스크린샷은 저의 그누보드와 홈페이지 데이터가 있는 위치입니다.
소스좀 수정해주세요.ㅠㅠ
외부로그인떄문에 그러는데요.
<?
include_once("../sir/_common.php");
include_once("../sir/lib/latest.lib.php");
include_once("../sir/lib/outlogin.lib.php"); //
$g4['title'] = "";
include_once("../sir/_common.php_head.php");
?>
<html>
<head>
<title>▒ 기린&황룡서버 한마음 상단 ▒</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript">
function reSize() {
try {
var objBody = auto_iframe.document.body;
var objFrame = document.all["auto_iframe"];
ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
objFrame.style.height = ifrmHeight;
}
catch(e) {}
}
function init_iframe() {
reSize();
setTimeout('init_iframe()',1)
}
init_iframe();
</script>
<STYLE type=text/css>
<!--
BODY { scrollbar-3dlight-color:#FFFFFF;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#FFFFFF;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-face-color:#FFFFFF;
scrollbar-highlight-color:#FFFFFF;
scrollbar-shadow-color:#FFFFFF}
a { text-decoration:none; }
--></STYLE>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="1110" height="865" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="18">
<img src="images/han_01.gif" width="1110" height="9" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images/han_02.gif" width="129" height="32" alt=""></td>
<td>
<a href="images/main.php" target="auto_iframe" onfocus=this.blur();><img src="images/han_03.gif" width="87" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_04.gif" width="369" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_notice" target="auto_iframe" onfocus=this.blur();><img src="images/han_05.gif" width="53" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_06.gif" width="22" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_bbs" target="auto_iframe" onfocus=this.blur();><img src="images/han_07.gif" width="68" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_08.gif" width="19" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_data" target="auto_iframe" onfocus=this.blur();><img src="images/han_09.gif" width="44" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_10.gif" width="21" height="32" alt=""></td>
<td>
<img src="images/han_11.gif" width="43" height="22" alt=""></td>
<td rowspan="2">
<img src="images/han_12.gif" width="19" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_screen" target="auto_iframe" onfocus=this.blur();><img src="images/han_13.gif" width="57" height="22" alt="" border="0"></a></td>
<td rowspan="2">
<img src="images/han_14.gif" width="17" height="32" alt=""></td>
<td>
<a href="http://minii.hostple.net/@/sir/bbs/board.php?bo_table=han_guest" target="auto_iframe" onfocus=this.blur();><img src="images/han_15.gif" width="37" height="22" alt="" border="0"></a></td>
<td colspan="2" rowspan="2">
<img src="images/han_16.gif" width="125" height="32" alt=""></td>
</tr>
<tr>
<td>
<img src="images/han_17.gif" width="87" height="10" alt=""></td>
<td>
<img src="images/han_18.gif" width="53" height="10" alt=""></td>
<td>
<img src="images/han_19.gif" width="68" height="10" alt=""></td>
<td>
<img src="images/han_20.gif" width="44" height="10" alt=""></td>
<td>
<img src="images/han_21.gif" width="43" height="10" alt=""></td>
<td>
<img src="images/han_22.gif" width="57" height="10" alt=""></td>
<td>
<img src="images/han_23.gif" width="37" height="10" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/han_24.gif" width="35" height="356" alt=""></td>
<td colspan="15">
<img src="images/han_25.gif" width="1039" height="356" alt=""></td>
<td rowspan="3">
<img src="images/han_26.gif" width="36" height="823" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/han_27.gif" width="33" height="467" alt=""></td>
<td colspan="16" height="412" valign="top">
<table align="center" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td><?=outlogin("outlogin_tu")?></td>
</tr>
</table>
<p align="center"><iframe src="images/main.php" frameborder="0" width="95%" allowTransparency="true" name="auto_iframe" id="auto_iframe" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="true" align="top"></iframe></p>
</td>
</tr>
<tr>
<td colspan="16">
<img src="images/han_29.gif" width="1041" height="55" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="33" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="94" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="87" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="369" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="53" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="22" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="68" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="19" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="44" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="21" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="43" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="19" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="57" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="17" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="37" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="89" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="36" height="1" alt=""></td>
</tr>
</table>
</body>
</html>
소스는 이렇게되어있구요.
애러코드는 위에 스샷을 보시는거와 같이 나타납니다.
두번째 스크린샷은 저의 그누보드와 홈페이지 데이터가 있는 위치입니다.
소스좀 수정해주세요.ㅠㅠ
첨부파일
댓글을 작성하시려면 로그인이 필요합니다.
댓글 1개
tron님 께서 올리신 글이 있습니다.
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=8463
이걸 보시면 아실 거구요 잘 모르시겠다면
// 탈 디렉토리를 위한 자동으로 그누보드 디렉토리 찾기
$core_name = "sir"; // 루트에 그누보드가 깔린 디렉토리명.
if(empty($core_name)){
$core_path = "";
}else{
$depth = substr_count(substr(dirname($_SERVER['SCRIPT_FILENAME']), strlen($core_name), strlen(dirname($_SERVER['SCRIPT_FILENAME']))-1), "/");
if($depth < 2){
$core_path = $core_name;
}else{
$core_path = str_repeat("../", $depth-1);
$core_path .= $core_name;
}
}
$g4_path = $core_path;
// 찾기 완료!!
?>
이부분까지를 inlcude_once위에 선언해 보세요.