에러 해결 방법 좀 > 그누4 질문답변

그누4 질문답변

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

에러 해결 방법 좀 정보

에러 해결 방법 좀

본문

Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php on line 4

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4)

http://hyunho.elogin.co.kr/ybnara/bbs/board.php?bo_table=move_play
영상보기 누르면 팝업으로창이 뜨는데.. 에러가 나네요.ㅜㅜ

댓글 전체

http://hyunho.elogin.co.kr/ybnara/skin/board/pandora/movie.php?bo_table=move_play&wr_id=43
경로 오류인듯합니다
include_once (파일이 없으도 계속 실행)
require_once (파일이 없으면 실행 중지)으로 변경해서 한번 해보세요
<? //-- HTML 태그용 PLAY

$g4_path = "../../..";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/common.lib.php");
include_once("$g4[path]/head.sub.php");

// wr_id 값이 있으면 글읽기
if ($wr_id) {
    // 글이 없을 경우 해당 게시판 목록으로 이동
    if (!$write[wr_id]) {
        $msg = "글이 존재하지 않습니다.\\n\\n글이 삭제되었거나 이동된 경우입니다.";
        if ($cwin)
            alert_close($msg);
        else
            alert($msg, "./board.php?bo_table=$bo_table");
    }

    // 로그인된 회원의 권한이 설정된 읽기 권한보다 작다면
    if ($member[mb_level] < $board[bo_read_level]) {
        if ($member[mb_id])
            alert("글을 읽을 권한이 없습니다.");
        else
            alert("글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?wr_id=$wr_id{$qstr}&url=".urlencode("board.php?bo_table=$bo_table&wr_id=$wr_id"));
    }

    // 자신의 글이거나 관리자라면 통과
    if (($write[mb_id] && $write[mb_id] == $member[mb_id]) || $is_admin)
        ;
    else {
        // 비밀글이라면
        if (strstr($write[wr_option], "secret")) {
            $ss_name = "ss_secret_{$bo_table}_$write[wr_num]";
            //$ss_name = "ss_secret_{$bo_table}_{$wr_id}";
            // 한번 읽은 게시물의 번호는 세션에 저장되어 있고 같은 게시물을 읽을 경우는 다시 패스워드를 묻지 않습니다.
            // 이 게시물이 저장된 게시물이 아니면서 관리자가 아니라면
            //if ("$bo_table|$write[wr_num]" != get_session("ss_secret"))
            if (!get_session($ss_name))
                goto_url("./password.php?w=s&bo_table=$bo_table&wr_id=$wr_id{$qstr}");

            set_session($ss_name, TRUE);
        }
    }

    // 한번 읽은글은 브라우저를 닫기전까지는 카운트를 증가시키지 않음
    $ss_name = "ss_view_{$bo_table}_{$wr_id}";
    if (!get_session($ss_name))
    {
        sql_query(" update $write_table set wr_hit = wr_hit + 1 where wr_id = '$wr_id' ");

        // 자신의 글이면 통과
        if ($write[mb_id] && $write[mb_id] == $member[mb_id])
            ;
        else {
            // 회원이상 글읽기가 가능하다면
            //if ($board[bo_read_level] > 1) {
                // 글읽기 포인트가 음수이고 회원의 포인트가 0 이거나 작다면
                //if ($board[bo_read_point] < 0 && $member[mb_point] <= 0)
                if ($member[mb_point] + $board[bo_read_point] < 0)
                    alert("보유하신 포인트(".number_format($member[mb_point]).")가 없어나 모자라서 글읽기(".number_format($board[bo_read_point]).")가 불가합니다.\\n\\n포인트를 모으신 후 다시 글읽기 해 주십시오.");

                insert_point($member[mb_id], $board[bo_read_point], "$board[bo_subject] $wr_id 글읽기");
            //}
        }

        set_session($ss_name, TRUE);
    }

    $g4[title] = "$group[gr_subject] > $board[bo_subject] > " . strip_tags(conv_subject($write[wr_subject], 255));
} else {
    if ($member[mb_level] < $board[bo_list_level]) {
        if ($member[mb_id])
            alert("목록을 볼 권한이 없습니다.");
        else
            alert("목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?wr_id=$wr_id{$qstr}&url=".urlencode("board.php?bo_table=$bo_table&wr_id=$wr_id"));
    }

    if (!$page) $page = 1;

    $g4[title] = "$group[gr_subject] > $board[bo_subject] $page 페이지";
}

$view = get_view($write, $board, $board_skin_path);

if (strstr($sfl, "subject"))
    $view[subject] = search_font($stx, $view[subject]);

$html = 0;
if (strstr($view[wr_option], "html1"))
    $html = 1;
else if (strstr($view[wr_option], "html2"))
    $html = 2;

$view[content] = conv_content($view[wr_content], $html);
if (strstr($sfl, "content"))
    $view[content] = search_font($stx, $view[content]);
$view[content] = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $view[content]);

?>

<?
$row = get_member($view[mb_id]);
$mb_nick = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">

<style type="text/css">
<!--
BODY {
margin:0 0 0 0;
font-family:"gulim";
font-size: 12px;
COLOR: #333333;
LINE-HEIGHT: 150%;
letter-spacing: 0px; }
}

td, p, input, button, textarea, select, .c1 {font-family:"gulim"; font-size: 12px; COLOR: #555555; LINE-HEIGHT: 150%; letter-spacing: 0px;}

.scrollbar { scrollbar-face-color: #F7f7f7; scrollbar-shadow-color:#E9E9E7; scrollbar-highlight-color:#FFFFFF;scrollbar-3dlight-color: #E4E9EA; scrollbar-darkshadow-color: #777777;scrollbar-track-color: #FcFcFc;scrollbar-arrow-color: #10173C; }

.new { font-size:7pt; color:#CD003C; font-family:Verdana;  }
A:link { COLOR:#555555; TEXT-DECORATION: none;}
A:visited { COLOR:#555555; TEXT-DECORATION: none;}
A:hover { COLOR:#FF6600; TEXT-DECORATION: none;}
-->
</style>

<title>동영상보기</title>
</head>

<? echo "<script language='javascript' src='$g4[path]/js/sideview.js'></script>";?>

<BODY oncontextmenu="return false" ondragstart="return false" onselectstart="return false" bgcolor='#333333'>

<div style='width:100%;'>
<div style='text-align:center; margin:5px;'>
<? if ($view[wr_link1]) { echo $view[wr_link1]; } //--외부 html 태그방식 ?>
</div>
</div>

<table align='center' width='600' border="1" bordercolor="#cccccc" style="table-layout:fixed ; border-collapse:collapse" bgcolor="#FF3333">
<col width='80' />
<col width='' />
<tr height='24'>
<td bgcolor="#FF6666" align='center' style='padding:5px'><font color="white"><b>제 목</b></font></td>
<td bgcolor='#FFFFFF' style='padding:5px'>
<?=$view[subject]?>&nbsp;(조회 : <?=$view[wr_hit]?>)</td>
</tr>
<tr>
<td bgcolor="#FF6666" align='center' style='padding:5px'><font color="white"><b>내 용</b></font></td>
<td bgcolor='#FFFFFF' style='padding:5px'>
        <?=$view[content];?>
</td>
</tr>
<tr height='24'>
<td bgcolor="#FF6666" align='center' style='padding:5px'><font color="white"><b>등 록</b></font></td>
<td bgcolor='#FFFFFF' style='padding:5px'>
<?=$mb_nick?>&nbsp;(<?=substr($view[wr_datetime],2,14)?>)</td>
</tr>
</table>

</body>
</html>
아무리 바꿔도 안되네요.ㅜㅜ
include_once("$g4_path/common.php");
include_once("$g4_path/lib/latest.lib.php");
include_once("$g4_path/lib/common.lib.php");
include_once("$g4_path/head.sub.php");

상대경로를 이렇게 다 바꿔줘야 할것 같네요
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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