Changeset 873 for trunk/Modules/TV
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- Location:
- trunk/Modules/TV
- Files:
-
- 2 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"); -
trunk/Modules/TV/tkr.php
r738 r873 12 12 '<tr><th>Číslo</th<th>Jméno stanice</th><th>Frekvence [MHz]</th><th>Jazyk</th></tr>'; 13 13 $DbResult = $this->Database->select('TV', '*', ' 1 ORDER BY Id'); 14 while ($Row = $DbResult->fetch_array())14 while ($Row = $DbResult->fetch_array()) 15 15 { 16 16 $Output .= '<tr><td>'.$Row['Id'].'</td><td><a href="'.$Row['Homepage'].'">'.$Row['Name'].'</a></td><td align="right">'.($Row['Frequency'] / 1000).'</td><td>'.$Row['Language'].'</td></tr>'; 17 17 } 18 18 $Output .= '</table>Aktualizováno dne 17.12.2007<br></div>'; 19 return ($Output);19 return ($Output); 20 20 } 21 21 }
Note:
See TracChangeset
for help on using the changeset viewer.