aboutsummaryrefslogtreecommitdiffstats
path: root/changelog/latest.php
diff options
context:
space:
mode:
authorsillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
committersillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
commit898b52edcb47bcb3e9d6106e74ca73e74ea01e70 (patch)
tree85c6ee5ad58b860144551184d4cf86b560c62b91 /changelog/latest.php
downloadwww-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.tar.gz
www-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.zip
import live www.sillylaird.ca webrootHEADmain
Diffstat (limited to '')
-rwxr-xr-xchangelog/latest.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/changelog/latest.php b/changelog/latest.php
new file mode 100755
index 0000000..434246a
--- /dev/null
+++ b/changelog/latest.php
@@ -0,0 +1,34 @@
+<?php
+require_once __DIR__ . '/api/parser.php';
+$latest = get_changelog_entries(5);
+?>
+<div class="changelog-container">
+ <?php foreach ($latest as $e): ?>
+ <div class="changelog-entry">
+ <b>Site update</b><br>
+ <span style="font-size:13px;">
+ <time datetime="<?= htmlspecialchars($e['date']) ?>"><?= htmlspecialchars($e['display_date']) ?></time>
+ </span><br>
+ <span class="text"><?= htmlspecialchars($e['text']) ?></span><br>
+ <a class="changelog-more" href="https://www.sillylaird.ca/changelog/#year-<?= (int)$e['year'] ?>">more (<?= (int)$e['year'] ?>) &rarr;</a>
+ </div>
+ <?php endforeach; ?>
+</div>
+
+<div class="changelog-files-section">
+ <p><strong>Raw Log Files:</strong></p>
+ <ul class="changelog-files">
+ <?php
+ $files = glob(__DIR__ . '/*-changelog.txt');
+ rsort($files);
+ foreach ($files as $file):
+ $base = basename($file);
+ $size = filesize($file);
+ if ($size <= 0) continue;
+ ?>
+ <li><a href="https://www.sillylaird.ca/changelog/<?= htmlspecialchars($base) ?>"><?= htmlspecialchars($base) ?></a> (<?= $size ?> bytes)</li>
+ <?php endforeach; ?>
+ </ul>
+</div>
+
+<a href="https://www.sillylaird.ca/changelog/">Full changelog &rarr;</a>