From ee59e19183a839784e6ac30ed639548e4f36615e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Feb 2010 17:48:07 +0100 Subject: Second rev with media streaming. Now it works for all video types. And some more bugfixes Committer: Alib modified: HISTORY modified: config.php modified: css/style.css modified: includes/inc_media.php modified: includes/inc_rec.php modified: includes/inc_stream.php modified: includes/inc_vdr.php modified: includes/include.php modified: istream.sh --- includes/inc_rec.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'includes/inc_rec.php') diff --git a/includes/inc_rec.php b/includes/inc_rec.php index 8459a07..b01a64c 100755 --- a/includes/inc_rec.php +++ b/includes/inc_rec.php @@ -16,10 +16,11 @@ if ($dir == $vdrrecpath) print "\"home\"\r\n"; else print "Back\r\n"; - +if ($dir != $vdrrecpath) +{ print "
\r\n"; print "\"home\"
\r\n"; - +} print "
iStreamdev
\r\n"; print "\r\n"; print "
\r\n"; @@ -28,9 +29,12 @@ print "
"; print " {$subdir}\r\n"; print "
    "; -$dir_handle = @opendir($dir) or die("Unable to open $dir"); - -while ($recname = readdir($dir_handle)) +$dir_handle = @opendir($dir); +if (!$dir_handle) +{ + print "Unable to open $dir"; +} +else while ($recname = readdir($dir_handle)) { if($recname == "." || $recname == ".." || $recname == "epg.data" || $recname == 'lost+found') continue; @@ -59,7 +63,9 @@ while ($recname = readdir($dir_handle)) $updir = dirname($dir); print "
    \r\n"; -closedir($dir_handle); + +if ($dir_handle) + closedir($dir_handle); print "
\r\n"; ?> -- cgit v1.2.3