', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST -
// START SUBST -
ob_start();
?>
[ ';
// 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);
require "pun_integration.php";
?>