', $tpl_temp, $tpl_main); ob_end_clean(); // END SUBST - // START SUBST - ob_start(); // START быстрое переключение языка - Visman if (!isset($languages) || !is_array($languages)) $languages = forum_list_langs(); $lang_temp = ''; if (count($languages) > 1) { $lang_temp .= "\t\t\t\t".'
'."\n\t\t\t\t\t".'
'."\n\t\t\t\t\t\t".''."\n\t\t\t\t\t".'
'."\n\t\t\t\t".'
'."\n"; $page_js['c'][] = 'document.getElementById("qjump2input").style.display = "none";'; } // END быстрое переключение языка - Visman ?>

'."\n"; if ($footer_style == 'viewforum') { echo "\t\t\t".'
'."\n"; echo "\t\t\t\t".'
'.$lang_forum['Mod controls'].'
'."\n"; echo "\t\t\t\t".'
'.$lang_common['Moderate forum'].'
'."\n"; echo "\t\t\t".'
'."\n"; } else if ($footer_style == 'viewtopic') { echo "\t\t\t".'
'."\n"; echo "\t\t\t\t".'
'.$lang_topic['Mod controls'].'
'."\n"; echo "\t\t\t\t".'
'.$lang_common['Moderate topic'].''.($num_pages > 1 ? ' ('.$lang_common['All'].')' : '').'
'."\n"; echo "\t\t\t\t".'
'.$lang_common['Move topic'].'
'."\n"; if ($cur_topic['closed'] == '1') echo "\t\t\t\t".'
'.$lang_common['Open topic'].'
'."\n"; else echo "\t\t\t\t".'
'.$lang_common['Close topic'].'
'."\n"; if ($cur_topic['sticky'] == '1') echo "\t\t\t\t".'
'.$lang_common['Unstick topic'].'
'."\n"; else echo "\t\t\t\t".'
'.$lang_common['Stick topic'].'
'."\n"; echo "\t\t\t".'
'."\n"; } echo "\t\t\t".'
'."\n\t\t".'
'."\n"; } ?>
'."\n"; // Display the "Jump to" drop list if ($pun_config['o_quickjump'] == '1') { // Load cached quick jump if (file_exists(FORUM_CACHE_DIR.'cache_quickjump_'.$pun_user['g_id'].'.php')) include FORUM_CACHE_DIR.'cache_quickjump_'.$pun_user['g_id'].'.php'; if (!defined('PUN_QJ_LOADED')) { if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) require PUN_ROOT.'include/cache.php'; generate_quickjump_cache($pun_user['g_id']); require FORUM_CACHE_DIR.'cache_quickjump_'.$pun_user['g_id'].'.php'; } $page_js['c'][] = 'document.getElementById("qjump").getElementsByTagName("div")[0].getElementsByTagName("input")[0].style.display = "none";'; // Visman - скрываем кнопку перехода при включенном js } echo $lang_temp; // быстрое переключение языка - Visman echo "\t\t\t".'
'."\n"; ?>
'.$lang_common['RSS active topics feed'].'

'."\n"; else if ($pun_config['o_feed_type'] == '2') echo "\t\t\t\t".''."\n"; } else if ($footer_style == 'viewforum') { if ($pun_config['o_feed_type'] == '1') echo "\t\t\t\t".''."\n"; else if ($pun_config['o_feed_type'] == '2') echo "\t\t\t\t".''."\n"; } else if ($footer_style == 'viewtopic') { if ($pun_config['o_feed_type'] == '1') echo "\t\t\t\t".''."\n"; else if ($pun_config['o_feed_type'] == '2') echo "\t\t\t\t".''."\n"; } ?>

ForkBB'.(($pun_config['o_show_version'] == '1') ? ' '.$pun_config['s_fork_version'] : '')) ?>

get('DB')->end_transaction(); // Display debug info (if enabled/defined) if (defined('PUN_DEBUG')) { echo '

[ '; // Calculate script generation time $time_diff = sprintf('%.3f', microtime(true) - (empty($_SERVER['REQUEST_TIME_FLOAT']) ? $pun_start : $_SERVER['REQUEST_TIME_FLOAT'])); echo sprintf($lang_common['Querytime'], $time_diff, $container->get('DB')->get_num_queries()); if (function_exists('memory_get_usage')) { echo ' - '.sprintf($lang_common['Memory usage'], file_size(memory_get_usage())); if (function_exists('memory_get_peak_usage')) echo ' '.sprintf($lang_common['Peak usage'], file_size(memory_get_peak_usage())); } echo ' ]

'."\n"; } // Display executed queries (if enabled) if (defined('PUN_SHOW_QUERIES')) display_saved_queries(); $tpl_temp = trim(ob_get_contents()); $tpl_main = str_replace('', $tpl_temp, $tpl_main); ob_end_clean(); // END SUBST - // Close the db connection (and free up any result data) $container->get('DB')->close(); if (isset($page_js)) $tpl_main = str_replace('', generation_js($page_js), $tpl_main); // Spit out the page exit($tpl_main);