인기검색어 삭제 하는것 오류가 뜨네요. 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 1,640건 33 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
840 티타임쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9200 0 11-12
839 지니쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9190 1 02-03
838 토탈나라쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9185 0 06-03
837 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 9184 0 12-19
836 엘리타쥬쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9149 0 03-23
835 Gmasta쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9148 0 02-27
834
영어 오자 댓글1
이암쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9147 0 12-13
833 nm클럽쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9142 0 02-23
832 메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9136 0 11-25
831 프라하쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9136 0 12-01
830 데이빗쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9135 1 03-31
829 아바타쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9134 0 07-26
828 davi쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 9123 0 04-04
827 알럽투데이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9117 0 10-23
826 휴먼쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9116 0 08-23
825 박푸푸쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9116 1 12-23
824 메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9113 0 07-14
823 메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9106 0 07-15
822 이암쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9091 1 04-04
821 디란도쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9084 0 04-27
820 맙소사쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9080 0 06-15
819 채군쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9080 0 02-13
818 음악사랑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9079 0 06-10
817 nm클럽2쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9078 0 02-28
816 ebakery쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9073 0 12-07

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
5,063
어제
7,853
최대
8,233
전체
1,599,339
Copyright (c) 株式会社YHPLUS. All rights reserved.