function makeheader($header1, $headlinks, $header2) { global $loguser, $PHP_SELF; $header = $header1 . $headlinks . $header2; if (!$loguser['id'] && strpos($PHP_SELF, "index.php") === false) { $header .= adbox() . "<br>"; } return $header; }
if ($forum['numposts']) { $forumlastpost = "<nobr>" . date($dateformat, $forum['lastpostdate'] + $tzoff); $by = "{$smallfont}<br>by {$namelink}" . ($forum['lastpostid'] ? " <a href='thread.php?pid=" . $forum['lastpostid'] . "#" . $forum['lastpostid'] . "'>" . $statusicons['getlast'] . "</a>" : "") . "</nobr></font>"; } else { $forumlastpost = getblankdate(); $by = ''; } $new = ' '; if ($forum['numposts']) { if ($log && intval($forumnew[$forum['id']]) > 0) { $new = $statusicons['new'] . "<br>" . generatenumbergfx(intval($forumnew[$forum['id']])); } elseif (!$log && $forum['lastpostdate'] > ctime() - 3600) { $new = $statusicons['new']; } } /* if ($log && $forum['lastpostdate'] > $postread[$forum['id']]) { $newcount = $sql->resultq("SELECT COUNT(*) FROM `threads` WHERE `id` NOT IN (SELECT `tid` FROM `threadsread` WHERE `uid` = '$loguser[id]' AND `read` = 1) AND `lastpostdate` > '". $postread[$forum['id']] ."' AND `forum` = '$forum[id]'"); } if ((($forum['lastpostdate'] > $postread[$forum['id']] and $log) or (!$log and $forum['lastpostdate']>ctime()-3600)) and $forum['numposts']) { $new = $statusicons['new'] ."<br>". generatenumbergfx($newcount); } */ $forumlist .= "\n\t\t\t<tr>\n\t\t\t\t{$tccell1}>{$new}</td>\n\t\t\t\t{$tccell2l}><a href=forum.php?id={$forum['id']}>{$forum['title']}</a><br>\n\t\t\t\t{$smallfont}{$forum['description']}<br>{$modlist}</td>\n\t\t\t\t{$tccell1}>{$forum['numthreads']}</td>\n\t\t\t\t{$tccell1}>{$forum['numposts']}</td>\n\t\t\t\t{$tccell2}><span class='lastpost'>{$forumlastpost}</span> {$by}\n\t\t\t</tr>\n\t\t "; unset($forums[$forumplace]); } } print "{$tblend}<br>{$privatebox}\n\t\t\n\t\t" . adbox() . "<br>\n\n\t\t{$tblstart}{$forumlist}{$tblend}{$footer}"; printtimedif($startingtime); }