summaryrefslogtreecommitdiff
path: root/audio/linear.php
diff options
context:
space:
mode:
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());
+}