diff options
| author | Hannah Isopod <me@bathynomus.xyz> | 2025-06-11 03:25:00 -0600 |
|---|---|---|
| committer | Hannah Isopod <me@bathynomus.xyz> | 2025-06-11 03:25:00 -0600 |
| commit | b3bb0b898d3178963fefb9c0b16a00a76cf2a034 (patch) | |
| tree | eec6da7a21790183b15f31283fe3b8bcaabfaa4d /blog/comment/index.php | |
| parent | 5023bdef46281034c0476bc4201342a0a4cc2ae7 (diff) | |
total guestbook overhaul + new blog post + etc
- Added /about/pronouns/ in leiu of something like
a pronouns.cc profile
- New blog post about my new and improved AI
opinions
- Moved Stop Using Chromium to an actual blog post
page
- Blog posts now have previous and next buttons
- New /blog/ background
- Moved status.cafe widget from /blog/ to landing
page
- Total overhaul of guestbook:
- Merged guestbook and blog comment section code
- Beefed up bot protection
- Added a word filter
- Added a property to entries to facilitate
holding comments for review and approving or
denying them manually (The interface for this
is somewhere else)
- IP address from which a post originates is now
tracked in order to IP ban malicious actors
- Various new buttons
- Updated /greenhouse/
- The site is now a member of the No AI Webring
- a couple minor CSS fixes
Diffstat (limited to 'blog/comment/index.php')
| -rw-r--r-- | blog/comment/index.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/blog/comment/index.php b/blog/comment/index.php deleted file mode 100644 index 2d5f6a6..0000000 --- a/blog/comment/index.php +++ /dev/null @@ -1,40 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>blog comments</title> - <link href="/style.css" rel="stylesheet" type="text/css" media="all"> - <link href="comments.css" rel="stylesheet" type="text/css" media="all"> - <style> - - </style> - <?php include($_SERVER['DOCUMENT_ROOT'] . '/seasonal.php'); ?> - </head> - <body> - <?php include($_SERVER['DOCUMENT_ROOT'] . '/nav.php'); ?> - <h1>blog</h1> - <h2 id="caption">every comment</h2> - <nav> - <a href="feed.php">RSS</a> - </nav> - <?php - include("../../Parsedown.php"); - $Parsedown = new Parsedown(); - $Parsedown->setSafeMode(true); - - $totaloutput = ""; - $postlist = json_decode(file_get_contents("posts.json")); - foreach($postlist as $post) { - $output = ""; - $date = date("Y-m-d h:iA", $post->date); - $name = $post->name; - $message = $Parsedown->text(html_entity_decode($post->message)); - $entry = $post->entry; - - $output = $output."<hr><article><table><tr><td style='text-align: left;'>".$name." <i>on</i> <a href='/blog/posts/".$entry."/'>".$entry."</a></td><td style='text-align: right;'>".$date."</td></tr><tr><td colspan='2'>".$message."</td></tr></table></article>"; - $totaloutput = $output.$totaloutput; - } - echo $totaloutput; ?> - </body> -</html> |
