guestbook

say hi!

"; } ?> "; } ?> "; } ?> "; } ?> "; } ?> "; } ?>
Name required!
Name*
Invalid URL!
Website
Invalid URL!
Link something cool
How did you find me?
Message required!
Message*
You failed the bot check!
Bot test (six-letter scientific term for a roly-poly or woodlouse)*
Successfully posted!
setSafeMode(true); $totaloutput = ""; $postlist = json_decode(file_get_contents("posts.json")); $index = 1; 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)); $found = $post->found; $website = $post->website; $cool = $post->cool; $coolsanitized = htmlentities(preg_replace("/https?:\/\//i", "", $cool)); $reply = $Parsedown->text($post->reply); $output = $output."
"; if($website) { $output = $output."$name"; } else { $output = $output.$name; } $output = $output."
$date
Entry #$index
"; if($cool) { $output = $output."
cool thing: $coolsanitized
"; } if($found) { $output = $output."
How did you find me?
$found
"; } $output = $output."
$message
"; if($reply) { $output = $output."
Reply:
$reply
"; } $output = $output."
"; $index++; $totaloutput = $output.$totaloutput; } echo $totaloutput; ?>