summaryrefslogtreecommitdiff
path: root/includes/inc_stream.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/inc_stream.php')
-rwxr-xr-xincludes/inc_stream.php139
1 files changed, 0 insertions, 139 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php
deleted file mode 100755
index 5837e22..0000000
--- a/includes/inc_stream.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-
-global $vdrstreamdev, $quality;
-
-$category = $_SESSION['currentcat'];
-
-$type = $_REQUEST['type'];
-$name = $_REQUEST['name'];
-$name = stripslashes($name);
-switch ($type)
-{
- // Live TV
- case 1:
- list($title, $desc, $realname) = vdrgetinfostream($name, 1);
- $channum = vdrgetchannum($realname);
- break;
- // Recording
- case 2:
- $realname = $name;
- list($title, $desc, $realname) = vdrgetinfostream($name, 0);
- break;
- // Media
- case 3:
- list($title, $desc) = mediagetinfostream($name);
- $realname = basename($name);
- break;
- default:
- $realname = "";
- $title = "";
- $desc = "";
- $channame = "";
-}
-
-print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n";
-
-print "<div id=\"topbar\" class=\"transparent\">\r\n";
-print "<div id=\"leftnav\">\r\n";
-
-print "<a href=\"javascript:sendForm('getback')\">Back</a></div>\r\n";
-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";
-
-print " <span class=\"graytitle\">Select stream mode</span>\r\n";
-
-// Print the right logo
-print " <ul class=\"pageitem\">\r\n";
-
-// Get logo
-if ($type == 2)
- generatelogo($type, $realname, 'ram/tmp-logo.png');
-else
- generatelogo($type, $name, 'ram/tmp-logo.png');
-
-print " <center><img src=\"ram/tmp-logo.png\"></img></center>\r\n";
-
-print " </ul>\r\n";
-
-print " <div id=\"tributton\">\r\n";
-print " <div class=\"links\">\r\n";
-
-foreach ($quality as $qname => $qparams)
- print "<a href=\"javascript:sendForm('$qname')\">{$qname}</a>";
-print "\r\n";
-
-print " </div></div>\r\n";
-
-print " <ul class=\"pageitem\">\r\n";
-print " <li class=\"textbox\"><span class=\"header\">{$realname}</span><p><strong>{$title}</strong>\r\n";
-print " <br>{$desc}</p></li></ul>\r\n";
-
-print " </div>\r\n";
-
-foreach ($quality as $qname => $qparams)
-{
- print " <form name=\"{$qname}\" id=\"{$qname}\" method=\"post\" action=\"index.php\">\r\n";
- print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"startstream\" />\r\n";
- print " <input name=\"type\" type=\"hidden\" id=\"type\" value={$type} />\r\n";
- print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$realname}\" />\r\n";
- print " <input name=\"title\" type=\"hidden\" id=\"title\" value=\"{$title}\" />\r\n";
- print " <input name=\"desc\" type=\"hidden\" id=\"desc\" value=\"{$desc}\" />\r\n";
- print " <input name=\"qname\" type=\"hidden\" id=\"qname\" value=\"{$qname}\" />\r\n";
- print " <input name=\"qparams\" type=\"hidden\" id=\"qparams\" value=\"{$qparams}\" />\r\n";
- print " <input name=\"category\" type=\"hidden\" id=\"category\" value=\"{$category}\" />\r\n";
- switch ($type)
- {
- case 1:
- print " <input name=\"url\" type=\"hidden\" id=\"url\" value=\"{$vdrstreamdev}{$channum}\" />\r\n";
- break;
- case 3:
- $mediapath = $_REQUEST['mediapath'];
- $subdir = $_REQUEST['subdir'];
- $subdir = stripslashes($subdir);
- print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />\r\n";
- print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"" .stripslashes($subdir) ."\" />\r\n";
- // NO BREAK
- case 2:
- print " <input name=\"url\" type=\"hidden\" id=\"url\" value=\"" .stripslashes($name) ."\" />\r\n";
- break;
- }
- print " </form>";
-}
-
-print " <form name=\"getback\" id=\"getback\" method=\"post\" action=\"index.php\">";
-switch ($type)
-{
- case 1:
- if ($category==null)
- {
- print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"listcategory\" />";
- }
- else
- {
- print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"listchannels\" />";
- print " <input name=\"cat\"type=\"hidden\" id=\"cat\" value=\"{$category}\" />";
- }
- break;
- case 2:
- $dir = dirname($name);
- print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\" />";
- print " <input name=\"dir\"type=\"hidden\" id=\"dir\" value=\"" . stripslashes($dir) . "\" />";
- break;
- case 3:
- $mediapath = $_REQUEST['mediapath'];
- $subdir = $_REQUEST['subdir'];
- $subdir = stripslashes($subdir);
-
- print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"video\" />";
- print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />\r\n";
- print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}\" />\r\n";
- break;
-}
-print " </form>\r\n";
-
-?>