From 3b06ee0d381dc1be5f40ca98ad4278046d869d21 Mon Sep 17 00:00:00 2001
From: Andreas Baumann
Date: Sun, 17 Nov 2019 20:57:39 +0100
Subject: checked in initial customized verison for Archlinux32
---
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