From ada3beb0a6c649bd9bfc6a87b2fe69ee8ae563f7 Mon Sep 17 00:00:00 2001
From: Andreas Baumann
Date: Sat, 1 Feb 2020 08:57:06 +0100
Subject: initial checkin
---
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();
+
+?>
+
+
+
+[ ';
+
+ // 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