Changeset 349 for trunk/Modules/TV/TV.php
- Timestamp:
- Jan 18, 2012, 7:16:43 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/TV/TV.php
r348 r349 7 7 8 8 function Show() 9 { 10 if(count($this->System->PathItems) > 1) 11 { 12 if($this->System->PathItems[1] == 'playlist.m3u') return($this->ShowPlayList()); 13 else return(PAGE_NOT_FOUND); 14 } else return($this->ShowChannelList()); 15 } 16 17 function ShowChannelList() 9 18 { 10 19 global $Channels; 11 20 12 21 $Output = 'Stažení přehrávače: <a href="http://www.videolan.org/vlc/">VLC Media Player</a><br/>'. 13 22 'Seznam všech kanálů do přehrávače: <a href="playlist.m3u">Playlist</a><br/>'. … … 59 68 $Output .= 'Další online TV na webu: <a href="http://www.tvinfo.cz/live/televize/evropa/cz">TV info</a><br/>'; 60 69 61 return($Output); 70 return($Output); 62 71 } 63 }64 72 65 class TVPlaylistPage extends Page 66 { 67 var $FullTitle = 'Síťová televize'; 68 var $ShortTitle = 'IPTV'; 69 var $SimplePage = true; 70 71 function Show() 73 function ShowPlaylist() 72 74 { 75 $this->SimplePage = true; 76 $this->FormatHTML = false; 77 73 78 Header("Content-Type: audio/mpegurl"); 74 79 Header("Content-Disposition: attachment; filename=playlist.m3u"); … … 94 99 } 95 100 return($Output); 96 } 101 } 97 102 } 98 103 … … 133 138 { 134 139 $this->System->Pages['tv'] = 'TVChannelsPage'; 135 $this->System->Pages['tv/playlist.m3u'] = 'TVPlaylistPage';136 140 } 137 141
Note:
See TracChangeset
for help on using the changeset viewer.