| [ PHPXref.com ] | [ Generated: Sat Aug 9 15:45:03 2008 ] | [ FluxBB 1.3 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Outputs the footer used by most forum pages. 4 * 5 * @copyright Copyright (C) 2008 FluxBB.org, based on code copyright (C) 2002-2008 PunBB.org 6 * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher 7 * @package FluxBB 8 */ 9 10 11 // Make sure no one attempts to run this script "directly" 12 if (!defined('FORUM')) 13 exit; 14 15 // START SUBST - <!-- forum_about --> 16 ob_start(); 17 18 ($hook = get_hook('ft_about_output_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 19 20 ?> 21 <div id="brd-about" class="gen-content"> 22 <?php 23 24 ($hook = get_hook('ft_about_pre_quickjump')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 25 26 // Display the "Jump to" drop list 27 if ($forum_user['g_read_board'] == '1' && $forum_config['o_quickjump'] == '1') 28 { 29 // Load cached quickjump 30 if (file_exists(FORUM_CACHE_DIR.'cache_quickjump_'.$forum_user['g_id'].'.php')) 31 include FORUM_CACHE_DIR.'cache_quickjump_'.$forum_user['g_id'].'.php'; 32 33 if (!defined('FORUM_QJ_LOADED')) 34 { 35 if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) 36 require FORUM_ROOT.'include/cache.php'; 37 38 generate_quickjump_cache($forum_user['g_id']); 39 require FORUM_CACHE_DIR.'cache_quickjump_'.$forum_user['g_id'].'.php'; 40 } 41 } 42 43 44 ($hook = get_hook('ft_about_pre_copyright')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 45 46 // End the transaction 47 $forum_db->end_transaction(); 48 49 ?> 50 <p id="copyright">Powered by <strong><a href="http://fluxbb.org/">FluxBB</a><?php if ($forum_config['o_show_version'] == '1') echo ' '.$forum_config['o_cur_version']; ?></strong></p> 51 </div> 52 <?php 53 54 ($hook = get_hook('ft_about_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 55 56 $tpl_temp = forum_trim(ob_get_contents()); 57 $tpl_main = str_replace('<!-- forum_about -->', $tpl_temp, $tpl_main); 58 ob_end_clean(); 59 // END SUBST - <!-- forum_about --> 60 61 62 // START SUBST - <!-- forum_debug --> 63 if (defined('FORUM_DEBUG') || defined('FORUM_SHOW_QUERIES')) 64 { 65 ob_start(); 66 67 ($hook = get_hook('ft_debug_output_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 68 69 // Display debug info (if enabled/defined) 70 if (defined('FORUM_DEBUG')) 71 { 72 // Calculate script generation time 73 list($usec, $sec) = explode(' ', microtime()); 74 $time_diff = forum_number_format(((float)$usec + (float)$sec) - $forum_start, 3); 75 echo '<p id="querytime">[ Generated in '.$time_diff.' seconds, '.forum_number_format($forum_db->get_num_queries()).' queries executed ]</p>'."\n"; 76 } 77 78 if (defined('FORUM_SHOW_QUERIES')) 79 echo get_saved_queries(); 80 81 ($hook = get_hook('ft_debug_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 82 83 $tpl_temp = forum_trim(ob_get_contents()); 84 $tpl_main = str_replace('<!-- forum_debug -->', $tpl_temp, $tpl_main); 85 ob_end_clean(); 86 } 87 // END SUBST - <!-- forum_debug --> 88 89 // Last call! 90 ($hook = get_hook('ft_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 91 92 93 // Close the db connection (and free up any result data) 94 $forum_db->close(); 95 96 // Spit out the page 97 exit($tpl_main);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |