blob: 4a41f18a42a19d7b7fdeae146df68f0f8f40f9b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
require("settings.php");
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $blogTitle; ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo $blogRoot; ?>styles.css" />
</head>
<body>
<div id="title">
<h1><?php echo $blogHead; ?></h1>
<a class="toplink" href="<?php echo $blogRoot; ?>">Home</a>
<a class="toplink" href="<?php echo $blogRoot; ?>archives.php">Archives</a>
<a class="toplink" href="<?php echo $blogRoot; ?>post.php">Post</a>
</div>
<?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>
|