aboutsummaryrefslogtreecommitdiff
path: root/radio/source/index.php
diff options
context:
space:
mode:
authorMinteck <minteck@laptop.home>2021-09-25 18:44:40 +0200
committerMinteck <minteck@laptop.home>2021-09-25 18:44:40 +0200
commit9fdb70ced55fa370f8bdc794dba352f7fbecbbd4 (patch)
treeb13cf9e20bb9a06c9c09c69eeed259661713cf70 /radio/source/index.php
parent2c014c29f2cf7a519152937f82ff67c0ef23d84f (diff)
downloadmain-9fdb70ced55fa370f8bdc794dba352f7fbecbbd4.tar.gz
main-9fdb70ced55fa370f8bdc794dba352f7fbecbbd4.tar.bz2
main-9fdb70ced55fa370f8bdc794dba352f7fbecbbd4.zip
Commit :)
Diffstat (limited to 'radio/source/index.php')
-rw-r--r--radio/source/index.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/radio/source/index.php b/radio/source/index.php
new file mode 100644
index 0000000..4436bac
--- /dev/null
+++ b/radio/source/index.php
@@ -0,0 +1,14 @@
+<?php
+
+$file = 'http://localhost:8000/public';
+
+header('Content-Description: File Transfer');
+header('Content-Type: application/octet-stream');
+header('Content-Transfer-Encoding: binary');
+header('Expires: 0');
+header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
+header('Pragma: public');
+ob_clean();
+flush();
+readfile($file);
+exit; \ No newline at end of file