From 3b06ee0d381dc1be5f40ca98ad4278046d869d21 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:57:39 +0100 Subject: checked in initial customized verison for Archlinux32 --- footer.php | 165 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 footer.php (limited to 'footer.php') diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..ad666cf --- /dev/null +++ b/footer.php @@ -0,0 +1,165 @@ +', $tpl_temp, $tpl_main); +ob_end_clean(); +// END SUBST - + + +// START SUBST - +ob_start(); + +?> +
+

+
+'."\n"; + + $token_url = '&csrf_token='.pun_csrf_token(); + + 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'; + } +} + +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"; +} + +?> +

FluxBB'.(($pun_config['o_show_version'] == '1') ? ' '.$pun_config['o_cur_version'] : '')) ?>

+
+
+
+ + +[ '; + + // Calculate script generation time + $time_diff = sprintf('%.3f', get_microtime() - $pun_start); + echo sprintf($lang_common['Querytime'], $time_diff, $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"; +} + + +// End the transaction +$db->end_transaction(); + +// 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) +$db->close(); + +// Spit out the page +exit($tpl_main); -- cgit v1.2.3-54-g00ecf