blob: d4d2099d4d7ec16cc25c7f69f8dcb5ae9e88977c (
plain) (
tree)
|
|
<h1> The World Wide Web pages of Adam Carpenter (53hornet) </h1>
<?php include('./pages/now.php'); ?>
<hr />
<h2 id="posts">Posts</h2>
<dl>
<?php
$posts = scandir('./posts', SCANDIR_SORT_DESCENDING);
$posts = array_filter($posts, fn ($post) => !empty($post) && $post != '.' && $post != '..');
#$posts = array_slice($posts, 0, 1000);
foreach ($posts as &$post) {
$title = str_replace('h1', 'span', fgets(fopen("./posts/$post", 'r')));
$date = str_split($post, 10)[0];
$post = str_replace('.php', '', $post);
printf('<dt> <code>%s</code> </dt> <dd><a href="/%s">%s</a> </dd>', $date, $post, $title);
}
?>
</dl>
|