외부로그인 해결이 안되서요ㅠㅠ 도와주세요... > 그누4 질문답변

그누4 질문답변

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

외부로그인 해결이 안되서요ㅠㅠ 도와주세요... 정보

외부로그인 해결이 안되서요ㅠㅠ 도와주세요...

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :




head1.php-------------------------------------------------------------------

<?
include_once("./_common.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");

echo outlogin("sds");
?>
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>

<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" bgcolor="#A24141">
<div align="left">
<table cellpadding="0" cellspacing="0" width="1200">
        <tr>
            <td width="342" rowspan="5" valign="bottom" height="1007" background="http://cfile233.uf.daum.net/original/-"><img src="http://cfile230.uf.daum.net/original/-" border="0"></td>
            <td width="858" valign="top" height="485" background="http://cfile233.uf.daum.net/original/-" colspan="3"><img src="http://cfile229.uf.daum.net/original/-" border="0" usemap="#ImageMap1">
                <map name="ImageMap1">
                <area shape="rect" coords="17, 287, 293, 410" href="http://-.ivyro.net/gnuboard4/bbs/board.php?bo_table=main">
                <area shape="rect" coords="22, 425, 59, 447" href="http://-.ivyro.net/gnuboard4/bbs/board.php?bo_table=data">
                <area shape="rect" coords="99, 424, 138, 449" href="http://-.net/gnuboard4/bbs/board.php?bo_table=-">
                <area shape="rect" coords="176, 423, 217, 449" href="http://-.ivyro.net/gnuboard4/bbs/board.php?bo_table=talk">
                <area shape="rect" coords="251, 422, 300, 448" href="http://-.ivyro.net/gnuboard4/bbs/board.php?bo_table=link">
                <area shape="rect" coords="338, 426, 377, 448" href="http://-.ivyro.net/gnuboard4/bbs/board.php?bo_table=help">
                <area shape="rect" coords="416, 425, 463, 449" href="http://-.ivyro.net/gnuboard4/bbs/board.php?bo_table=-">
</map>

-------------------------------------------------------------------------------




index1.php---------------------------------------------------------


</td>
    </tr>
        <tr>
            <td width="858" height="20" background="http://cfile233.uf.daum.net/original/-" colspan="3">
                <p><?=outlogin("sds"); // 외부 로그인 ?>
</p>
</td>
    </tr>
        <tr>
            <td width="858" height="217" background="http://cfile233.uf.daum.net/original/-" colspan="3">

                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
</td>
<?
include_once("./_tail1.php");
?>

--------------------------------------------------------------------------



tail1.php----------------------------------------------------------------------
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>


    </tr>
        <tr>
            <td width="286" height="217" background="http://cfile233.uf.daum.net/original/-">
                <p align="left"><?=latest("egg01", "data", 6, 20);?></p>
</td>
            <td width="286" height="217" background="http://cfile233.uf.daum.net/original/-">
                <p align="left"><?=latest("egg01", "-", 6, 20);?></p>
</td>
            <td width="286" height="217" background="http://cfile233.uf.daum.net/original/-">
                <p align="left"><?=latest("egg01", "talk", 6, 20);?></p>
</td>
    </tr>
        <tr>
            <td width="858" valign="bottom" height="94" background="http://cfile233.uf.daum.net/original/-" colspan="3"><img src="http://cfile217.uf.daum.net/original/-" border="0"></td>
    </tr>
</table>
</div>
</body>

</html>
-------------------------------------------------------------------------




이렇게 해서 최근게시물은 올라갔거든요? 그런데 지금 외부로그인이
위에 있는 사진처럼 떠요. 저 네모박스 안으로 넣고 싶은데ㅠㅠㅠ
index1.php에 있는 로그인 대입을 지워도 위쪽에 뜨고, 안 지워도 위쪽에 뜨고.
그렇다고 head1.php에 있는 가장 상단 쪽에서 echo outlogin("sds");를 지우면 아예 저 위쪽에서
사라짐과 동시에 인덱스쪽에 로그인 대입이 있어도 안 떠요.

어떻게 해야하나요?ㅠㅠㅠㅠㅠㅠㅠㅠ


혹시 몰라서 _common.php도...

_common.php------------------------------------------------------

<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>

-------------------------------------------------------------------


index.html은 public_html 안에 있구요, public_html 안에 gnuboard4가 있어요.
그리고 gunboard4 안에 head1.php index1.php tail1.php _common.php가 있구요.


도와주세요.... 최근게시물은 어제 했는데 외부로그인은 일주일째 해결을 못하고 있어요ㅠㅠㅠㅠㅠ

댓글 전체

1. head1.php를 아래처럼 수정하시고요.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/outlogin.lib.php");
?>

2. index1.php에 아래를 추가하세요.
<?
include_once("./_common.php");
include_once("$g4[path]/head1.php");
?>
그리고 tail1.php에서 아래 모두 필요없습니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

include_once("$g4[path]/lib/latest.lib.php"); //이부분만 head1.php에서 인쿨드시키세요.
아,,,게시판에서 불러오는 게시판 상단파일을 올려보세요.
index1.php에서 저렇게 불로올것이 아니라, 게시판 설정에서 게시판 상단파일에 들어간 파일에서 불로와야 합니다.
다들 너무 감사해요ㅠㅠㅠ 결국 안되서 게시판에 넣어봤더니 그제서야 되더라구요!ㅠㅠㅠㅠㅠㅠㅠㅠ 답변 달아주신 분들 모두 감사합니다...ㅠㅠ
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT