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/commentbox.php | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ guestbook/comments.php | 35 ++++++++++++++++++++----- guestbook/index.php | 65 ++++++++-------------------------------------- guestbook/submit.php | 1 - 4 files changed, 105 insertions(+), 63 deletions(-) create mode 100644 guestbook/commentbox.php (limited to 'guestbook') diff --git a/guestbook/commentbox.php b/guestbook/commentbox.php new file mode 100644 index 0000000..9ba6586 --- /dev/null +++ b/guestbook/commentbox.php @@ -0,0 +1,67 @@ +
+ setSafeMode(true); + + //Boilerplate for comments + include_once($root . '/common.php'); + $return = $_GET["return"]; + $cwd = preg_replace("/^.*\//","",getcwd()); + + $ismaingb = false; + if($cwd != "guestbook") { + echo('

Comments

'); + } else { + $ismaingb = true; + } + + ?> + +
+ "; ?> + +
+
+ + +
+
+ + +
+
+ + + + + +
+ + +
"); } ?> +
+ + +
+
+ + +
+
+ + +
+
+ +
\ No newline at end of file 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++; diff --git a/guestbook/index.php b/guestbook/index.php index 97e902b..dc7d654 100644 --- a/guestbook/index.php +++ b/guestbook/index.php @@ -8,63 +8,18 @@ error_reporting(E_ALL); - Guestbook - - - - + guestbook | isopod.cool v4 + - -

guestbook

-

say hi

- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - "); }?> - - - - -
*
*
*
".$gbform_messages[$return]."
- -
- +
+

guestbook

+

say hi!

+ + +
+ diff --git a/guestbook/submit.php b/guestbook/submit.php index bb745a2..3393cb3 100644 --- a/guestbook/submit.php +++ b/guestbook/submit.php @@ -123,7 +123,6 @@ error_reporting(E_ALL); align-items: center; } -

Your post has been submitted! It's weird that you're seeing this page though. Maybe your browser can't process location headers? At any rate, click here"; ?> to get where you're supposed to be right now.

-- cgit v1.2.3