인기검색어 삭제 하는것 오류가 뜨네요. T.T > 질문답변

본문 바로가기

사이트 내 전체검색

뒤로가기 질문답변

인기검색어 삭제 하는것 오류가 뜨네요. T.T

본문

http://zeronara.net/bbs/board.php?bo_table=z2_7&wr_id=751

올려주신 파일 업데이트하고 관리자 모드에서
키워드 삭제를 누르면

Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in /home/58run/public_html/adm/zena/keyword.php on line 2

Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/58run/public_html/adm/zena/keyword.php on line 2

Warning: main(/_head.php) [function.main]: failed to open stream: No such file or directory in /home/58run/public_html/adm/zena/keyword.php on line 3

Warning: main() [function.include]: Failed opening '/_head.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/58run/public_html/adm/zena/keyword.php on line 3

Fatal error: Call to undefined function: alert() in /home/58run/public_html/adm/zena/keyword.php on line 7

위와 같은 메시지가 뜹니다.

중국어도 아닌것이 이상한.. 검색어가 요즘 자꾸 괴롭히네요..
추천0

댓글목록 8

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

_common.php 이 파일이 있는지 확인해 주세요.

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

/include/nav_top

hongx2님의 댓글

hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

있는대도 불구하고 오류가 뜹니다....

hongx2님의 댓글

hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

문제가 하나 생길때 마다.. 제가 너무 바보 같이 느껴져요..
스스로 해결을 못 하네 T.T

hongx2님의 댓글

hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

keyword.php 파일의 내용이 이렇네요..

<?
include_once("./_common.php");
include_once("$g4[path]/_head.php");
// 최고 관리자만
if ($is_admin != 'super') {

    alert("잘못된 접근입니다.");

}

// 삭제
if ($type == 'd') {

// 삭제
$sql = " delete from $g4[popular_table] where pp_id = '$key' ";
sql_query($sql);

// 이동
goto_url("./keyword.php");

} else {

    // 삭제
    $date = "1"; // 날짜 지정

    // 모두 삭제
    $date_all = "2"; // 날짜 지정

    // 한글이 아닐 때 삭제
    $to_date = date("Y-m-d H:i:s"); //오늘 날짜
    $fr_date = date("Y-m-d H:i:s", strtotime($to_date) - ($date * 86400));
    $fr_date_all = date("Y-m-d H:i:s", strtotime($to_date) - ($date_all * 86400));

    // 기간 이전의 검색어 모두 삭제
    $sql = " delete from $g4[popular_table] where pp_date < '$fr_date_all' ";
    sql_query($sql);

    $sql2 = " select *, count(*) as cnt from $g4[popular_table] where pp_date between '$fr_date' and '$to_date' group by pp_word order by cnt desc, pp_word limit 1000 ";
    $result = sql_query($sql2);
    for ($i=0; $row=sql_fetch_array($result); $i++) {

        // 넘버
        $num = $i + 1;

        echo $num . " <a href='?type=d&key={$row[pp_id]}'>". $row[pp_word]. "</a> ($row[cnt])<p>";

    }

}
include_once("$g4[path]/_tail.php");
?>

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

./_common.php

<?
$g4_path = "../.."; // common.php 의 상대 경로
include_once ("$g4_path/common.php");
include_once("$g4[admin_path]/admin.lib.php");
?>

쎄엠님의 댓글

쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

저도 요즘도 가끔 그런 것 올라오는데 초기화팁으로 초기화해 버립니다.
검색어 초기화 하는 법 : http://zeronara.net/bbs/board.php?bo_table=z2_7&wr_id=749

쎄엠님의 댓글

쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

아 검색어 초기화 하는 링크가 왜 읽을 권한이 없다고 나오죠? ㅎㅎ

전체 17건 1 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기