aboutsummaryrefslogtreecommitdiff
path: root/blog/index.php
diff options
context:
space:
mode:
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>