aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkj_sh6042025-12-31 08:11:26 -0500
committerkj_sh6042025-12-31 08:11:26 -0500
commitbeaabd5b2f719a62526d5b4214cfc2bc4fab41aa (patch)
treef008a7e2942b5610984962c9f2c666ec16647726
parent41a068bd75ff257d3a1d84dab1231635df61090e (diff)
refactor: use datever²
-rw-r--r--src/VERSION2
-rw-r--r--src/includes/nav-footer.php9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/VERSION b/src/VERSION
index e64cb44..e17e721 100644
--- a/src/VERSION
+++ b/src/VERSION
@@ -1 +1 @@
-2025.12.31-0806
+2025.12.31-0811
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