최신갤러리 업로드하니 오류 생겨요,, 꼭 한번 봐주세요,,,ㅜ > 그누4 질문답변

그누4 질문답변

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

최신갤러리 업로드하니 오류 생겨요,, 꼭 한번 봐주세요,,,ㅜ 정보

최신갤러리 업로드하니 오류 생겨요,, 꼭 한번 봐주세요,,,ㅜ

본문

Warning: latest(./skin/latest/elpis_460_photo/latest.skin.php) [function.latest]: failed to open stream: No such file or directory in /www/users/shop54956.p13.shopex.cn/onuri/lib/latest.lib.php on line 29

Warning: latest(./skin/latest/elpis_460_photo/latest.skin.php) [function.latest]: failed to open stream: No such file or directory in /www/users/shop54956.p13.shopex.cn/onuri/lib/latest.lib.php on line 29

Warning: latest(./skin/latest/elpis_460_photo/latest.skin.php) [function.latest]: failed to open stream: No such file or directory in /www/users/shop54956.p13.shopex.cn/onuri/lib/latest.lib.php on line 29

Warning: latest() [function.include]: Failed opening './skin/latest/elpis_460_photo/latest.skin.php' for inclusion (include_path='.:/usr/local/php4/lib/php') in /www/users/shop54956.p13.shopex.cn/onuri/lib/latest.lib.php on line 29

../skin/latest/ 에 다운받은 파일 업로드완료하고
출력할위치에
<?=latest("스킨명", "게시판아이디", 출력라인수, 출력글자수);?>
수정 다 했는데 위소스처럼 오류가 떠네요...

함수 정의 파일 :
    lib/latest.lib.php    이걸 수정안해서 그런지요? 
수정한다면 어떻게 수정하는지 알려주시면 감사하겠습니다..
함수정의파일이 잘못되지 않앗다면  어떻게 고쳐야하는지요?
고수님들께는 이런건 허접한 문제라고 생각될껍니다..
하지만 저한텐 ㅜㅠ
도와주시면 대단히 감사하겠습니다..
  • 복사

댓글 전체

<?
if (!defined('_GNUBOARD_')) exit;

// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
    global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/basic";

    $list = array();

    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
    $board = sql_fetch($sql);

    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
    //$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
    // 위의 코드 보다 속도가 빠름
    $sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
    //explain($sql);
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
   
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}
?>

latest.lib.php  소스 첨부합니다.. 
여기서 어떻게 수정하면 되는지요?
lib/latest.lib.php는 수정할 필요 없을텐데요.

최신게시물 경로에 파일이 잘 올라가있는지 다시확인해보세요.

/elpis_460_photo/elpis_460_photo 이런식으로 두번 되지 않았는지...
© SIRSOFT
현재 페이지 제일 처음으로