summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-03-23 04:25:46 +0500
committerilotterytea <iltsu@alright.party>2025-03-23 04:25:46 +0500
commit83db2ca649ee7d4068b070a032800037caf2e116 (patch)
tree23c27c3c580ee70f9afff74d498899be055900e3 /lib
parentedfdd86ceb66211edb17f1a57930887beab01f32 (diff)
feat: footer
Diffstat (limited to 'lib')
-rw-r--r--lib/partials.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/partials.php b/lib/partials.php
index 042e5a8..1498425 100644
--- a/lib/partials.php
+++ b/lib/partials.php
@@ -14,4 +14,22 @@ function html_big_navbar()
</div>
</section>
<?php ;
+}
+
+function html_footer()
+{
+ $files = glob(FILE_DIRECTORY . "/*.*");
+ $file_size = 0;
+
+ foreach ($files as $file) {
+ $file_size += filesize($file);
+ }
+
+ $file_size /= 1024 * 1024;
+
+ echo '' ?>
+ <footer class="column justify-center align-center gap-8">
+ <p>Serving <?= count($files) ?> files and <?= sprintf("%.2f", $file_size) ?>MB of active content</p>
+ </footer>
+ <?php ;
} \ No newline at end of file