aboutsummaryrefslogtreecommitdiff
path: root/archives.php
diff options
context:
space:
mode:
Diffstat (limited to 'archives.php')
-rw-r--r--archives.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/archives.php b/archives.php
new file mode 100644
index 0000000..3f29067
--- /dev/null
+++ b/archives.php
@@ -0,0 +1,22 @@
+<?php
+ require("top.php");
+
+ $ls = explode("\n", `ls -1t {$blogPosts}/`);
+ foreach($ls as $file) {
+ if (preg_match('/^\./', $file)) continue;
+ if ($file === "") continue;
+
+ echo "<a id=\"$file\">";
+ echo "<div>\n";
+ echo "<a class=\"title\" href=\"{$blogRoot}post/" . urlencode($file) . "\">$file</a>\n";
+
+ $stat = stat("{$blogPosts}$file");
+ $date = date('d-m-Y H:i T', $stat['mtime']);
+ echo "<span class=\"date\">$date</span>\n";
+ echo "</div>\n</a>\n\n";
+ }
+?>
+
+</body>
+
+</html>