summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-24 10:22:43 +0100
committerAlib <aliboba@free.fr>2010-02-24 10:22:43 +0100
commitf254a8b5816384da1fa7a3bb639232ecec582014 (patch)
treea253ad361c722db83dcbcdc58d6f08a44cb45c51 /includes
parent88503d0f3a5e3724606754ecd8d4d109973e0d47 (diff)
downloadistreamdev-f254a8b5816384da1fa7a3bb639232ecec582014.tar.gz
istreamdev-f254a8b5816384da1fa7a3bb639232ecec582014.tar.bz2
first try for mp3 streaming. Works but not secure at all.
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/inc_media.php6
1 files changed, 6 insertions, 0 deletions
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 " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$dir}{$value}\" />";
print "</form>\r\n";
}
+ else if ( preg_match("'" .$fileext ." '", $audiotypes)
+ || preg_match("'" .$fileext ." $'", $audiotypes)
+ )
+ {
+ print "<li class=\"menu\"><a href=\"streammusic.php?file={$dir}{$value}\"><img src=\"images/pictos/audio.png\" /><span class=\"name\">$value</span><span class=\"arrow\"></span></a></li>\r\n";
+ }
}
}
}