summaryrefslogtreecommitdiff
path: root/pages/api/cloudburst-img.php
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-01-13 16:12:11 +0100
committerRaindropsSys <raindrops@equestria.dev>2024-01-13 16:12:11 +0100
commit2b192b3840ac344c456b98304ea400f0af90da15 (patch)
tree081ba8cbc0add17f08c9b94fb4a830834d87c259 /pages/api/cloudburst-img.php
parent2bfdb0ab2e366007269d1b77446f1581801e05dc (diff)
downloadpluralconnect-2b192b3840ac344c456b98304ea400f0af90da15.tar.gz
pluralconnect-2b192b3840ac344c456b98304ea400f0af90da15.tar.bz2
pluralconnect-2b192b3840ac344c456b98304ea400f0af90da15.zip
Updated 46 files and deleted 19 files (automated)
Diffstat (limited to 'pages/api/cloudburst-img.php')
-rw-r--r--pages/api/cloudburst-img.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/pages/api/cloudburst-img.php b/pages/api/cloudburst-img.php
deleted file mode 100644
index 7d22aad..0000000
--- a/pages/api/cloudburst-img.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
-$fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc/fronters.json"), true);
-
-$url = isset($fronters['members'][0]) ? ($fronters['members'][0]["avatar_url"] ? $_SERVER['DOCUMENT_ROOT'] . getAsset("ynmuc", $fronters['members'][0]["id"]) : $_SERVER['DOCUMENT_ROOT'] . "/uploads/raindrops.png") : $_SERVER['DOCUMENT_ROOT'] . "/uploads/raindrops.png";
-file_put_contents("/tmp/temp", file_get_contents($url));
-header("Content-Type: " . mime_content_type("/tmp/temp"));
-unlink("/tmp/temp");
-
-echo(file_get_contents($url)); \ No newline at end of file