정말 도움좀 부탁드립니다. (1000 포인트 걸어요.ㅜ.ㅜ )
FTP 경로
WWW - music
- gnuboard4
현재 노프레임 홈을 구성중입니다.
어느정도 막바지 단계에 다다랐는데..
문제는 로그인창 부분입니다.
----------------------------
상 단 메 뉴
----------------------------
|
로그인창 |
|
| 게 시 판
메 |
뉴 |
|
----------------------------
하 단 내 용
----------------------------
그누 게시판 스킨 수정에서 상단 파일경로 / 하단 파일경로는
위에 FTP 경로에 언급하듯이 올바르게 준 상태이고요 화면상 잘나옵니다 에러없이..
문제는 로그인창 그림이랑 / 해당 로그인 활성이 안되길래 주소를 보니..
위와같이 gnuboard4 라는 경로가 하나더 붙어서 안나오네요 ㅡ.ㅡ...
head 상단파일에는
<?
include_once "_common1.php";
include_once("$g4[path]/head.sub.php");
include_once "$g4[path]/lib/latest.lib.php";
include_once("$g4[path]/lib/outlogin.lib.php");
?>
include_once "_common1.php";
include_once("$g4[path]/head.sub.php");
include_once "$g4[path]/lib/latest.lib.php";
include_once("$g4[path]/lib/outlogin.lib.php");
?>
_common1.php 파일에는
<?
$g4_path = "../gnuboard4";
include_once("$g4_path/common.php");
?>
$g4_path = "../gnuboard4";
include_once("$g4_path/common.php");
?>
요렇게 준상태 입니다.
뭐가 문제일까요?????????????????????????????????
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 15개
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script type="text/javascript" language=JavaScript>
var check_usrId = false;
var check_passwd = false;
function input_id () {
if ( check_usrId ) return true;
document.fhead.mb_id.style.backgroundImage ="";
check = true;
return true;
}
function input_pwd () {
if ( check_passwd ) return true;
document.fhead.mb_password.style.backgroundImage ="";
check = true;
return true;
}
</script>
<!--------------------------- 제니하우스로그인전 외부로그인 시작 ------------->
<table width="180" border="0" cellpadding="0" cellspacing="0">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$urlencode?>">
<tr>
<td width="180" style="padding: 5 0 0 10"><img src="<?=$outlogin_skin_path?>/img/login_title.gif"></td>
</tr>
<tr>
<td width="180" style="padding: 0 0 0 10">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:7px;">
<tr>
<td align="left" width="112">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><input name="mb_id" type="text" size="21" maxlength="16" style="IME-MODE: disabled; background-image:url(<?=$outlogin_skin_path?>/img/text_id.gif); background-repeat:no-repeat; background-position:left;width:105px;" onkeydown="javascript:input_id()" onmousedown="javascript:input_id();" tabindex="1" class="loginplus_input"></td>
</tr>
<tr>
<td align="center" style="padding-left:0px;"><input name="mb_password" type="PASSWORD" size="21" maxlength="16" itemname="PASSWORD" style="IME-MODE: disabled; background-image:url(<?=$outlogin_skin_path?>/img/text_pw.gif); background-repeat:no-repeat; background-position:left;width:105px;" onkeydown="javascript:input_pwd()" onmousedown="javascript:input_pwd();" tabindex="2" class="loginplus_input"></td>
</tr>
</table>
</td>
<td><input type="image" src="<?=$outlogin_skin_path?>/img/login_08.gif"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="180" style="padding: 0 0 0 13">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:8px;">
<tr>
<td width="57"><a href="<?=$g4[bbs_path]?>/register.php"><img src="<?=$outlogin_skin_path?>/img/login_07.gif" border="0" vspace="0" hspace="0"></a></td>
<td><a href="javascript:win_password_forget();"><img src="<?=$outlogin_skin_path?>/img/login_06.gif" border="0" vspace="0" hspace="0"></a></td>
</tr>
<tr>
<td height="3"></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
if (!f.mb_id.value)
{
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return;
}
if (!f.mb_password.value)
{
alert("비밀번호를 입력하십시오.");
f.mb_password.focus();
return;
}
f.action = "<?=$g4[bbs_path]?>/login_check.php";
f.submit();
}
</script>
<!---------------------- 메뉴레이어플래시 시작-------------------->
<div id="mainimg" style="width:20px; height:30px; position:absolute; left:49px; top:252px; z-index:0;">
<table cellpadding="0" cellspacing="0" width="20">
<tr>
<td>
<script>
flash_write("../o/swf/top.swf","20","30","","transparent")
</script>
</td>
</tr>
</table>
</div>
<!----- 메뉴레이어플래시 끝---->
<!-------- 로그인후 제니하우스외부로그인 끝 --------->
이거입니다.
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="176" cellpadding="0" cellspacing="0" style="margin-top:1px;">
<tr>
<td background="<?=$outlogin_skin_path?>/img/bt_bg.gif" height="27" width="180" onMouseOver="MM_showHideLayers('my_view1','','show')"><div align="center"></div></td>
</tr>
</table>
<!--------------------------- 제니하우스로그인후 외부로그인 시작 ------------->
<table width="180" cellpadding="0" cellspacing="0" style="margin-top:7px;">
<tr>
<td width="180" style="padding: 0 0 0 10">
<table width="165" cellpadding="0" cellspacing="0" style="margin-top:0px;">
<tr>
<td width="35"><img src="<?=$outlogin_skin_path?>/img/logged_img01.gif"></td>
<td width="130"><span class="login_name"><?=$nick?></span><? if ($is_admin == "super" || $is_auth) { ?><a href="<?=$g4[admin_path]?>/index.php"><img src="<?=$outlogin_skin_path?>/img/admin.gif" border="0" vspace="0" hspace="0" align="absmiddle"></a><? } ?></td>
</tr>
<tr>
<td colspan="4">
<table width="100%" cellpadding="0" cellspacing="0" style="margin-top:2px;">
<tr>
</tr>
<tr>
<td width="85" style="padding: 0 0 0 5"><font size="2">포인트: </font><span class="login_point"><?=$point?></span></td>
<td style="padding: 0 0 0 5"><a href="javascript:win_memo();"><font size="2">쪽지: </font><span class="login_point"><font size="2"><?=$memo_not_read?></font></span></a></td>
</tr>
</table>
</tr>
</td>
</table>
</td>
</tr>
<tr>
<td width="180" style="padding: 0 0 0 12" border="0" vspace="0" hspace="0">
<table width="155" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #E7E7E7" style="margin-top:7px;">
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:5px;">
</tr>
<tr>
<td style="padding: 0 0 0 5">
<a href="<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php" onmouseover='img3.src="<?=$outlogin_skin_path?>/img/btn_modifyb.gif" ' onmouseout='img3.src="<?=$outlogin_skin_path?>/img/btn_modify.gif"'><img src="<?=$outlogin_skin_path?>/img/btn_modify.gif" border="0" vspace="0" hspace="0" name='img3'></a>
<a href="<?=$g4[bbs_path]?>/logout.php" onmouseover='img4.src="<?=$outlogin_skin_path?>/img/btn_dconnectb.gif"' onmouseout='img4.src="<?=$outlogin_skin_path?>/img/btn_dconnect.gif"'><img src="<?=$outlogin_skin_path?>/img/btn_dconnect.gif" border="0" vspace="0" hspace="0" name='img4'></a></td>
</td>
</tr>
<tr>
<td height="2"></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<!--------------------------- 나의 최신게시물 시작 ------------->
<DIV id='my_view1' style="position:relative; left: 200px; top: -125px; width:100%px; visibility: hidden;" onMouseOut="MM_showHideLayers('my_view1','','hide')" onMouseOver="MM_showHideLayers('my_view1','','show')" >
<DIV id="my_view2" style="position:absolute; left:0px; top:0px; width:100%px; z-index:1;">
<table width="100%" border="0" cellspacing="0" cellpadding="4" style="border:4px solid #456E1F">
<tr>
<td bgcolor="#ffffff"><font size="2">
<? //
if ($member[mb_id])
{
$new_count = 5;
$cnt = 0;
$sql = " select bo_table, wr_parent from $g4[board_new_table] a
where mb_id = '$member[mb_id]'
-- and a.wr_id = a.wr_parent
group by bo_table, wr_parent
order by bn_id desc
limit $new_count ";
$res = sql_query($sql);
echo "<table width=95% cellpadding=0 cellspacing=0 align=center>";
for ($i=0; $row=sql_fetch_array($res), $i<$new_count; $i++)
{
if (!$row[bo_table])
{
continue;
}
$tmp_table = $g4[write_prefix].$row[bo_table];
$sql2 = " select wr_subject, wr_comment from $tmp_table where wr_id = '$row[wr_parent]' ";
$row2 = sql_fetch($sql2);
$subj = cut_str(get_text($row2[wr_subject]), 22);
$comment = "";
if ($row2[wr_comment])
$comment = "($row2[wr_comment])";
echo "<tr><td width='15'><img src='$outlogin_skin_path/img/my_view_bt.gif'></td>";
echo "<td height='25' style='letter-spacing: -1px;'>";
echo "<nobr>";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]&wr_id=$row[wr_parent]'>$subj</a> <span style='font-family:MS Gothic; font-size:8pt; color:#999999;'>$comment</span>";
echo "</nobr></td></tr>";
echo "<tr><td colspan='2' background='$outlogin_skin_path/img/dot_line.gif'><img src='$outlogin_skin_path/img/dot_line.gif'></td></tr>";
$cnt++; } if (!$cnt) echo "<tr><td colspan='2' height='40' align='center'><img src='$outlogin_skin_path/img/no_write.gif'></td></tr>";
echo "</table>\n";
} ?>
</td></font>
</tr>
</table>
</DIV>
</DIV>
<!--------- 나의 최신게시물 끝 ---------->
<script language="JavaScript">
// 탈퇴의 경우 아래 코드를 연동하시면 됩니다.
function member_leave()
{
if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
location.href = "<?=$g4['bbs_path']?>/member_confirm.php?url=member_leave.php";
}
</script>
<script language="JavaScript" type="text/JavaScript">
<!-- 나의 최신글을 보여주는 스크립트
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
<!---------------------- 메뉴레이어플래시 시작-------------------->
<div id="mainimg" style="width:20px; height:30px; position:absolute; left:49px; top:366px; z-index:0;">
<table cellpadding="0" cellspacing="0" width="20">
<tr>
<td>
<script>
flash_write("../o/swf/top.swf","20","30","","transparent")
</script>
</td>
</tr>
</table>
</div>
<!----- 메뉴레이어플래시 끝---->
<!-------- 로그인후 제니하우스외부로그인 끝 --------->
이건 로긴되고 나서 입니다.
근데 한가지 차이점이..
head.php 제로보드상에있는거 적용시키면 잘되는데
제가 따로 만든 music 폴더에 만들어논 head.html 을 적용시키면..
로그인부분만 적용이 안됩니다.ㅜㅜ
<?
include_once "_common1.php";
include_once("$g4[path]/head.sub.php");
include_once "$g4[path]/lib/latest.lib.php";
include_once("$g4[path]/lib/outlogin.lib.php");
?>
_common1.php 파일에는
<?
$g4_path = "../gnuboard4";
include_once("$g4_path/common.php");
?>
라고 하셨는데, $outlogin_skin_path = "$g4[path]/skin/outlogin/$skin_dir"; 이부분을 손을 안대셨다면, $g4_path 부분이 문제죠.
../gnuboard4/skin/outlogin/$skin_dir 이라고 불려지겠죠. 그런데 ../ 이 부분이 만약에 outlogin 을 인클루드하는 index.php가 gnuboard4/ 에 있다면 ../가 gnuboard4 이니, gnuboard4/gnuboard4 로 두번 불러오겠죠. _common1 에서 재선언된 변수가 문제입니다. $g4_path = "."; 이렇게 바꾸시고 include_once("../gnuboard4/common.php"); 이렇게 해보세요.
include_once("../gnuboard4/common.php"); 이거는 해더파일에 맞나여?
<?
$g4_path = "../gnuboard4";
include_once("$g4_path/common.php");
?>
이거를
<?
$g4_path = ".";
include_once("../gnuboard4/common.php");
?>
이렇게...
분명 저랑 같은 생각을 가지고 계신 분들이 있을거 같아서 해결된부분을 답글로 남길께요
저는 제로보드를 먼저 썻던 유저라 head.html / foot.html 파일로 노프레임 홈을 만드는거에 익숙해져있었습니다.
물론 그누보드에서도 이렇게 해도.. 되더라고요...
그런데 문제는 아웃로그인이 제대로 경로가 맞질 안터군요..
그래서 www--home <- 이렇게 폴더가 있으면 home 폴더안에 head.html / foot.html 을 만들어서
-gnuboard4 각 게시판 상/하단에 적용시켰던 것입니다.
그런데 그누보드는 /gnuboard4 폴더안에있는 head.php 파일과 tail.php 파일안에 각 상/하단에 대한내용을 삽입할 수 있게
해놨더군요.. 그리고 각 게시판마다 상/하단 적용시킬때에는
../head.php
../tail.php
이런식으로 넣으면 되고요.
위와같이 했더니 로그인문제 기타 에러문제 모두 말끔히 해결할 수 있었습니다.
도움을 주시려 노력했던 앵무나라님께 감사의 말씀을 드립니다.