summaryrefslogtreecommitdiff
path: root/includes/inc_rec.php
diff options
context:
space:
mode:
authorroot <root@mediaserver.Belkin>2010-02-18 17:48:07 +0100
committerroot <root@mediaserver.Belkin>2010-02-18 17:48:07 +0100
commitee59e19183a839784e6ac30ed639548e4f36615e (patch)
treeccb25718c32934f41368fa46dbc6083aae533fa6 /includes/inc_rec.php
parent1f5be309fb11e8fa2070c186efe6037a03a9b572 (diff)
downloadistreamdev-ee59e19183a839784e6ac30ed639548e4f36615e.tar.gz
istreamdev-ee59e19183a839784e6ac30ed639548e4f36615e.tar.bz2
Second rev with media streaming. Now it works for all video types.
And some more bugfixes Committer: Alib <aliboba@free.fr> 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
Diffstat (limited to 'includes/inc_rec.php')
-rwxr-xr-xincludes/inc_rec.php18
1 files changed, 12 insertions, 6 deletions
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 "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n";
else
print "<a href=\"javascript:sendForm('getback')\">Back</a></div>\r\n";
-
+if ($dir != $vdrrecpath)
+{
print "<div id=\"rightnav\">\r\n";
print "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n";
-
+}
print "<div id=\"title\">iStreamdev</div>\r\n";
print "</div>\r\n";
print "<div id=\"content\">\r\n";
@@ -28,9 +29,12 @@ print "<br>";
print " <span class=\"graytitle\">{$subdir}</span>\r\n";
print " <ul class=\"pageitem\">";
-$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 "<form name=\"getback\" id=\"getback\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\"/><input name=\"dir\" type=\"hidden\" id=\"dir\" value=\"{$updir}/\" /></form>\r\n";
-closedir($dir_handle);
+
+if ($dir_handle)
+ closedir($dir_handle);
print "</ul></div>\r\n";
?>