...홈페이지가 사장된거 같습니다... > 그누4 질문답변

그누4 질문답변

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

...홈페이지가 사장된거 같습니다... 정보

...홈페이지가 사장된거 같습니다...

본문

.....뉴비가 뭣도모르고 수정을 시도하다가... 훅가버렸습니다

이렇게된 이유가 뭔지 정말로 궁금합니다..

http://www.wasedaigl.com/

이홈페이지구요 문제원인을 좀 봐주시옵사 합니다..

백업파일은 없구요....

common.php 수정후에 이런일이 벌어졌는데..

댓글 전체

common.php를 수정하신건지 ->
같은버전대의 원본 common.php를 다시 넣으셔서 복구하신다음 재수정

_common.php를 수정하신거라면
경로 문제겠죠.
<?php
$g4_path = "."; // common.php 의 상대 경로 여기에 .또는 .. 또는 ../..으로 경로를 찾아보세요.
include_once("$g4_path/common.php");
?>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
include_once("./_head.php");
?>

<table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td colspan="6"><img src="http://www.wasedaigl.com/images/maintop.jpg" width="734" height="313" border="0"></td>
                </tr>
                <tr>
                    <td height="30" width="731" colspan="6">                       

                        <p><? echo outlogin("cj_login"); ?>
</p>
</td>
                </tr>
                <tr>
                    <td width="434" rowspan="2" align="left" valign="top">                        <BR><p><? include_once("bada_tab.php"); ?></p>
</td>
                    <td width="25" rowspan="6" height="348">
&nbsp;</td>
                    <td width="225" colspan="3" height="50">                        <p><a href="http://www.wasedaigl.com/gnuboard4/bbs/board.php?bo_table=data" target="_self" onfocus='this.blur()'><img src="http://www.wasedaigl.com/images/datamore.jpg" width="225" height="33" border="0"></a></p>
</td>
                    <td width="55" rowspan="6" height="348">&nbsp;</td>
                </tr>
                <tr>
                    <td width="225" colspan="3" align="left" valign="top">                        <p><? echo latest("miwit", "data", 5, 42); ?>
</p>
</td>
                </tr>
                <tr>
                    <td width="434" height="166" rowspan="2"><a href="http://www.wasedaigl.com/gnuboard4/seven.php" target="_self" onfocus='this.blur()'> <img src="http://www.wasedaigl.com/images/why.jpg" width="434" height="165" border="0"></a></td>
                    <td width="225" colspan="3"><a href="http://www.wasedaigl.com/gnuboard4/bbs/board.php?bo_table=eju" target="_self" onfocus='this.blur()'><img src="http://www.wasedaigl.com/images/ejumore.jpg" width="225" height="33" border="0"></a></td>
                </tr>
                <tr>
                    <td width="225" colspan="3" align="left" valign="top">                        <p><? echo latest("miwit", "eju", 5, 42); ?>
</p>
</td>
                </tr>
                <tr>
                    <td width="434" rowspan="2"><img src="http://www.wasedaigl.com/images/best.jpg" width="434" height="164" border="0"></td>
                    <td width="225" colspan="3"><a href="http://www.wasedaigl.com/gnuboard4/bbs/board.php?bo_table=summary" target="_self" onfocus='this.blur()'><img src="http://www.wasedaigl.com/images/outline.jpg" width="255" height="75" border="0"></a></td>
                </tr>
                <tr>
                    <td width="91" height="82"><a href="http://www.wasedaigl.com/gnuboard4/bbs/board.php?bo_table=info1" target="_self" onfocus='this.blur()'><img src="http://www.wasedaigl.com/images/banner1.jpg" width="91" height="89" border="0"></a></td>
                    <td width="74" height="82"><a href="http://www.wasedaigl.com/gnuboard4/bbs/board.php?bo_table=info3" target="_self" onfocus='this.blur()'><img src="http://www.wasedaigl.com/images/banner2.jpg" width="74" height="89" border="0"></a></td>
                    <td width="90" height="82"><a href="http://www.wasedaigl.com/gnuboard4/bbs/board.php?bo_table=z5_3" target="_self" onfocus='this.blur()'><img src="http://www.wasedaigl.com/images/banner3.jpg" width="90" height="89" border="0"></a></td>
                </tr>
            </table>
<?
include_once("./_tail.php");
?>
일단 먼저 head.php 파일 부분이나  다른 헤드를 쓰신다면 혹시 include_once("$g4[path]/lib/outlogin.lib.php");
 이런 문장이 있으신지 확인을 하시구요. 그 문장이 없으시다면
index.php 에서

include_once("$g4[path]/lib/latest.lib.php");
아래줄에
include_once("$g4[path]/lib/outlogin.lib.php");
이부분을 선언해 보십시요 ;;
outlogin() 함수가 선언되지 않아서 생기는 문제입니다.

하 답변 달고 나니 도토루 님께서 답변을 이미 달아 주셨군요 ^^
정리해 드릴께요.
 아래예제 index.php
<?php
include_once('./_common.php');
include_once($g4['path'].'/lib/latest.lib.php');

$g4['title'] = '';
include_once('./head.php');
?>

<!-- 인덱스 메인화면내용 시작 -->
  최신글 출력코드
<!-- 인덱스 메인화면 내용 끝 -->
<?php
include_once('./_tail.php');
?>
요걸로 해결보시길..
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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