From 3b606bcc096a6d9860672e6d0d003ca9e80c067e Mon Sep 17 00:00:00 2001 From: Hannah Isopod Date: Sun, 15 Feb 2026 22:42:27 -0700 Subject: THE BIG ONE Total website redesign. Multiple new blog posts. Routine updates on several pages. Too much to list, even if I remembered it all. Remind me not to put this git repo on any portfolios. --- guestbook/comments.php | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) (limited to 'guestbook/comments.php') diff --git a/guestbook/comments.php b/guestbook/comments.php index b0acbae..92505e3 100644 --- a/guestbook/comments.php +++ b/guestbook/comments.php @@ -13,7 +13,7 @@ function echo_comments($page, $Parsedown = null) { foreach($postlist as $post) { if($post->entry === $page and $post->modstatus > 0) { $output = ""; - $date = date("Y-m-d h:iA", $post->date); + $date = date("Y-m-d", $post->date); $name = htmlentities($post->name); $message = $Parsedown->text($post->message); $found = htmlentities($post->found); @@ -23,7 +23,28 @@ function echo_comments($page, $Parsedown = null) { $coolsanitized = htmlentities(preg_replace("/https?:\/\//i", "", $cool)); $reply = $Parsedown->text($post->reply); - $output = $output."
"; + $nice = ""; + switch($index) { + case 42: + $nice = "scifi reference ayo???"; + break; + case 67: + $nice = "six sevennn"; + break; + case 69: + $nice = "nice"; + break; + case 420: + $nice = "blaze it"; + break; + case 911: + $nice = "ohhhh nine eleven"; + break; + default: + $nice = "#$index"; + } + + $output = $output."

"; if($website) { if($button) { $output = $output."$name"; @@ -31,16 +52,16 @@ function echo_comments($page, $Parsedown = null) { $output = $output."$name"; } } else { $output = $output.$name; } - $output = $output."

$date
Entry #$index
"; + $output = $output."

$date

$nice

"; if($cool) { - $output = $output."
cool thing: $coolsanitized
"; + $output = $output."

cool thing: $coolsanitized

"; } if($found) { - $output = $output."
How did you find me?
$found
"; + $output = $output."

How did you find me?

$found

"; } - $output = $output."
$message
"; + $output = $output."
$message
"; if($reply) { - $output = $output."
Reply:$reply
"; + $output = $output."

Reply:

$reply
"; } $output = $output."
"; $index++; -- cgit v1.2.3