1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
|
<?php
// Copyright 2004 by Internet4Ever.de
require("i4e_news_config.php");
require("global.php");
require("acp/lib/class_parse.php");
$newsresult=$db->query("SELECT *
FROM bb".$n."_threads, bb".$n."_posts, bb".$n."_boards
WHERE (bb".$n."_boards.boardid = bb".$n."_threads.boardid)
AND (bb".$n."_posts.threadid = bb".$n."_threads.threadid)
AND (bb".$n."_threads.starttime = bb".$n."_posts.posttime)
AND (bb".$n."_threads.boardid = $newsboardid)
GROUP BY bb".$n."_threads.threadid
ORDER BY bb".$n."_threads.threadid DESC LIMIT 0,$showlimit");
while($row = $db->fetch_array($newsresult)){
$parse = new parse($docensor,75,$wbbuserdata['showimages'],((isset($_GET['hilight'])) ? ($_GET['hilight']) : ("")),$usecode);
$row['message']=$parse->doparse($row['message'],$row['allowsmilies'],$row['allowhtml'],$row['allowbbcode'],$row['allowimages']);
$row['posttopic']=htmlconverter(textwrap($row['posttopic']));
if($row['iconid']) $posticon=makeimgtag($row['iconpath'],getlangvar($row['icontitle'], $lang), 0);
else $posticon="";
$time=date("H:i:s", $row["posttime"]);
$date=date("d.m.Y", $row["posttime"]);
if($color="a") $color="b";
elseif($color="b") $color="a";
$db->query("UPDATE bb".$n."_threads Set views=views+1 WHERE threadid=$row[threadid]");
$views="";
eval ("\$newsbit .= \"".$tpl->get("i4e_newsbit")."\";");
}
eval ("\$newsfooter .= \"".$tpl->get("i4e_news_footer")."\";");
eval ("\$tpl->output(\"".$tpl->get("i4e_news")."\");");
?> |