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:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
|
.....
if($threads['important']==2) eval ("\$prefix .= "".$tpl->get("board_thread_announce")."";");
if($threads['important']==1) eval ("\$prefix .= "".$tpl->get("board_thread_important")."";");
if($threads['pollid']!=0) eval ("\$prefix .= "".$tpl->get("board_thread_poll")."";");
if($threads['important']==2) $foldericon="announce";
else $foldericon=ifelse($wbbuserdata['lastvisit']<$threads['lastposttime'] && $threadvisit[$threads['threadid']]<$threads['lastposttime'],"new").ifelse($threads['replycount']>=$board['hotthread_reply'] || $threads['views']>=$board['hotthread_view'],"hot").ifelse($threads['closed']!=0,"lock")."folder";
if($wbbuserdata['lastvisit']<$threads['lastposttime'] && $threadvisit[$threads['threadid']]<$threads['lastposttime']) eval ("\$firstnew = "".$tpl->get("board_threadbit_firstnew")."";");
if($threads['pollid']!=0) $threadicon=makeimgtag("{imagefolder}/poll.gif","");
elseif($threads['iconid']) $threadicon=makeimgtag($threads['iconpath'],$threads['icontitle']);
else $threadicon=" ";
if($threads['replycount']+1>$postsperpage && $showmultipages!=0) {
unset($multipage);
unset($multipages_lastpage);
$xpages=ceil(($threads['replycount']+1)/$postsperpage);
if($xpages>$showmultipages) {
eval ("\$multipages_lastpage = "".$tpl->get("board_threadbit_multipages_lastpage")."";");
$xpages=$showmultipages;
}
for($i=1;$i<=$xpages;$i++) {
$multipage.=" ".makehreftag("thread.php?threadid=$threads[threadid]&page=$i&sid=$session[hash]",$i);
}
eval ("\$multipages = "".$tpl->get("board_threadbit_multipages")."";");
}
}
if($threads['important']) eval ("\$threadbit2 .= "".$tpl->get("board_threadbit")."";");
else
if($board['canusesettle']) {
if($threads['settled']==1) $settled_img = "erledigt";
else $settled_img = "unerledigt";
if($wbbuserdata['m_can_thread_settle'] || ($wbbuserdata['can_settle_own_topic'] && $wbbuserdata['userid'] == $threads['starterid'])) {
eval ("\$threadsettled = "".$tpl->get("board_threadbit_cansettle")."";");
}
else eval ("\$threadsettled = "".$tpl->get("board_threadbit_nosettle")."";");
}
else $threadsettled ="";
if($threads['important']) eval ("\$threadbit2 .= "".$tpl->get("board_threadbit")."";");
else eval ("\$threadbit .= "".$tpl->get("board_threadbit")."";");
}
if($threadbit && $threadbit2) {
eval ("\$threadbit2 .= "".$tpl->get("board_thread_head2")."";");
eval ("\$threadbit2b = "".$tpl->get("board_thread_head1")."";");
$threadbit2 = $threadbit2b.$threadbit2;
}
$threadbit = $threadbit2.$threadbit;
if($threadbit && $threadbit2) {
eval ("\$threadbit2 .= "".$tpl->get("board_thread_head2")."";");
eval ("\$threadbit2b = "".$tpl->get("board_thread_head1")."";");
$threadbit2 = $threadbit2b.$threadbit2;
}
$threadcount += $pages * $announcecount;
$l_threads = ($page-1) * ($threadsperpage + $announcecount) + 1;
$h_threads = $page * ($threadsperpage + $announcecount);
if($h_threads > $threadcount) $h_threads = $threadcount;
if($board['closed']==0) eval ("\$newthread = "".$tpl->get("board_newthread")."";");
if(!$threadbit) eval("\$tpl->output("".$tpl->get("board_nothreads")."");");
else eval("\$tpl->output("".$tpl->get("board")."");");
?> |