diff options
author | lolcat <will@lolcat.ca> | 2024-02-17 23:22:19 -0500 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2024-02-17 23:22:19 -0500 |
commit | addc5a14a93547f630f23e5b6a79cffa2e37d71a (patch) | |
tree | a9163ba3a2e24c3c493cdde95e506c0e7e8a772d /audio/linear.php | |
parent | edc917f5ee984160a0eef436dabd51696d675964 (diff) |
boobs
Diffstat (limited to 'audio/linear.php')
-rw-r--r-- | audio/linear.php | 20 |
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()); +} |