summaryrefslogtreecommitdiff
path: root/includes/inc_media.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-25 19:22:16 +0100
committerTheTroll <trolldev@gmail.com>2010-02-25 19:22:16 +0100
commit627da0570e79865643ae3c23c0f5244ac46d5d68 (patch)
treeda526f76a8176a0f182f275f5834bccc7c8a0e59 /includes/inc_media.php
parentc57e43d3caa214c0067ed1ec452fc5cd94c67121 (diff)
downloadistreamdev-627da0570e79865643ae3c23c0f5244ac46d5d68.tar.gz
istreamdev-627da0570e79865643ae3c23c0f5244ac46d5d68.tar.bz2
Added a source type and now show the media browsing respect to the type
Diffstat (limited to 'includes/inc_media.php')
-rwxr-xr-xincludes/inc_media.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/includes/inc_media.php b/includes/inc_media.php
deleted file mode 100755
index e0f7cb9..0000000
--- a/includes/inc_media.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-$mediapath = $_REQUEST['mediapath'];
-$subdir = $_REQUEST['subdir'];
-
-/* Add last slash to dirs */
-if ($mediapath[strlen($mediapath)-1] != '/')
- $mediapath = $mediapath .'/';
-if ($subdir[strlen($subdir)-1] != '/')
- $subdir = $subdir .'/';
-
-// Use the right media type
-if (mediadirhasaudio($mediapath .$subdir))
- include ('includes/inc_audio.php');
-else
- include ('includes/inc_video.php');
-?>