From 1f5be309fb11e8fa2070c186efe6037a03a9b572 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Feb 2010 13:56:45 +0100 Subject: avi straming first test --- includes/inc_media.php | 53 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) (limited to 'includes/inc_media.php') diff --git a/includes/inc_media.php b/includes/inc_media.php index b946e09..3d1f820 100755 --- a/includes/inc_media.php +++ b/includes/inc_media.php @@ -1,16 +1,63 @@ \r\n"; print "
\r\n"; print "
\r\n"; +if ($dir == $mediapath) + print "\"home\"
\r\n"; +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 " {$subdir}\r\n"; print "
\r\n"; +$dir_handle = @opendir($dir) or die("Unable to open $dir"); + +while ($medianame = readdir($dir_handle)) +{ + if($medianame == "." || $medianame == ".." || $medianame == 'lost+found') + continue; + + $medianame2=addslashes($medianame); + + if (strstr($medianame, ".avi") == ".avi") + { + print "
  • $medianame
  • \r\n"; + print "
    "; + print " "; + print " "; + print " "; + print "
    \r\n"; + } + else + { + print "
  • $medianame
  • \r\n"; + print "
    "; + print " "; + print " "; + print "
    \r\n"; + } +} + +$updir = dirname($dir); + +print "
    \r\n"; +closedir($dir_handle); + +print "\r\n"; ?> -- cgit v1.2.3