Changeset 873 for trunk/Modules/TV/TV.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/TV/TV.php
r825 r873 11 11 function Show() 12 12 { 13 if (count($this->System->PathItems) > 1)13 if (count($this->System->PathItems) > 1) 14 14 { 15 if ($this->System->PathItems[1] == 'playlist.m3u') return($this->ShowPlayList());16 else return (PAGE_NOT_FOUND);17 } else return ($this->ShowChannelList());15 if ($this->System->PathItems[1] == 'playlist.m3u') return ($this->ShowPlayList()); 16 else return (PAGE_NOT_FOUND); 17 } else return ($this->ShowChannelList()); 18 18 } 19 19 … … 51 51 52 52 $DbResult = $this->Database->query($Query); 53 while ($Line = $DbResult->fetch_assoc())53 while ($Line = $DbResult->fetch_assoc()) 54 54 { 55 if ($Line['Stream'] <> '') $Line['Show'] = '<a href="playlist.m3u?id='.$Line['ShortName'].'">Naladit</a>';55 if ($Line['Stream'] <> '') $Line['Show'] = '<a href="playlist.m3u?id='.$Line['ShortName'].'">Naladit</a>'; 56 56 else 57 if ($Line['StreamWeb'] <> '') $Line['Show'] = '<a href="'.$Line['StreamWeb'].'">Naladit</a>';57 if ($Line['StreamWeb'] <> '') $Line['Show'] = '<a href="'.$Line['StreamWeb'].'">Naladit</a>'; 58 58 else $Line['Show'] = ' '; 59 59 … … 72 72 $Output .= 'Další online TV na webu: <a href="http://www.tvinfo.cz/live/televize/evropa/cz">TV info</a><br/>'; 73 73 74 return ($Output);74 return ($Output); 75 75 } 76 76 … … 83 83 84 84 echo('#EXTM3U'."\n"); 85 if (array_key_exists('id', $_GET))85 if (array_key_exists('id', $_GET)) 86 86 { 87 87 $DbResult = $this->Database->select('TV', '*', ' (`Stream` <> "") AND (`ShortName`="'.addslashes($_GET['id']).'") '); 88 if ($DbResult->num_rows > 0)88 if ($DbResult->num_rows > 0) 89 89 { 90 90 $Channel = $DbResult->fetch_array(); … … 95 95 { 96 96 $DbResult = $this->Database->select('TV', '*', ' (`Stream` <> "") ORDER BY `Name` '); 97 while ($Channel = $DbResult->fetch_array())97 while ($Channel = $DbResult->fetch_array()) 98 98 { 99 99 echo('#EXTINF:0,'.$Channel['Name']."\n");
Note:
See TracChangeset
for help on using the changeset viewer.