]>
Commit | Line | Data |
---|---|---|
a28fdc01 CS |
1 | #!/usr/bin/perl |
2 | # | |
3 | # IPFire CGIs | |
4 | # | |
5 | # This code is distributed under the terms of the GPL | |
6 | # | |
7 | # (c) The IPFire Team | |
8 | ||
9 | use strict; | |
10 | # enable only the following on debugging purpose | |
11 | use warnings; | |
12 | use CGI::Carp 'fatalsToBrowser'; | |
13 | ||
14 | require '/var/ipfire/general-functions.pl'; | |
15 | require "${General::swroot}/lang.pl"; | |
16 | require "${General::swroot}/header.pl"; | |
17 | ||
18 | my %color = (); | |
19 | my %mainsettings = (); | |
20 | my %mpfiresettings = (); | |
21 | my %checked = (); | |
8871b9f2 | 22 | my $message = '0'; |
a28fdc01 CS |
23 | my $errormessage = ""; |
24 | ||
25 | open(DATEI, "<${General::swroot}/mpfire/db/songs.db") || die "No Database found"; | |
26 | my @songdb = <DATEI>; | |
27 | close(DATEI); | |
28 | @songdb = sort(@songdb); | |
29 | ||
30 | &General::readhash("${General::swroot}/main/settings", \%mainsettings); | |
31 | &General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color); | |
32 | ||
33 | &Header::showhttpheaders(); | |
a28fdc01 | 34 | |
bac7231b | 35 | sub refreshpage{&Header::openbox( 'Waiting', 1, "<meta http-equiv='refresh' content='1;' />" );print "<center><img src='/images/clock.gif' alt='' /><br/><font color='red'>$Lang::tr{'pagerefresh'}</font></center>";&Header::closebox();} |
69addbb8 | 36 | |
8871b9f2 CS |
37 | $mpfiresettings{'PAGE'} = "1"; |
38 | ||
69addbb8 | 39 | &Header::getcgihash(\%mpfiresettings); |
bac7231b | 40 | &Header::openpage($Lang::tr{'mpfire'}, 1, "<meta http-equiv='refresh' content='120' />"); |
a28fdc01 CS |
41 | &Header::openbigbox('100%', 'left', '', $errormessage); |
42 | ||
a28fdc01 CS |
43 | ############################################################################################################################ |
44 | ######################################## Scanne Verzeichnisse nach Mp3 Dateien ############################################# | |
45 | ||
46 | if ( $mpfiresettings{'ACTION'} eq "scan" ) | |
47 | { | |
8871b9f2 | 48 | delete $mpfiresettings{'__CGI__'};delete $mpfiresettings{'x'};delete $mpfiresettings{'y'};delete $mpfiresettings{'PAGE'}; |
a28fdc01 | 49 | &General::writehash("${General::swroot}/mpfire/settings", \%mpfiresettings); |
8871b9f2 | 50 | $message=system("/usr/local/bin/mpfirectrl scan $mpfiresettings{'SCANDIR'} $mpfiresettings{'SCANDIRDEPS'}"); |
69addbb8 | 51 | refreshpage(); |
a28fdc01 | 52 | } |
8871b9f2 CS |
53 | elsif ( $mpfiresettings{'ACTION'} eq ">" ){$message=system("/usr/local/bin/mpfirectrl","play","\"$mpfiresettings{'FILE'}\"");} |
54 | elsif ( $mpfiresettings{'ACTION'} eq "x" ){$message=system("/usr/local/bin/mpfirectrl stop");} | |
55 | elsif ( $mpfiresettings{'ACTION'} eq "||" ){$message=system("/usr/local/bin/mpfirectrl pause");} | |
56 | elsif ( $mpfiresettings{'ACTION'} eq "|>" ){$message=system("/usr/local/bin/mpfirectrl resume");} | |
57 | elsif ( $mpfiresettings{'ACTION'} eq ">>" ){$message=system("/usr/local/bin/mpfirectrl next");} | |
58 | elsif ( $mpfiresettings{'ACTION'} eq "playweb" ){$message=system("/usr/local/bin/mpfirectrl","playweb","\"$mpfiresettings{'FILE'}\"");} | |
59 | elsif ( $mpfiresettings{'ACTION'} eq "+" ){$message=system("/usr/local/bin/mpfirectrl volup 5");} | |
60 | elsif ( $mpfiresettings{'ACTION'} eq "-" ){$message=system("/usr/local/bin/mpfirectrl voldown 5");} | |
61 | elsif ( $mpfiresettings{'ACTION'} eq "++" ){$message=system("/usr/local/bin/mpfirectrl volup 10");} | |
62 | elsif ( $mpfiresettings{'ACTION'} eq "--" ){$message=system("/usr/local/bin/mpfirectrl voldown 10");} | |
63 | elsif ( $mpfiresettings{'ACTION'} eq "playlist" ){$message=system("/usr/local/bin/mpfirectrl playall");} | |
64 | elsif ( $mpfiresettings{'ACTION'} eq "emptyplaylist" ){$message=system("unlink ${General::swroot}/mpfire/playlist && touch ${General::swroot}/mpfire/playlist");} | |
65 | elsif ( $mpfiresettings{'ACTION'} eq "addtoplaylist" ){ | |
66 | open(DATEI, ">>${General::swroot}/mpfire/playlist") || die "Could not add playlist"; | |
67 | print DATEI $mpfiresettings{'FILE'}."\n"; | |
68 | close(DATEI); | |
69 | } | |
bac7231b | 70 | elsif ( $mpfiresettings{'ACTION'} eq "playalbum" ) |
32ab16de CS |
71 | { |
72 | my @temp = ""; | |
73 | my @album = split(/\|/,$mpfiresettings{'album'}); | |
74 | my %hash = map{ $_, 1 }@album; | |
75 | ||
76 | foreach (@songdb){ | |
77 | my @song = split(/\|/,$_); | |
78 | chomp($song[0]); | |
79 | push(@temp,$song[0]."\n") if exists $hash{$song[4]}; | |
80 | } | |
81 | open(DATEI, ">${General::swroot}/mpfire/playlist") || die "Could not add playlist"; | |
82 | print DATEI @temp; | |
83 | close(DATEI); | |
8871b9f2 | 84 | $message=system("/usr/local/bin/mpfirectrl playall"); |
32ab16de | 85 | } |
bac7231b | 86 | elsif ( $mpfiresettings{'ACTION'} eq "playartist" ) |
32ab16de CS |
87 | { |
88 | my @temp = ""; | |
89 | my @artist = split(/\|/,$mpfiresettings{'artist'}); | |
90 | my %hash = map{ $_, 1 }@artist; | |
91 | ||
92 | foreach (@songdb){ | |
93 | my @song = split(/\|/,$_); | |
94 | chomp($song[0]); | |
95 | push(@temp,$song[0]."\n") if exists $hash{$song[1]}; | |
96 | } | |
97 | open(DATEI, ">${General::swroot}/mpfire/playlist") || die "Could not add playlist"; | |
98 | print DATEI @temp; | |
99 | close(DATEI); | |
8871b9f2 | 100 | $message=system("/usr/local/bin/mpfirectrl playall"); |
32ab16de | 101 | } |
bac7231b | 102 | elsif ( $mpfiresettings{'ACTION'} eq "playall" ) |
a28fdc01 CS |
103 | { |
104 | my @temp = ""; | |
105 | foreach (@songdb){ | |
106 | my @song = split(/\|/,$_); | |
107 | chomp($song[0]); | |
108 | push(@temp,$song[0]."\n"); | |
109 | } | |
110 | open(DATEI, ">${General::swroot}/mpfire/playlist") || die "Could not add playlist"; | |
111 | print DATEI @temp; | |
112 | close(DATEI); | |
8871b9f2 | 113 | $message=system("/usr/local/bin/mpfirectrl playall"); |
a28fdc01 | 114 | } |
bac7231b | 115 | elsif ( $mpfiresettings{'SHOWLIST'} ){delete $mpfiresettings{'__CGI__'};delete $mpfiresettings{'x'};delete $mpfiresettings{'y'};&General::writehash("${General::swroot}/mpfire/settings", \%mpfiresettings);} |
a28fdc01 CS |
116 | |
117 | ############################################################################################################################ | |
118 | ################################### Aufbau der HTML Seite fr globale Sambaeinstellungen #################################### | |
119 | ||
120 | $mpfiresettings{'SCANDIR'} = "/"; | |
121 | $mpfiresettings{'SHOWLIST'} = "off"; | |
122 | ||
123 | &General::readhash("${General::swroot}/mpfire/settings", \%mpfiresettings); | |
124 | ||
125 | ############################################################################################################################ | |
126 | ########################################### rekursiv nach neuen Mp3s Scannen ##############################################รค | |
127 | ||
8871b9f2 CS |
128 | if ( $message ne '0' ) { print "<font color='red'>An Error occured while launching the command</font>"; } |
129 | elsif ( $message ne "" && $message ne '0' ) { print "<font color='red'>$message</font>"; } | |
a28fdc01 CS |
130 | |
131 | &Header::openbox('100%', 'center', $Lang::tr{'mpfire scanning'}); | |
a2d5130f | 132 | |
a28fdc01 CS |
133 | print <<END |
134 | <form method='post' action='$ENV{'SCRIPT_NAME'}'> | |
135 | <table width='95%' cellspacing='0'> | |
136 | <tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'Scan for Files'}</b></td></tr> | |
137 | <tr><td align='left' width='40%'>$Lang::tr{'Scan from Directory'}</td><td align='left'><input type='text' name='SCANDIR' value='$mpfiresettings{'SCANDIR'}' size="30" /></td></tr> | |
138 | <tr><td align='left' width='40%'>$Lang::tr{'deep scan directories'}</td><td align='left'>on <input type='radio' name='SCANDIRDEPS' value='on' checked='checked'/>/ | |
139 | <input type='radio' name='SCANDIRDEPS' value='off'/> off</td></tr> | |
140 | <tr><td align='center' colspan='2'><input type='hidden' name='ACTION' value='scan' /> | |
141 | <input type='image' alt='$Lang::tr{'Scan for Files'}' title='$Lang::tr{'Scan for Files'}' src='/images/edit-find.png' /></td></tr> | |
142 | </table> | |
143 | </form> | |
144 | END | |
145 | ; | |
146 | &Header::closebox(); | |
147 | ||
a2d5130f CS |
148 | my $song = qx(/usr/local/bin/mpfirectrl song); |
149 | if ( $song eq "" ){$song = "None";} | |
150 | ||
a28fdc01 | 151 | &Header::openbox('100%', 'center', $Lang::tr{'mpfire controls'}); |
a28fdc01 | 152 | print <<END |
69addbb8 CS |
153 | |
154 | <table width='95%' cellspacing='0'> | |
155 | <tr bgcolor='$color{'color20'}'> <td colspan='5' align='center'><marquee behavior='alternate' scrollamount='1' scrolldelay='5'><font color=red>-= $song =-</font></marquee></td></tr> | |
156 | <tr><td colspan='5' align='center'><br/><b>total $#songdb songs</b><br/><br/></td></tr> | |
157 | <tr> | |
a28fdc01 CS |
158 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='x' /><input type='image' alt='$Lang::tr{'stop'}' title='$Lang::tr{'stop'}' src='/images/media-playback-stop.png' /></form></td> |
159 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='||' /><input type='image' alt='$Lang::tr{'pause'}' title='$Lang::tr{'pause'}' src='/images/media-playback-pause.png' /></form></td> | |
160 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='|>' /><input type='image' alt='$Lang::tr{'resume'}' title='$Lang::tr{'resume'}' src='/images/media-resume.png' /></form></td> | |
161 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='playall' /><input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' /></form></td> | |
162 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='>>' /><input type='image' alt='$Lang::tr{'next'}' title='$Lang::tr{'next'}' src='/images/media-skip-forward.png' /></form></td> | |
163 | </tr> | |
164 | END | |
165 | ; | |
166 | if ( $mpfiresettings{'SHOWLIST'} eq "on" ){print"<tr><td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='SHOWLIST' value='off' /><input type='image' alt='$Lang::tr{'off'}' title='$Lang::tr{'off'}' src='/images/audio-x-generic.png' /></form></td>";} | |
167 | else { print"<tr><td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='SHOWLIST' value='on' /><input type='image' alt='$Lang::tr{'on'}' title='$Lang::tr{'on'}' src='/images/audio-x-generic-red.png' /></form></td>";} | |
168 | print <<END | |
169 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='--' /><input type='image' alt='$Lang::tr{'voldown10'}' title='$Lang::tr{'voldown10'}' src='/images/audio-volume-low-red.png' /></form></td> | |
170 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='-' /><input type='image' alt='$Lang::tr{'voldown5'}' title='$Lang::tr{'voldown5'}' src='/images/audio-volume-low.png' /></form></td> | |
171 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='+' /><input type='image' alt='$Lang::tr{'volup5'}' title='$Lang::tr{'volup5'}' src='/images/audio-volume-high.png' /></form></td> | |
172 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='++' /><input type='image' alt='$Lang::tr{'volup10'}' title='$Lang::tr{'volup10'}' src='/images/audio-volume-high-red.png' /></form></td> | |
173 | </tr> | |
174 | </table> | |
175 | END | |
176 | ; | |
177 | &Header::closebox(); | |
178 | ||
8871b9f2 | 179 | if ( $#songdb ne '0' ){ |
32ab16de CS |
180 | &Header::openbox('100%', 'center', $Lang::tr{'quick playlist'}); |
181 | ||
182 | my @artist; | |
183 | my @album; | |
184 | foreach (@songdb){ | |
185 | my @song = split(/\|/,$_); | |
186 | push(@artist,$song[1]);push(@album,$song[4]);} | |
187 | my %hash = map{ $_, 1 }@artist; | |
188 | @artist = sort keys %hash; | |
189 | my %hash = map{ $_, 1 }@album; | |
190 | @album = sort keys %hash; | |
191 | print <<END | |
192 | <table width='95%' cellspacing='0'> | |
69addbb8 | 193 | <tr><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'artist'} - $#artist</b></td><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'album'} - $#album</b></td></tr> |
32ab16de CS |
194 | <tr><td align='center'> |
195 | <form method='post' action='$ENV{'SCRIPT_NAME'}'> | |
69addbb8 | 196 | <select name='artist' size='8' multiple='multiple' style='width:300px;'> |
32ab16de CS |
197 | END |
198 | ; | |
199 | foreach (@artist){print "<option>$_</option>";} | |
200 | print <<END | |
201 | </select><br/> | |
202 | <input type='hidden' name='ACTION' value='playartist' /> | |
203 | <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' /> | |
204 | </form></td> | |
205 | <td align='center'> | |
206 | <form method='post' action='$ENV{'SCRIPT_NAME'}'> | |
69addbb8 | 207 | <select name='album' size='8' multiple='multiple' style='width:300px;'> |
32ab16de CS |
208 | END |
209 | ; | |
210 | foreach (@album){print "<option>$_</option>";} | |
211 | print <<END | |
212 | </select><br/> | |
213 | <input type='hidden' name='ACTION' value='playalbum' /> | |
214 | <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' /> | |
215 | </form></td> | |
216 | </tr></table> | |
217 | END | |
218 | ; | |
219 | &Header::closebox(); | |
8871b9f2 CS |
220 | } |
221 | ||
32ab16de | 222 | |
a28fdc01 CS |
223 | if ( $mpfiresettings{'SHOWLIST'} eq "on" ){ |
224 | ||
225 | &Header::openbox('100%', 'center', $Lang::tr{'mpfire songs'}); | |
226 | print <<END | |
227 | ||
32ab16de | 228 | <table width='95%' cellspacing='5'> |
a28fdc01 | 229 | <tr bgcolor='$color{'color20'}'><td colspan='9' align='left'><b>$Lang::tr{'Existing Files'}</b></td></tr> |
8871b9f2 CS |
230 | <tr><td align='center' colspan='9'><br/>$Lang::tr{'Pages'}<br/><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='submit' name='PAGE' value='all' /><br/> |
231 | END | |
232 | ; | |
233 | my $pages =(int($#songdb/100)+1); | |
234 | for(my $i = 1; $i <= $pages; $i++) { | |
235 | print "<input type='submit' name='PAGE' value='$i' />"; | |
236 | if (!($i % 205)){print"<br/>";} | |
237 | } | |
238 | print <<END | |
239 | </form></td></tr> | |
a28fdc01 CS |
240 | <tr><td align='center'></td> |
241 | <td align='center'><b>$Lang::tr{'artist'}<br/>$Lang::tr{'title'}</b></td> | |
242 | <td align='center'><b>$Lang::tr{'number'}</b></td> | |
243 | <td align='center'><b>$Lang::tr{'album'}</b></td> | |
244 | <td align='center'><b>$Lang::tr{'year'}</b></td> | |
245 | <td align='center'><b>$Lang::tr{'genre'}</b></td> | |
246 | <td align='center'><b>$Lang::tr{'length'}<br/>$Lang::tr{'bitrate'} - $Lang::tr{'frequency'}</b></td> | |
247 | <td align='center'><b>$Lang::tr{'mode'}</b></td></tr> | |
248 | END | |
249 | ; | |
8871b9f2 CS |
250 | my $lines=0;my $i=0;my $begin;my $end; |
251 | if ( $mpfiresettings{'PAGE'} eq 'all' ){ | |
252 | $begin=0; | |
253 | $end=$#songdb; | |
254 | } | |
255 | else{ | |
256 | $begin=(($mpfiresettings{'PAGE'}-1) * 100); | |
257 | $end=(($mpfiresettings{'PAGE'} * 100)-1); | |
258 | } | |
a28fdc01 | 259 | foreach (@songdb){ |
8871b9f2 CS |
260 | if (!($i >= $begin && $i <= $end)){ |
261 | #print $begin."->".$i."<-".$end."\n"; | |
262 | $i++;next;} | |
a28fdc01 CS |
263 | my @song = split(/\|/,$_); |
264 | ||
265 | if ($lines % 2) {print "<tr bgcolor='$color{'color20'}'>";} else {print "<tr bgcolor='$color{'color22'}'>";} | |
266 | $song[0]=~s/\/\//\//g; | |
267 | print <<END | |
8871b9f2 | 268 | <td align='center' style="white-space:nowrap;"><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='addtoplaylist' /><input type='hidden' name='FILE' value="$song[0]" /><input type='image' alt='$Lang::tr{'add'}' title='$Lang::tr{'add'}' src='/images/list-add.png' /></form><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='>' /><input type='hidden' name='FILE' value="$song[0]" /><input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' /></form></td> |
a28fdc01 CS |
269 | <td align='center'>$song[1]<br/>$song[2]</td> |
270 | <td align='center'>$song[3]</td> | |
271 | <td align='center'>$song[4]</td> | |
272 | <td align='center'>$song[5]</td> | |
273 | <td align='center'>$song[6]</td> | |
274 | <td align='center'>$song[7]:$song[8]<br/>$song[9] - $song[10]</td> | |
275 | END | |
276 | ; | |
277 | if ( $song[11] eq "0\n" ) {print "<td align='center'>Stereo</td></tr>"; } | |
278 | elsif ( $song[11] eq "1\n" ) {print "<td align='center'>Joint<br/>Stereo</td></tr>"; } | |
279 | elsif ( $song[11] eq "2\n" ) {print "<td align='center'>Dual<br/>Channel</td></tr>"; } | |
280 | elsif ( $song[11] eq "3\n" ) {print "<td align='center'>Single<br/>Channel</td></tr>"; } | |
281 | else {print "<td align='center'></td></tr>"; } | |
8871b9f2 CS |
282 | $lines++; |
283 | $i++; | |
a28fdc01 | 284 | } |
8871b9f2 | 285 | print "</table>"; |
a28fdc01 CS |
286 | &Header::closebox(); |
287 | } | |
288 | ||
32ab16de CS |
289 | &Header::openbox('100%', 'center', $Lang::tr{'mpfire playlist'}); |
290 | ||
32ab16de CS |
291 | open(DATEI, "<${General::swroot}/mpfire/playlist") || die "Could not open playlist"; |
292 | my @playlist = <DATEI>; | |
293 | close(DATEI); | |
294 | ||
bac7231b CS |
295 | my %hash; |
296 | foreach (@songdb){ | |
297 | my @song = split(/\|/,$_); | |
298 | chomp($song[0]); | |
299 | $hash{$song[0]}=$song[1]." - ".$song[2]." - ".$song[7].":".$song[8]; | |
300 | } | |
301 | ||
32ab16de CS |
302 | print <<END |
303 | <table width='95%' cellspacing='0'> | |
8871b9f2 CS |
304 | <tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'current playlist'}</b></td></tr> |
305 | <tr><td align='center' colspan='2' ><textarea cols='100' rows='10' name='playlist' style='font-size:11px;width:650px;' readonly='readonly'> | |
bac7231b CS |
306 | END |
307 | ; | |
308 | foreach (@playlist){chomp($_);print $hash{$_}."\n";} | |
309 | print <<END | |
8871b9f2 CS |
310 | </textarea></td></tr><tr> |
311 | <td align='right'> | |
312 | <form method='post' action='$ENV{'SCRIPT_NAME'}'> | |
313 | <input type='hidden' name='ACTION' value='emptyplaylist' /> | |
314 | <input type='image' alt='$Lang::tr{'clear playlist'}' title='$Lang::tr{'clear playlist'}' src='/images/user-trash.png' /> | |
315 | </form> | |
316 | </td> | |
317 | <td align='left'> | |
318 | <form method='post' action='$ENV{'SCRIPT_NAME'}'> | |
319 | <input type='hidden' name='ACTION' value='playlist' /> | |
320 | <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' /> | |
321 | </form> | |
322 | </td></tr> | |
32ab16de CS |
323 | </table> |
324 | END | |
325 | ; | |
326 | &Header::closebox(); | |
327 | ||
a2d5130f CS |
328 | &Header::openbox('100%', 'center', $Lang::tr{'mpfire webradio'}); |
329 | ||
330 | open(DATEI, "<${General::swroot}/mpfire/webradio") || die "Could not open playlist"; | |
331 | my @webradio = <DATEI>; | |
332 | close(DATEI); | |
333 | ||
334 | print <<END | |
335 | <table width='95%' cellspacing='0'> | |
336 | <tr bgcolor='$color{'color20'}'><td colspan='9' align='left'><b>$Lang::tr{'webradio playlist'}</b></td></tr> | |
337 | <tr><td>Stream</td><td colspan='2'></td></tr> | |
338 | END | |
339 | ; | |
340 | foreach (@webradio){ | |
341 | my @stream = split(/\|/,$_); | |
342 | print <<END | |
343 | <tr><td>$stream[1]</td> | |
a2d5130f CS |
344 | <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='FILE' value='$stream[0]' /><input type='hidden' name='ACTION' value='playweb' /><input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' /></form></td> |
345 | </tr> | |
346 | END | |
347 | ; | |
348 | } | |
349 | print "</table>"; | |
350 | &Header::closebox(); | |
351 | ||
a28fdc01 CS |
352 | &Header::closebigbox(); |
353 | &Header::closepage(); |