mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2024-11-08 17:43:07 -05:00
20 lines
289 B
PHP
20 lines
289 B
PHP
|
<?php
|
||
|
|
||
|
if(!isset($_GET["s"])){
|
||
|
|
||
|
http_response_code(404);
|
||
|
header("X-Error: No SOUND(s) provided!");
|
||
|
die();
|
||
|
}
|
||
|
|
||
|
include "lib/curlproxy.php";
|
||
|
$proxy = new proxy();
|
||
|
|
||
|
try{
|
||
|
|
||
|
$proxy->stream_linear_audio($_GET["s"]);
|
||
|
}catch(Exception $error){
|
||
|
|
||
|
header("X-Error: " . $error->getMessage());
|
||
|
}
|