blob: 3f29067f30f29ee7ebc84a327c017964524a8815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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>
|