인기검색어 삭제 하는것 오류가 뜨네요. 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

댓글목록

profile_image

제로님의 댓글

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

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

profile_image
profile_image

hongx2님의 댓글

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

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

profile_image

hongx2님의 댓글

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

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

profile_image

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");
?>

profile_image

제로님의 댓글

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

./_common.php

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

profile_image

쎄엠님의 댓글

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

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

profile_image

쎄엠님의 댓글

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

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

Total 17건 1 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
17 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 6195 0 08-06
16 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10751 0 07-31
15 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 9560 0 07-30
14 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7755 0 07-28
13 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 5758 0 07-28
12 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 6229 0 06-05
11 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10421 0 04-07
10 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 43 0 04-07
9 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 43 0 04-07
열람중 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11002 0 03-04
7 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 37 0 02-26
6 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12289 0 02-17
5 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 23 0 12-31
4 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 35 0 12-27
3 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 69 0 12-27
2 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 51 0 12-20
1 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 36 0 12-20

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
4,048
어제
8,087
최대
8,087
전체
1,418,686
Copyright (c) 株式会社YHPLUS. All rights reserved.