diff options
Diffstat (limited to 'includes')
-rwxr-xr-x | includes/inc_media.php | 6 |
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"; + } } } } |