$LastCategoryID = 0;
$OpenTable = false;
foreach ($Forums as $Forum) {
list($ForumID, $CategoryID, $ForumName, $ForumDescription, $MinRead, $MinWrite, $MinCreate, $NumTopics, $NumPosts, $LastPostID, $LastAuthorID, $LastTopicID, $LastTime, $SpecificRules, $LastTopic, $Locked, $Sticky) = array_values($Forum);
if (!Forums::check_forumperm($ForumID)) {
continue;
}
$ForumDescription = display_str($ForumDescription);
if ($CategoryID != $LastCategoryID) {
$LastCategoryID = $CategoryID;
if ($OpenTable) { ?>
} ?>
=$ForumCats[$CategoryID]?>
|
Forum |
Last Post |
Topics |
Posts |
$OpenTable = true;
}
$Read = Forums::is_unread($Locked, $Sticky, $LastPostID, $LastRead, $LastTopicID, $LastTime) ? 'unread' : 'read';
?>
|
|
if ($NumPosts == 0) { ?>
There are no topics here.=(($MinCreate <= $LoggedUser['Class']) ? ' Create one!' : '')?>
|
0 |
0 |
} else { ?>
=display_str(Format::cut_string($LastTopic, 50, 1))?>
if (!empty($LastRead[$LastTopicID])) { ?>
} ?>
by =Users::format_username($LastAuthorID, false, false, false)?> =time_diff($LastTime, 1)?>
|
=number_format($NumTopics)?> |
=number_format($NumPosts)?> |
} ?>
} ?>