summaryrefslogtreecommitdiff
path: root/audio/linear.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-02-17 23:22:19 -0500
committerlolcat <will@lolcat.ca>2024-02-17 23:22:19 -0500
commitaddc5a14a93547f630f23e5b6a79cffa2e37d71a (patch)
treea9163ba3a2e24c3c493cdde95e506c0e7e8a772d /audio/linear.php
parentedc917f5ee984160a0eef436dabd51696d675964 (diff)
boobs
Diffstat (limited to 'audio/linear.php')
-rw-r--r--audio/linear.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/linear.php b/audio/linear.php
new file mode 100644
index 0000000..b6a848f
--- /dev/null
+++ b/audio/linear.php
@@ -0,0 +1,20 @@
+<?php
+
+if(!isset($_GET["s"])){
+
+ http_response_code(404);
+ header("X-Error: No SOUND(s) provided!");
+ die();
+}
+
+include "../data/config.php";
+include "../lib/curlproxy.php";
+$proxy = new proxy();
+
+try{
+
+ $proxy->stream_linear_audio($_GET["s"]);
+}catch(Exception $error){
+
+ header("X-Error: " . $error->getMessage());
+}