From b3bb0b898d3178963fefb9c0b16a00a76cf2a034 Mon Sep 17 00:00:00 2001 From: Hannah Isopod Date: Wed, 11 Jun 2025 03:25:00 -0600 Subject: 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 --- blog/posts/post.php | 129 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 75 insertions(+), 54 deletions(-) (limited to 'blog/posts/post.php') diff --git a/blog/posts/post.php b/blog/posts/post.php index e6b13b6..65d2661 100644 --- a/blog/posts/post.php +++ b/blog/posts/post.php @@ -1,17 +1,36 @@ entry as $entry) { if($entry->id == $cwd) { $pdate = preg_replace('/T.*$/', ' ', $entry->published); $udate = preg_replace('/T.*$/', ' ', $entry->updated); $title = $entry->title; $descr = $entry->summary; + } else if($title) { + $nextlink = $entry->link["href"]; + $nexttitle = $entry->title; break; + } else { + $prevlink = $entry->link["href"]; + $prevtitle = $entry->title; } } ?> @@ -21,27 +40,50 @@ foreach($feed->entry as $entry) { - + $title"); $bgfile = glob('bg.*')[0]; if(!is_null($bgfile)) { - echo(""); + echo(""); } ?> - isoblog

$title

Posted on $pdate$udates

"); + //echo("

I'm testing in prod right now. don't worry about it"); include("../../../Parsedown.php"); $Parsedown = new Parsedown(); echo $Parsedown->text(file_get_contents("index.md")); @@ -49,57 +91,36 @@ foreach($feed->entry as $entry) { $return = $_GET["return"]; ?>


+ +

Comments

-
+ "; ?> - - - - - - - - - - - Name required!"; - break; - case 'nomessage': - echo ""; - break; - case 'botcheckfailed': - echo ""; - break; - case 'success': - echo ""; - break; - default: - echo ""; - break; - } - ?> - - -
Message required!You failed the bot check!Successfully posted!
+ +
+ + + +
+ +
+ + +
- entry == preg_replace("/^.*\//","",getcwd())) { - $output = ""; - $date = date("Y-m-d h:iA", $post->date); - $name = $post->name; - $message = $Parsedown->text(html_entity_decode($post->message)); - - $output = $output."
".$name."".$date."
".$message."
"; - $totaloutput = $output.$totaloutput; - } - } - echo $totaloutput; ?> + -- cgit v1.2.3