aboutsummaryrefslogtreecommitdiffstats
path: root/src/includes/nav-footer.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/includes/nav-footer.php')
-rw-r--r--src/includes/nav-footer.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/includes/nav-footer.php b/src/includes/nav-footer.php
index c86ab0b..e620ef8 100644
--- a/src/includes/nav-footer.php
+++ b/src/includes/nav-footer.php
@@ -5,4 +5,11 @@
<br>
<p>all site content is in the public domain</p>
<p><small>my other stuff: <a href="https://aedrielkylejavier.me/" target="_blank">website link →</a></small></p>
-<p><small>version: <?php echo file_get_contents(__DIR__ . '/../VERSION'); ?></small></p> \ No newline at end of file
+<p><small><pre>version: <?php
+$version_file = __DIR__ . '/../VERSION';
+if (file_exists($version_file)) {
+ echo htmlspecialchars(trim(file_get_contents($version_file)), ENT_QUOTES, 'UTF-8');
+} else {
+ echo 'unknown';
+}
+?></pre></small></p> \ No newline at end of file