From 3d72b276b17a920a3f319afd2aec44d7bdf7a40e Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 24 Feb 2010 22:54:18 +0100 Subject: Better management of audio/video media --- includes/inc_media.php | 153 +++---------------------------------------------- 1 file changed, 7 insertions(+), 146 deletions(-) (limited to 'includes/inc_media.php') diff --git a/includes/inc_media.php b/includes/inc_media.php index eaed547..e0f7cb9 100755 --- a/includes/inc_media.php +++ b/includes/inc_media.php @@ -1,156 +1,17 @@ \r\n"; -print "
\r\n"; -print "
\r\n"; - -if ($subdir == '/') - print "\"home\"
\r\n"; +// Use the right media type +if (mediadirhasaudio($mediapath .$subdir)) + include ('includes/inc_audio.php'); else -{ - print "Back
\r\n"; - print "
\r\n"; - print "\"home\"
\r\n"; -} - -print "
iStreamdev
\r\n"; -print "\r\n"; - -print "
\r\n"; -print " Media\r\n"; -print "
"; -print "
\r\n"; + include ('includes/inc_video.php'); ?> -- cgit v1.2.3