equal
deleted
inserted
replaced
113 if (defined('PUN_DEBUG')) |
113 if (defined('PUN_DEBUG')) |
114 { |
114 { |
115 // Calculate script generation time |
115 // Calculate script generation time |
116 list($usec, $sec) = explode(' ', microtime()); |
116 list($usec, $sec) = explode(' ', microtime()); |
117 $time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start); |
117 $time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start); |
118 echo "\t\t\t".'<p class="conr">[ Generated in '.$time_diff.' seconds, '.$db->get_num_queries().' queries executed ]</p>'."\n"; |
118 echo "\t\t\t".'<p class="conr">[ Generated in '.$time_diff.' seconds, '.$pun_db->get_num_queries().' queries executed ]</p>'."\n"; |
119 } |
119 } |
120 |
120 |
121 ?> |
121 ?> |
122 <div class="clearer"></div> |
122 <div class="clearer"></div> |
123 </div> |
123 </div> |
125 </div> |
125 </div> |
126 <?php |
126 <?php |
127 |
127 |
128 |
128 |
129 // End the transaction |
129 // End the transaction |
130 $db->end_transaction(); |
130 $pun_db->end_transaction(); |
131 |
131 |
132 // Display executed queries (if enabled) |
132 // Display executed queries (if enabled) |
133 if (defined('PUN_SHOW_QUERIES')) |
133 if (defined('PUN_SHOW_QUERIES')) |
134 display_saved_queries(); |
134 display_saved_queries(); |
135 |
135 |
138 ob_end_clean(); |
138 ob_end_clean(); |
139 // END SUBST - <pun_footer> |
139 // END SUBST - <pun_footer> |
140 |
140 |
141 |
141 |
142 // Close the db connection (and free up any result data) |
142 // Close the db connection (and free up any result data) |
143 $db->close(); |
143 $pun_db->close(); |
144 |
144 |
145 // Spit out the page |
145 // Spit out the page |
146 exit($tpl_main); |
146 exit($tpl_main); |