sql_close(); // Output page creation time if (defined('DEBUG')) { $mtime = explode(' ', microtime()); $totaltime = $mtime[0] + $mtime[1] - $starttime; if (!empty($_REQUEST['explain']) && $auth->acl_get('a_')) { echo $db->sql_report; echo "
Page generated in $totaltime seconds with " . $db->num_queries . " queries,\nspending " . $db->sql_time . ' doing MySQL queries and ' . ($totaltime - $db->sql_time) . ' doing PHP things.
'; exit; } $debug_output = sprintf('

[ Time : %.3fs | ' . $db->sql_num_queries() . ' Queries | GZIP : ' . ( ( $config['gzip_compress'] ) ? 'On' : 'Off' ) . ' | Load : ' . (($session->load) ? $session->load : 'N/A'), $totaltime); if ($auth->acl_get('a_')) { $debug_output .= ' | Explain'; } $debug_output .= ' ]'; } $template->assign_vars(array( 'PHPBB_VERSION' => $config['version'], 'ADMIN_LINK' => ( $auth->acl_get('a_') ) ? '' . $user->lang['Admin_panel'] . '

' : '', 'DEBUG_OUTPUT' => (defined('DEBUG')) ? $debug_output : '' )); $template->display('body'); exit; ?>