새글질문이요. > 그누3질답

그누3질답

새글질문이요. 정보

그누보드 새글질문이요.

본문

안녕하시옵니까 엽기적인 그녀,,,접니다...


질문은여 2.65 버전 부터 공부하는데여 3.0밖에 없네여..

지금 그누보드에 새글 딴 버전을해보니 시간을 누르면 페이지 오류가 나네요

무어싱 잘못일까여?
2.65.이하버전으로해보니 오류나서요..게시판명두 아난오구여,,
2.65 버전으로 페이지 오류좀 없에 주세요.
글구 지금처럼 게시판두 나타나게여 현제꺼는 시간 새글 글쓴이 만나옵니다.
지가 공부중이라 부탁함당,

=========================================================게시판에서 발견

<?
$gnu_path = "./";
include($gnu_path . 'config.php');
include($gnu_path . 'lib.php');

$html_title = "▒ 그누보드 ▒";
include($gnu_path . 'head.sub.php');
include($gnu_path . 'head.php');
?>

<table width=100% cellpadding=0 cellspacing=0>
<tr>
 &nbsp; &nbsp;<td width='' valign=top>

<?
if ($hours < 1 || $hours > 168) {
 &nbsp; &nbsp;$hours = 7;
}
$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * $hours));

$sql = " select a.bo_subject, a.bo_table, b.gr_subject
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from $cfg[table_board] a, $cfg[table_group] b
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;where a.gr_id = b.gr_id
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;order by b.gr_id, a.bo_table ";
$result = sql_query_error($sql);
while ($row = mysql_fetch_array($result)) {
 &nbsp; &nbsp;$tbl = "{$cfg[write_table_prefix]}{$row[bo_table]}";
 &nbsp; &nbsp;$sql2 = " select a.wr_id,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.wr_parent_id,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.mb_id,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.wr_name,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.wr_email,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.wr_num,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.wr_subject,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.wr_comment,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.wr_commentcnt,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.wr_datetime,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b.mb_icon
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from $tbl a left join $cfg[table_member] b on (a.mb_id = b.mb_id)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; where a.wr_datetime >= '$intime'
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; order by a.wr_id desc ";
 &nbsp; &nbsp;$result2 = sql_query_error($sql2);
 &nbsp; &nbsp;for ($i = 0; $row2 = mysql_fetch_array($result2); $i++) {
 &nbsp; &nbsp; &nbsp; &nbsp;if ($row2[wr_comment] > 0) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$sql3 = " select wr_subject
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from $tbl
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; where wr_comment = 0
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and wr_parent_id = '$row2[wr_parent_id]' ";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$row3 = sql_fetch_array($sql3);
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$wr_subject = $row3[wr_subject];
 &nbsp; &nbsp; &nbsp; &nbsp;} else {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$wr_subject = $row2[wr_subject];
 &nbsp; &nbsp; &nbsp; &nbsp;}
 &nbsp; &nbsp; &nbsp; &nbsp;$wr_subject = get_text($wr_subject);

 &nbsp; &nbsp; &nbsp; &nbsp;$key = $row2[wr_datetime] . $row[bo_table] . $row2[wr_id];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->bo_table = $row[bo_table];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->mb_id = $row2[mb_id];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->mb_icon = $row2[mb_icon];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->wr_id = $row2[wr_id];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->wr_parent_id = $row2[wr_parent_id];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->wr_email = $row2[wr_email];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->wr_name = get_text(cut_str($row2[wr_name],12));
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->wr_subject = get_text(cut_str($wr_subject,65,'…'));
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->wr_comment = $row2[wr_comment];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->wr_commentcnt = $row2[wr_commentcnt];
 &nbsp; &nbsp; &nbsp; &nbsp;$list[$key]->wr_datetime = $row2[wr_datetime];
 &nbsp; &nbsp;}
 &nbsp; &nbsp;mysql_free_result($result2);
}
mysql_free_result($result);
?>
<table width=100%>
<tr><td colspan=3 background='<?=$gnu_path?>/image/line_width.gif'></td></tr>
<tr>
 &nbsp; &nbsp;<td height=30 bgcolor=EEEEEE colspan=3 align=center>&nbsp; <b><font color=1079DE><?=$hours?> 시간 이내에 올라온 새글</font></b></td>
</tr>
<tr><td colspan=3 background='image/line_width.gif'></td></tr>
<?
if (count($list) > 0) {
 &nbsp; &nbsp;krsort($list);
 &nbsp; &nbsp;foreach ($list as $key=>$value) {
 &nbsp; &nbsp; &nbsp; &nbsp;$comment = "";
 &nbsp; &nbsp; &nbsp; &nbsp;$atag_comment = "";
 &nbsp; &nbsp; &nbsp; &nbsp;if ($value->wr_comment > 0) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$comment = "<span style='font-size:8pt;'>[c]</span> ";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$atag_comment = "#c{$value->wr_id}";
 &nbsp; &nbsp; &nbsp; &nbsp;}

 &nbsp; &nbsp; &nbsp; &nbsp;$commentcnt = "";
 &nbsp; &nbsp; &nbsp; &nbsp;if ($value->wr_commentcnt > 0)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$commentcnt = "<font size=-2>({$value->wr_commentcnt})</font>";

 &nbsp; &nbsp; &nbsp; &nbsp;$wr_name = gblayer($value->mb_id, $value->wr_name, $value->wr_email);

 &nbsp; &nbsp; &nbsp; &nbsp;echo "<tr>";
 &nbsp; &nbsp; &nbsp; &nbsp;echo "<td width=130 align=center><font color=gray>[".$value->wr_datetime."]</font></td>";
 &nbsp; &nbsp; &nbsp; &nbsp;echo "<td>&nbsp; <a href='{$gnu_path}/bbs/gnuboard.php?bo_table=".$value->bo_table."&wr_id=".$value->wr_parent_id."$atag_comment'>";
 &nbsp; &nbsp; &nbsp; &nbsp;echo "<font color=#222222>$comment{$value->wr_subject} {$commentcnt}</font></a></td>";
 &nbsp; &nbsp; &nbsp; &nbsp;echo "<td width=120 align=center>$mb_icon$wr_name$admin_icon</td>";
 &nbsp; &nbsp; &nbsp; &nbsp;echo "</tr>";

 &nbsp; &nbsp; &nbsp; &nbsp;echo "<tr><td colspan=3 background='{$gnu_path}/image/line_width.gif'></td></tr>";
 &nbsp; &nbsp;}
} else
 &nbsp; &nbsp;echo "<td height=25 align=center>등록된 글이 없습니다.</td>";
?>
</table>

<p>
&nbsp;
<a href='<?=$gnu_path?>newlist.php?hours=1'>1시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=2'>2시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=3'>3시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=6'>6시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=12'>12시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=24'>24시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=48'>48시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=72'>72시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=168'>1주일</a>
<p>

</td>
</tr>
</table>

<?
include($gnu_path . 'tail.php');
include($gnu_path . 'tail.sub.php');
?>


==============================
게시판  |  제목 (보드링크)    | 글쓴이    ---->현제 오른쪽 새글 모양 부탁함당.

댓글 전체

전체 9,564
그누3질답 내용 검색

회원로그인

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