From e89fdef6064741bf6d26c11b782c7fecf994caf3 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Tue, 16 Mar 2010 15:16:59 +0100 Subject: Function implementation WIP --- bin/vdr.php | 255 ++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 190 insertions(+), 65 deletions(-) (limited to 'bin/vdr.php') diff --git a/bin/vdr.php b/bin/vdr.php index beda66c..5aa3c65 100755 --- a/bin/vdr.php +++ b/bin/vdr.php @@ -1,5 +1,5 @@ All channels\r\n"; - print "
\r\n"; - - if (!file_exists($vdrchannels)) - { - print "Error: channels file not found"; - return; - } - - $fp = fopen ($vdrchannels,"r"); - if (!fp) - { - print "Unable to open channels file"; - return; - } - while ($line = fgets($fp, 1024)) - { - // Check if it is a categorie - if ($line[0] == ":") - { - // Remove : and @ - $cat = substr($line, 1, -1); - if($cat[0] == '@') - { - $cat_array = explode(' ', $cat); - $cat = substr($cat, strlen($cat_array[0])+1); - } - - $cat2 = addslashes($cat); - - print "
  • $cat
  • \r\n"; - print "
    \r\n"; - } - } - fclose($fp); -} - function vdrlistchannels($category = "NULL") { global $epgtitle; -- cgit v1.2.3