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:
|
<?php
$filename="punkrock-news.php";
require('./global.php');
require('./acp/lib/class_parse.php');
$limit = "8";
$length = "1000000000000000000000000";
$usableboards="13";
$parse = &new parse($docensor, 75, 1, $highlight, $usecode[1]);
$allow = array();
$allow[0] = '0'; //* smilies umwandeln
$allow[1] = '0'; //* html umwandeln
$allow[2] = '1'; //* bbcodes umwandeln
$allow[3] = '1'; //* grafiken umwandeln
$result=$db->query("SELECT * FROM bb".$n."_posts p, bb".$n."_threads t WHERE p.visible=1 AND closed!=3 AND p.threadid=t.threadid AND t.starttime=p.posttime AND boardid IN (".$usableboards.") ORDER BY t.starttime DESC LIMIT $limit");
while ($row=$db->fetch_array($result)) {
$topic = $row['topic'];
$prefix = $row['prefix'];
$starter = $row['starter'];
$lastposttime = date("D, d M Y ",$row['starttime']);
$lastposttime2 = date("Y-m-dTH:i:s+01:00",$row['starttime']);
$threadid = $row['threadid'];
$threadlink = "$url2board/thread.php?threadid=".$row['threadid'];
$message=$parse->doparse($row['message'], $allow[0], $allow[1], $allow[2], $allow[3]);
if(strlen($message) > $length){ $message = "".substr($message, 0, $length);$message.=" ...";}
else $description="<b><u>$lastposttime - $prefix $topic ($starter)</u></b><br />$message<br />[<a href=\"$threadlink\">zum Beitrag</a>]";
eval ("\$template_bit .= \"".$tpl->get("punkrock-news_bit")."\";");
}
eval("\$tpl->output(\"".$tpl->get("punkrock-news")."\");");
?> |