이런메세지가 뜨는데..왜그럴까요?ㅠ 긴급입니다ㅠ > 지블로그 질답

지블로그 질답

이런메세지가 뜨는데..왜그럴까요?ㅠ 긴급입니다ㅠ 정보

이런메세지가 뜨는데..왜그럴까요?ㅠ 긴급입니다ㅠ

본문

블로그에서 블로그누르고서 블로그 관리나, 글쓰기 누르면 이런 메세지가 뜹니다.
이거 어떤게 문제인가요.....
급합니다ㅠ

Fatal error
: Cannot redeclare help() (previously declared in /free/home/xelows/html/sb/adm/admin.lib.php:241) in /free/home/xelows/html/sb/blog/admin.head.php on line 5

댓글 전체

help()라는 함수가 두번 정의 되었다는 말인데요
우선 admin.lib.php 내용중에

function help($help="", $left=0, $top=0)
{
    global $g4;
    static $idx = 0;

    $idx++;

    $help = preg_replace("/\n/", "<br>", $help);
   
    $str  = "<img src='$g4[admin_path]/img/icon_help.gif' border=0 width=15 height=15 align=absmiddle onclick=\"help('help$idx', $left, $top);\" style='cursor:hand;'>";
    //$str .= "<div id='help$idx' style='position:absolute; top:0px; left:0px; display:none;'>";
    $str .= "<div id='help$idx' style='position:absolute; display:none;'>";
    $str .= "<div id='csshelp1'><div id='csshelp2'><div id='csshelp3'>$help</div></div></div>";
    $str .= "</div>";

    return $str;
}

이부분을 따로 저장하고 지우세요 이걸 지워도 당장은 사이트 에 큰 지장은 없습니다

그리고나서 어디에 중복인지 확인후 삭제하면 됩니다
제가 한번 해봤는데요..admin.head.php 화일에서
function help($help="", $left=0, $top=0)
{
    global $g4;
    static $idx = 0;

    $idx++;

    $help = preg_replace("/\n/", "<br>", $help);
   
    $str  = "<img src='$g4[admin_path]/img/icon_help.gif' border=0 width=15 height=15 align=absmiddle onclick=\"help('help$idx', $left, $top);\" style='cursor:hand;'>";
    //$str .= "<div id='help$idx' style='position:absolute; top:0px; left:0px; display:none;'>";
    $str .= "<div id='help$idx' style='position:absolute; display:none;'>";
    $str .= "<div id='csshelp1'><div id='csshelp2'><div id='csshelp3'>$help</div></div></div>";
    $str .= "</div>";

    return $str;
}
이걸 죽여놓아보세요...저도 이것때문에 많이 헤매였는데 지금은 에러가 안나네요..
좋은 의견 있으면 다시 주시구요..
전체 649
지블로그 질답 내용 검색

회원로그인

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