aboutsummaryrefslogtreecommitdiff
path: root/blog/index.php
diff options
context:
space:
mode:
authorHannah Isopod <me@bathynomus.xyz>2025-06-11 03:25:00 -0600
committerHannah Isopod <me@bathynomus.xyz>2025-06-11 03:25:00 -0600
commitb3bb0b898d3178963fefb9c0b16a00a76cf2a034 (patch)
treeeec6da7a21790183b15f31283fe3b8bcaabfaa4d /blog/index.php
parent5023bdef46281034c0476bc4201342a0a4cc2ae7 (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/index.php')
-rw-r--r--blog/index.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/blog/index.php b/blog/index.php
index 2433e97..1fbe75a 100644
--- a/blog/index.php
+++ b/blog/index.php
@@ -91,28 +91,6 @@ error_reporting(E_ALL);
?>
</nav>
<?php
- $username = "niceopod"; // Your username here!
- $ch = curl_init("https://status.cafe/users/$username/status.json");
-
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HEADER, 0);
-
- $str = curl_exec($ch);
- if(curl_error($ch)) {
- //echo curl_error($ch);
- $str = "";
- }
- curl_close($ch);
- $status_data = json_decode($str, true);
- $status_content = $status_data["content"];
- $face = $status_data["face"];
- $timeago = $status_data["timeAgo"];
- if(strlen($status_content) < 1) {
- $status_content = "Something's gone wrong server side...";
- }
- echo "<div id='statuscafe'><div id='statuscafe-username'><a href='https://status.cafe/users/$username' target='_blank'>status</a> $face $timeago</div><div id='statuscafe-content'>$status_content</div></div>";
- ?>
- <?php
$stag = $_GET["tag"];
$nostag = empty($stag);
if(!$nostag) {
@@ -156,9 +134,6 @@ error_reporting(E_ALL);
}
echo "</ul>";
?>
- <div class="buttons" style="margin-bottom: 1rem;">
- <a href="https://status.cafe/"><img src="media/banner-statuscafe.png" alt="Status Cafe"></a>
- </div>
</body>
</html>