diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-19 18:44:01 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-19 18:44:01 +0100 |
commit | a8657c3d74a48c61e781fe6b0218d4fce9040f0c (patch) | |
tree | 6ccee2ca66ac9447fc4170460ed15f8bd4aaf40f | |
parent | 31e17f99c8bf22b89bcd92b314d8df5b8fcc4189 (diff) | |
download | istreamdev-a8657c3d74a48c61e781fe6b0218d4fce9040f0c.tar.gz istreamdev-a8657c3d74a48c61e781fe6b0218d4fce9040f0c.tar.bz2 |
Added $vdrenabled to allow to disable the VDR feature
-rwxr-xr-x | config_default.php | 8 | ||||
-rwxr-xr-x | includes/inc_home.php | 27 |
2 files changed, 21 insertions, 14 deletions
diff --git a/config_default.php b/config_default.php index d479ba4..6cb5f43 100755 --- a/config_default.php +++ b/config_default.php @@ -1,6 +1,9 @@ <?php - global $user, $pass, $vdrchannels, $vdrstreamdev, $quality, $httppath; - global $svdrpip, $svdrpport, $ffmpegpath, $videotypes, $audiotypes, $mediainfopath; + global $user, $pass, $httppath; + global $vdrenabled, $vdrchannels, $svdrpport, $svdrpip, $vdrstreamdev, $vdrrecpath; + global $mediainfopath, $mediapath, $videotypes, $audiotypes; + global $quality, $ffmpegpath; + global $isdversion; // Http configuration $user = 'istreamdev'; // Login @@ -8,6 +11,7 @@ $httppath = '/istreamdev/'; // Path to the index.php file // VDR configuration + $vdrenabled=1; $vdrchannels='/etc/vdr/channels.conf'; // VDR channel list $svdrpport=2001; // SVDRP port $svdrpip='127.0.0.1'; // SVDRP ip diff --git a/includes/inc_home.php b/includes/inc_home.php index 11a388c..dd15759 100755 --- a/includes/inc_home.php +++ b/includes/inc_home.php @@ -1,23 +1,26 @@ <?php
-global $vdrrecpath;
+global $vdrenabled, $vdrrecpath;
print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n";
print "<div id=\"topbar\" class=\"transparent\">\r\n";
print "<div id=\"title\">iStreamdev</div>\r\n";
print "</div>\r\n";
print "<div id=\"content\">\r\n";
-print " <span class=\"graytitle\">VDR</span>\r\n";
-print " <ul class=\"pageitem\">\r\n";
-print " <li class=\"menu\"><a href=\"javascript:sendForm('channels');\"><img src=\"images/pictos/tv.png\" /><span class=\"name\">Channels</span><span class=\"arrow\"></span></a></li>\r\n";
-print " <form name=\"channels\" id=\"channels\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"listcategory\" /></form>\r\n";
-print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('recordings');\"><img src=\"images/pictos/record.png\" /><span class=\"name\">Recordings</span><span class=\"arrow\"></span></a></li>\r\n";
-print " <form name=\"recordings\" id=\"recordings\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\" /><input name=\"dir\" type=\"hidden\" id=\"dir\" value=\"{$vdrrecpath}\" /></form>\r\n";
-print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('epg');\"><img src=\"images/pictos/epg.png\" /><span class=\"name\">Program Guide</span><span class=\"arrow\"></span></a></li>\r\n";
-print " <form name=\"epg\" id=\"epg\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"epg\" /></form>\r\n";
-print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('timers');\"><img src=\"images/pictos/timers.png\" /><span class=\"name\">Timers</span><span class=\"arrow\"></span></a></li>\r\n";
-print " <form name=\"timers\" id=\"timers\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"timers\" /></form>\r\n";
-print " </ul>";
+if ($vdrenabled)
+{
+ print " <span class=\"graytitle\">VDR</span>\r\n";
+ print " <ul class=\"pageitem\">\r\n";
+ print " <li class=\"menu\"><a href=\"javascript:sendForm('channels');\"><img src=\"images/pictos/tv.png\" /><span class=\"name\">Channels</span><span class=\"arrow\"></span></a></li>\r\n";
+ print " <form name=\"channels\" id=\"channels\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"listcategory\" /></form>\r\n";
+ print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('recordings');\"><img src=\"images/pictos/record.png\" /><span class=\"name\">Recordings</span><span class=\"arrow\"></span></a></li>\r\n";
+ print " <form name=\"recordings\" id=\"recordings\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\" /><input name=\"dir\" type=\"hidden\" id=\"dir\" value=\"{$vdrrecpath}\" /></form>\r\n";
+ print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('epg');\"><img src=\"images/pictos/epg.png\" /><span class=\"name\">Program Guide</span><span class=\"arrow\"></span></a></li>\r\n";
+ print " <form name=\"epg\" id=\"epg\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"epg\" /></form>\r\n";
+ print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('timers');\"><img src=\"images/pictos/timers.png\" /><span class=\"name\">Timers</span><span class=\"arrow\"></span></a></li>\r\n";
+ print " <form name=\"timers\" id=\"timers\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"timers\" /></form>\r\n";
+ print " </ul>";
+}
print " <span class=\"graytitle\">MEDIA</span>\r\n";
print " <ul class=\"pageitem\">\r\n";
print " <li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('media');\"><img src=\"images/pictos/media.png\" /><span class=\"name\">Media</span><span class=\"arrow\"></span></a></li>\r\n";
|