$fVars->ICONKEY = $tp->parseTemplate($FORUM_VIEWFORUM_TEMPLATE['iconkey'], true); } else { $fVars->ICONKEY = "\n\t<table class='table table-bordered' style='width:100%'>\n\t<tr>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_new_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_0039 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_nonew_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_0040 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_sticky_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_1011 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_announce_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_1013 . "</td>\n\t</tr>\n\t<tr>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_new_popular_small . "</td>\n\t<td style='width:2%' class='smallblacktext'>" . LAN_FORUM_0039 . " " . LAN_FORUM_1010 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_nonew_popular_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_0040 . " " . LAN_FORUM_1010 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_stickyclosed_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_1012 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_closed_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_1014 . "</td>\n\t</tr>\n\t</table>"; } $fVars->SEARCH = "\n\t<form method='get' class='form-inline input-append' action='" . e_BASE . "search.php'>\n\t<p>\n\t<input class='tbox' type='text' name='q' size='20' value='' maxlength='50' />\n\t<button class='btn btn-default button' type='submit' name='s' >" . LAN_SEARCH . "</button>\n\t<input type='hidden' name='r' value='0' />\n\t<input type='hidden' name='ref' value='forum' />\t\n\t</p>\n\t</form>"; if ($forum->checkPerm($forumId, 'post')) { $fVars->PERMS = LAN_FORUM_0043 . ' - ' . LAN_FORUM_0045 . ' - ' . LAN_FORUM_0047; } else { $fVars->PERMS = LAN_FORUM_0044 . ' - ' . LAN_FORUM_0046 . ' - ' . LAN_FORUM_0048; } $sticky_threads = 0; $stuck = false; $reg_threads = 0; $unstuck = false; $threadList = $forum->forumGetThreads($forumId, $threadFrom, $view); $subList = $forum->forumGetSubs(vartrue($forum_id)); $gen = new convert(); $fVars->SUBFORUMS = ''; if (is_array($subList) && isset($subList[$forumInfo['forum_parent']][$forumId])) { $newflag_list = $forum->forumGetUnreadForums(); $sub_info = ''; foreach ($subList[$forumInfo['forum_parent']][$forumId] as $sub) { $sub_info .= parse_sub($sub); } $fVars->SUBFORUMS = $FORUM_VIEW_SUB_START . $sub_info . $FORUM_VIEW_SUB_END; } if (count($threadList)) { foreach ($threadList as $thread_info) { if ($thread_info['thread_options']) { $thread_info['thread_options'] = unserialize($thread_info['thread_options']); } else {
if (varset($pref['track_online'])) { $fVars->BROWSERS = $users . ' ' . ($users == 1 ? LAN_405 : LAN_406) . ' (' . $member_users . ' ' . ($member_users == 1 ? LAN_407 : LAN_409) . ", " . $guest_users . " " . ($guest_users == 1 ? LAN_408 : LAN_410) . ')'; } $fVars->ICONKEY = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_new_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_79 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_nonew_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_80 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_sticky_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_202 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_announce_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_396 . "</td>\n\t</tr>\n\t<tr>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_new_popular_small . "</td>\n\t<td style='width:2%' class='smallblacktext'>" . LAN_79 . " " . LAN_395 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_nonew_popular_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_80 . " " . LAN_395 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_stickyclosed_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_203 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_closed_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_81 . "</td>\n\t</tr>\n\t</table>"; $fVars->SEARCH = "\n\t<form method='get' action='" . e_BASE . "search.php'>\n\t<p>\n\t<input class='tbox' type='text' name='q' size='20' value='' maxlength='50' />\n\t<input type='hidden' name='r' value='0' />\n\t<input type='hidden' name='ref' value='forum' />\n\t<input class='button' type='submit' name='s' value='" . LAN_180 . "' />\n\t</p>\n\t</form>"; if ($forum->checkPerm($forumId, 'post')) { $fVars->PERMS = LAN_204 . ' - ' . LAN_206 . ' - ' . LAN_208; } else { $fVars->PERMS = LAN_205 . ' - ' . LAN_207 . ' - ' . LAN_209; } $sticky_threads = 0; $stuck = false; $reg_threads = 0; $unstuck = false; $threadList = $forum->forumGetThreads($forumId, $threadFrom, $view); $subList = $forum->forumGetSubs($forum_id); $gen = new convert(); $fVars->SUBFORUMS = ''; if (is_array($subList) && isset($subList[$forumInfo['forum_parent']][$forumId])) { $newflag_list = $forum->forumGetUnreadForums(); $sub_info = ''; foreach ($subList[$forumInfo['forum_parent']][$forumId] as $sub) { $sub_info .= parse_sub($sub); } $fVars->SUBFORUMS = $FORUM_VIEW_SUB_START . $sub_info . $FORUM_VIEW_SUB_END; } if (count($threadList)) { foreach ($threadList as $thread_info) { if ($thread_info['thread_options']) { $thread_info['thread_options'] = unserialize($thread_info['thread_options']); } else {