From f254a8b5816384da1fa7a3bb639232ecec582014 Mon Sep 17 00:00:00 2001 From: Alib Date: Wed, 24 Feb 2010 10:22:43 +0100 Subject: first try for mp3 streaming. Works but not secure at all. --- includes/inc_media.php | 6 ++++++ streammusic.php | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 streammusic.php diff --git a/includes/inc_media.php b/includes/inc_media.php index 7c5f133..b871a42 100755 --- a/includes/inc_media.php +++ b/includes/inc_media.php @@ -91,6 +91,12 @@ else print " "; print "\r\n"; } + else if ( preg_match("'" .$fileext ." '", $audiotypes) + || preg_match("'" .$fileext ." $'", $audiotypes) + ) + { + print "
  • $value
  • \r\n"; + } } } } diff --git a/streammusic.php b/streammusic.php new file mode 100644 index 0000000..e1170f7 --- /dev/null +++ b/streammusic.php @@ -0,0 +1,14 @@ + -- cgit v1.2.3