권한 주기에 오류가 뜨네요 > 그누4 질문답변

그누4 질문답변

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

권한 주기에 오류가 뜨네요 정보

권한 주기에 오류가 뜨네요

본문

권한을 주려고 아래 소스를

<? if ($list[$i][wr_link1] && $member[mb_level] >= 2) echo "<a href="javascript:window.open('skin/board/sound/music.php?bo_table=<?=$bo_table?>&selected=<?=$list[$i][wr_id]?>','v','width=408,height=518,menubar=no,scrollbars=no');void(0);"><img src={$board_skin_path}/img/listen.gif alt='audio play' border='0'></a>"; else echo "<a href='#' onClick=\"javascript:window.alert('스트리밍 파일이 존재하지 않습니다.');\"><img src='{$board_skin_path}/img/listen.gif' border='0'></a>"; ?>

빨간색 부분에  입력하면

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/hosting_users/kslo/www/skin/latest/sound/latest.skin.php on line 56

이런 오류가 뜨네요

최신글 전체 소스:

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_t_bg.gif">
<!--타이틀 시작: 실선 색상을 바꾸려면 215, 215, 215를 고치세요.-->
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="30">
<td width="10"></td>
<td><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#57697c" ><b><?=$board[bo_subject]?></b></font></a></td>
<td width="40"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>더보기</a>
<td width="5"></td>
</tr>
</table>
<!--타이틀 끝-->
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_2.gif"></td>
</tr>
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif"></td>
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) {?>
<tr>
<!--게시물 아래 점선 색상을 바꾸고 싶으시면 211,211,211부분을, 게시물 추출부분 세로 길이를 늘리시려면 25을 수정하세요-->
<td width="100%" height="23" valign=middle style="border-bottom-width:0px; border-bottom-color:rgb(211,211,211); border-bottom-style:dotted;">

<?
//날짜표시
$subject = $list[$i][subject];
$b_subject = "<strong>".$list[$i][subject]."<strong>";
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
<tr>
<td width="3"></td>
<td>
<a href="<?=$list[$i][ca_name_href]?>">[<?=$list[$i][ca_name]?>]</a>
<a href='<?=$list[$i][href]?>'><span class="th8"><?if ($list[$i][is_notice])
echo $b_subject;
else
echo $subject;
?></span></a>
<span style="font-size:7pt;font-family:tahoma;color:#EE5A00;vertical-align:1px;"><?=$list[$i][comment_cnt]?> <?
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_secret];
?>
</span>
</td>
<td width="20" align="center">
<a href="javascript:window.open('skin/board/sound/music.php?bo_table=<?=$bo_table?>&selected=<?=$list[$i][wr_id]?>','v','width=408,height=518,menubar=no,scrollbars=no');void(0);">
<img src='<?=$latest_skin_path?>/img/listen.gif' border="0"></a></td>

        <td width="20" align="center">
        <a href="javascript:window.open('skin/board/sound/lyrics.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>','v','width=334,height=400,menubar=no,scrollbars=no');void(0);">
        <img src='<?=$latest_skin_path?>/img/lyrics.gif' border="0"></a></td>
        <td width="20" align="center">
        <a href=javascript: onclick="window.open('skin/board/sound/download.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=100,left=100,width=260,height=193');" title='다운로드'>
        <img src="<?=$latest_skin_path?>/img/down.gif" border="0"></a></td>
<td width='5'></td>
</tr>
</table>
<!--게시물 추출 글자 설정 끝-->
</td>
</tr>
<? } ?>
</table>
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
</tr>
<tr height="3">
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_b_bg.gif"></td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_2.gif"></td>
</tr>
</table>
  • 복사

댓글 전체

파일 path문제 인것 같네요.

다음과 같이 수정하면 될 것 같은데요

"<a href="javascript:window.open('skin/board/sound/ 생략

=> "<a href="javascript:window.open('{$board_skin_path}/sound/......
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_t_bg.gif">
<!--타이틀 시작: 실선 색상을 바꾸려면 215, 215, 215를 고치세요.-->
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="30">
<td width="10"></td>
<td><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#57697c" ><b><?=$board[bo_subject]?></b></font></a></td>
<td width="40"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>더보기</a>
<td width="5"></td>
</tr>
</table>
<!--타이틀 끝-->
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_2.gif"></td>
</tr>
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif"></td>
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) {?>
<tr>
<!--게시물 아래 점선 색상을 바꾸고 싶으시면 211,211,211부분을, 게시물 추출부분 세로 길이를 늘리시려면 25을 수정하세요-->
<td width="100%" height="23" valign=middle style="border-bottom-width:0px; border-bottom-color:rgb(211,211,211); border-bottom-style:dotted;">

<?
//날짜표시
$subject = $list[$i][subject];
$b_subject = "<strong>".$list[$i][subject]."<strong>";
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
<tr>
<td width="3"></td>
<td>
<a href="<?=$list[$i][ca_name_href]?>">[<?=$list[$i][ca_name]?>]</a>
<a href='<?=$list[$i][href]?>'><span class="th8"><?if ($list[$i][is_notice])
echo $b_subject;
else
echo $subject;
?></span></a>
<span style="font-size:7pt;font-family:tahoma;color:#EE5A00;vertical-align:1px;"><?=$list[$i][comment_cnt]?> <?
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_secret];
?>
</span>
</td>
<td width="20" align="center">

<!-- 교체시작 -------------------------------------------->
<? if ($is_member) {  // 회원일경우
if ($list[$i][wr_link1]) // 뉴창플레이어 구동
echo "<a href=javascript:; onclick=listen('{$list[$i][wr_id]}')><img src={$latest_skin_path}/img/listen.gif alt='audio play' border='0'></a>";
else {  // 스트리밍이 없을 경우 에러메세지
echo "<a href='#' onClick=\"javascript:window.alert('스트리밍 파일이 존재하지 않습니다.');\"><img src='{$latest_skin_path}/img/listen.gif' border='0'></a>";
}
}
else { // 회원 아닐경우 에러메세지 출력
echo "<a href='#' onClick=\"javascript:window.alert('회원만 듣기가 가능합니다.');\"><img src='{$latest_skin_path}/img/listen.gif' border='0'></a>";
}
?>
<!-- 교체끝 // latest skin 폴더밑 img/에 다운파일 카피하셔야 할 듯------->

</td>
        <td width="20" align="center">
        <a href="javascript:window.open('skin/board/sound/lyrics.php?bo_table=<?=$bo_table?>&amp;wr_id=<?=$list[$i][wr_id]?>','v','width=334,height=400,menubar=no,scrollbars=no');void(0);">
        <img src='<?=$latest_skin_path?>/img/lyrics.gif' border="0"></a></td>
        <td width="20" align="center">
        <a href=javascript: onclick="window.open('skin/board/sound/download.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=100,left=100,width=260,height=193');" title='다운로드'>
        <img src="<?=$latest_skin_path?>/img/down.gif" border="0"></a></td>
<td width='5'></td>
</tr>
</table>
<!--게시물 추출 글자 설정 끝-->
</td>
</tr>
<? } ?>
</table>
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
</tr>
<tr height="3">
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_b_bg.gif"></td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_2.gif"></td>
</tr>
</table>
© SIRSOFT
현재 페이지 제일 처음으로