]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - html/cgi-bin/mpfire.cgi
2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
23 # enable only the following on debugging purpose
25 #use CGI::Carp 'fatalsToBrowser';
27 require '/var/ipfire/general-functions.pl';
28 require "${General::swroot}/lang.pl";
29 require "${General::swroot}/header.pl";
32 my %mainsettings = ();
33 my %mpfiresettings = ();
36 my $errormessage = "";
38 &General
::readhash
("${General::swroot}/main/settings", \
%mainsettings);
39 &General
::readhash
("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \
%color);
41 if ( $ENV{'QUERY_STRING'} =~ /title/){
42 my $song = `/usr/local/bin/mpfirectrl song 2>/dev/null`;
43 if ( $song eq "" ){$song = "None";}
44 &Header
::showhttpheaders
();
46 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
47 <meta http-equiv='refresh' content='5'>
48 <head><title>Song</title></head>
50 <table width='95%' cellspacing='0' align='center'>
51 <tr bgcolor='$color{'color20'}'><td align='center'><font color='red' face='Verdana' size='2'>-= $song =-</font></td></tr>
58 &Header
::showhttpheaders
();
60 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
();}
62 $mpfiresettings{'PAGE'} = "1";
64 open(DATEI
, "<${General::swroot}/mpfire/db/mpd.db") || die "No Database found";
68 my @artist; my @album; my @genre; my @year; my $linecount = 0; my %songs;
69 my $key;my $file;my $Time;my $Artist;my $Title;my $Album;my $Track;my $Date;my $Genre;
71 if ( $_ =~ /mtime: / ){
72 $songs{$key}="$file|$Time|$Artist|$Title|$Album|$Track|$Date|$Genre";
73 push(@artist,$Artist);push(@album,$Album);push(@year,$Date);push(@genre,$Genre);
74 $key="";$file="";$Time="";$Artist="";$Title="";$Album="";$Track="";$Date="";$Genre="";
76 elsif ( $_ =~ /key: / ){my @temp = split(/: /,$_);$key=$temp[1];}
77 elsif ( $_ =~ /file: / ){my @temp = split(/: /,$_);$file=$temp[1];}
78 elsif ( $_ =~ /Time: / ){my @temp = split(/: /,$_);$Time=$temp[1];}
79 elsif ( $_ =~ /Artist: / ){my @temp = split(/: /,$_);$Artist=$temp[1];}
80 elsif ( $_ =~ /Title: / ){my @temp = split(/: /,$_);$Title=$temp[1];}
81 elsif ( $_ =~ /Album: / ){my @temp = split(/: /,$_);$Album=$temp[1];}
82 elsif ( $_ =~ /Track: / ){my @temp = split(/: /,$_);$Track=$temp[1];}
83 elsif ( $_ =~ /Date: / ){my @temp = split(/: /,$_);$Date=$temp[1];}
84 elsif ( $_ =~ /Genre: / ){my @temp = split(/: /,$_);$Genre=$temp[1];}
88 my %hash = map{ $_, 1 }@artist;
89 @artist = sort keys %hash;
90 my %hash = map{ $_, 1 }@album;
91 @album = sort keys %hash;
92 my %hash = map{ $_, 1 }@year;
93 @year = sort keys %hash;
94 my %hash = map{ $_, 1 }@genre;
95 @genre = sort keys %hash;
97 my $artistcount = $#artist+1;
98 my $albumcount = $#album+1;
99 my $yearcount = $#year+1;
100 my $genrecount = $#genre+1;
102 &Header
::getcgihash
(\
%mpfiresettings);
103 &Header
::openpage
($Lang::tr
{'mpfire'}, 1,);
104 &Header
::openbigbox
('100%', 'left', '', $errormessage);
106 ############################################################################################################################
107 ######################################## Scanne Verzeichnisse nach Mp3 Dateien #############################################
109 if ( $mpfiresettings{'ACTION'} eq "scan" )
111 delete $mpfiresettings{'__CGI__'};delete $mpfiresettings{'x'};delete $mpfiresettings{'y'};delete $mpfiresettings{'PAGE'};
112 &General
::writehash
("${General::swroot}/mpfire/settings", \
%mpfiresettings);
113 open(DATEI
, "<${General::swroot}/mpfire/mpd.conf") || die "Datei nicht gefunden";
114 my @Zeilen = <DATEI
>;
116 open(DATEI
, ">${General::swroot}/mpfire/mpd.conf") || die "Datei nicht gefunden";
118 if ( $_ =~ /music_directory/){print DATEI
"music_directory \"".$mpfiresettings{'MUSICDIR'}."\"\n";}
119 else {print DATEI
$_;}
123 $message=system("/usr/local/bin/mpfirectrl scan 2>/dev/null");
126 elsif ( $mpfiresettings{'ACTION'} eq ">" ){$message=system("/usr/local/bin/mpfirectrl","play","\"$mpfiresettings{'FILE'}\"","2>/dev/null");}
127 elsif ( $mpfiresettings{'ACTION'} eq "x" ){$message=system("/usr/local/bin/mpfirectrl stop 2>/dev/null");}
128 elsif ( $mpfiresettings{'ACTION'} eq "|>" ){$message=system("/usr/local/bin/mpfirectrl toggle 2>/dev/null");}
129 elsif ( $mpfiresettings{'ACTION'} eq "<<" ){$message=system("/usr/local/bin/mpfirectrl prev 2>/dev/null");}
130 elsif ( $mpfiresettings{'ACTION'} eq ">>" ){$message=system("/usr/local/bin/mpfirectrl next 2>/dev/null");}
131 elsif ( $mpfiresettings{'ACTION'} eq "+" ){$message=system("/usr/local/bin/mpfirectrl volup 5 2>/dev/null");}
132 elsif ( $mpfiresettings{'ACTION'} eq "-" ){$message=system("/usr/local/bin/mpfirectrl voldown 5 2>/dev/null");}
133 elsif ( $mpfiresettings{'ACTION'} eq "++" ){$message=system("/usr/local/bin/mpfirectrl volup 10 2>/dev/null");}
134 elsif ( $mpfiresettings{'ACTION'} eq "--" ){$message=system("/usr/local/bin/mpfirectrl voldown 10 2>/dev/null");}
135 elsif ( $mpfiresettings{'ACTION'} eq "playweb" ){$message=system("/usr/local/bin/mpfirectrl","playweb","\"$mpfiresettings{'FILE'}\"","2>/dev/null");}
136 elsif ( $mpfiresettings{'ACTION'} eq "playlist" ){$message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");}
137 elsif ( $mpfiresettings{'ACTION'} eq "emptyplaylist" ){$message=system("/usr/local/bin/mpfirectrl clearplaylist 2>/dev/null");}
138 elsif ( $mpfiresettings{'ACTION'} eq "addtoplaylist" ){$message=system("/usr/local/bin/mpfirectrl","playadd","\"$mpfiresettings{'FILE'}\"","2>/dev/null");}
139 elsif ( $mpfiresettings{'ACTION'} eq "playall" ){
140 my @temp = ""; my @song = "";
142 foreach (keys(%songs)){
143 @song = split(/\|/,$songs{$_});push(@temp,$song[0])
145 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
149 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
151 elsif ( $mpfiresettings{'ACTION'} eq "playalbum" )
153 my @temp = ""; my @song = ""; my @select = split(/\|/,$mpfiresettings{'album'});
155 foreach (keys(%songs)){
156 @song = split(/\|/,$songs{$_});$song[4] =~ s/\W/ /g;
160 if ( $song[4] =~ /$_/ ){push(@temp,$song[0]);}
164 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
167 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
169 elsif ( $mpfiresettings{'ACTION'} eq "playartist" )
171 my @temp = ""; my @song = ""; my @select = split(/\|/,$mpfiresettings{'artist'});
173 foreach (keys(%songs)){
174 @song = split(/\|/,$songs{$_});$song[2] =~ s/\W/ /g;
178 if ( $song[2] =~ /$_/ ){push(@temp,$song[0]);}
182 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
185 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
187 elsif ( $mpfiresettings{'ACTION'} eq "playyear" )
189 my @temp = ""; my @song = ""; my @select = split(/\|/,$mpfiresettings{'year'});
191 foreach (keys(%songs)){
192 @song = split(/\|/,$songs{$_});$song[6] =~ s/\W/ /g;
196 if ( $song[6] =~ /$_/ ){push(@temp,$song[0]);}
200 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
203 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
205 elsif ( $mpfiresettings{'ACTION'} eq "playgenre" )
207 my @temp = ""; my @song = ""; my @select = split(/\|/,$mpfiresettings{'genre'});
209 foreach (keys(%songs)){
210 @song = split(/\|/,$songs{$_});$song[7] =~ s/\W/ /g;
214 if ( $song[7] =~ /$_/ ){push(@temp,$song[0]);}
218 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
221 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
223 elsif ( $mpfiresettings{'SHOWLIST'} ){delete $mpfiresettings{'__CGI__'};delete $mpfiresettings{'x'};delete $mpfiresettings{'y'};delete $mpfiresettings{'PAGE'};&General
::writehash
("${General::swroot}/mpfire/settings", \
%mpfiresettings);refreshpage
();}
225 ############################################################################################################################
226 ################################### Aufbau der HTML Seite fr globale Sambaeinstellungen ####################################
228 $mpfiresettings{'MUSICDIR'} = "/";
230 &General
::readhash
("${General::swroot}/mpfire/settings", \
%mpfiresettings);
232 ############################################################################################################################
233 ########################################### rekursiv nach neuen Mp3s Scannen ##############################################ä
235 if ( $message ne '0' ) { print "<font color='red'>An Error occured while launching the command</font>"; }
236 elsif ( $message ne "" && $message ne '0' ) { print "<font color='red'>$message</font>"; }
238 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire scanning'});
241 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
242 <table width='95%' cellspacing='0'>
243 <tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'Scan for Files'}</b></td></tr>
244 <tr><td align='left' width='40%'>$Lang::tr{'Scan from Directory'}</td><td align='left'><input type='text' name='MUSICDIR' value='$mpfiresettings{'MUSICDIR'}' size="50" /></td></tr>
245 <tr><td align='center' colspan='2'><input type='hidden' name='ACTION' value='scan' />
246 <input type='image' alt='$Lang::tr{'Scan for Files'}' title='$Lang::tr{'Scan for Files'}' src='/images/edit-find.png' /></td></tr>
253 my $Volume = `/usr/local/bin/mpfirectrl volume 2>/dev/null`;
254 $Volume=~s/<break>/<br \/>/g
;
255 my $stats = `mpc stats | tail -4 2>/dev/null`;
256 $stats=~s/\\/<br \/>/g
258 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire controls'});
260 <iframe height='35' width='100%' src='/cgi-bin/mpfire.cgi?title' scrolling='no' frameborder='no' marginheight='0'></iframe>
261 <table width='95%' cellspacing='0'>
264 my $countsongs=`/usr/local/bin/mpfirectrl stats 2>/dev/null`;
265 print "<tr><td colspan='5' align='center'><b>".$countsongs."</b></td></tr>";
268 <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>
269 <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='<<' /><input type='image' alt='$Lang::tr{'prev'}' title='$Lang::tr{'prev'}' src='/images/media-skip-backward.png' /></form></td>
270 <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><input type='hidden' name='ACTION' value='|>' /><input type='image' alt='$Lang::tr{'toggle'}' title='$Lang::tr{'toggle'}' src='/images/media-resume.png' /></form></td>
271 <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>
272 <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>
276 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>";}
277 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>";}
279 <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>
280 <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>
281 <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>
282 <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>
284 <tr><td colspan='5' align='center'>$Volume</td></tr>
285 <tr><td colspan='5' align='center'><br />$stats</td></tr>
291 &Header
::openbox
('100%', 'center', $Lang::tr
{'quick playlist'});
293 print "<table width='95%' cellspacing='0'>";
294 if ( $#songdb eq '-1' ) {print "<tr><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'artist'}</b></td><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'album'}</b></td></tr>";}
295 else {print "<tr><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'artist'} - ".$artistcount."</b></td><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'album'} - ".$albumcount."</b></td></tr>";}
297 <tr><td align='center'>
298 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
299 <select name='artist' size='8' multiple='multiple' style='width:300px;'>
302 foreach (@artist){if ( $_ ne '' ){print "<option>$_</option>";}}
305 <input type='hidden' name='ACTION' value='playartist' />
306 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
309 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
310 <select name='album' size='8' multiple='multiple' style='width:300px;'>
313 foreach (@album){if ( $_ ne '' ){print "<option>$_</option>";}}
316 <input type='hidden' name='ACTION' value='playalbum' />
317 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
322 if ( $#songdb eq '-1' ) {print "<tr><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'year'}</b></td><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'genre'}</b></td></tr>";}
323 else {print "<tr><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'year'} - ".$yearcount."</b></td><td align='center' bgcolor='$color{'color20'}'><b>$Lang::tr{'genre'} - ".$genrecount."</b></td></tr>";}
325 <tr><td align='center'>
326 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
327 <select name='year' size='8' multiple='multiple' style='width:300px;'>
330 foreach (@year){if ( $_ ne '' ){print "<option>$_</option>";}}
333 <input type='hidden' name='ACTION' value='playyear' />
334 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
337 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
338 <select name='genre' size='8' multiple='multiple' style='width:300px;'>
341 foreach (@genre){if ( $_ ne '' ){print "<option>$_</option>";}}
344 <input type='hidden' name='ACTION' value='playgenre' />
345 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
352 if ( $mpfiresettings{'SHOWLIST'} eq "on" ){
354 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire songs'});
356 <a name="$Lang::tr{'mpfire songs'}"</a>
357 <table width='95%' cellspacing='5'>
358 <tr bgcolor='$color{'color20'}'><td colspan='9' align='left'><b>$Lang::tr{'Existing Files'}</b></td></tr>
359 <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/>
362 my $pages =(int(keys(%songs)/100)+1);
363 for(my $i = 1; $i <= $pages; $i++) {
364 print "<input type='submit' name='PAGE' value='$i' />";
365 if (!($i % 205)){print"<br/>";}
369 <tr><td align='center'></td>
370 <td align='center'><b>$Lang::tr{'artist'}<br/>$Lang::tr{'title'}</b></td>
371 <td align='center'><b>$Lang::tr{'number'}</b></td>
372 <td align='center'><b>$Lang::tr{'album'}</b></td>
373 <td align='center'><b>$Lang::tr{'year'}</b></td>
374 <td align='center'><b>$Lang::tr{'genre'}</b></td>
375 <td align='center'><b>$Lang::tr{'length'}</b></td></tr>
378 my $lines=0;my $i=0;my $begin;my $end;
379 if ( $mpfiresettings{'PAGE'} eq 'all' ){
384 $begin=(($mpfiresettings{'PAGE'}-1) * 100);
385 $end=(($mpfiresettings{'PAGE'} * 100)-1);
387 foreach (keys(%songs)){
388 if (!($i >= $begin && $i <= $end)){
389 # print $begin."->".$i."<-".$end."\n";
391 my @song = split(/\|/,$songs{$_});
392 my $minutes = sprintf ("%.0f", $song[1] / 60 );
393 my $seconds = $song[1] % 60;
395 if ($lines % 2) {print "<tr bgcolor='$color{'color20'}'>";} else {print "<tr bgcolor='$color{'color22'}'>";}
397 <td align='center' style="white-space:nowrap;"><form method='post' action='$ENV{'SCRIPT_NAME'}#$Lang::tr{'mpfire songs'}'><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>
398 <td align='center'>$song[2]<br/>$song[3]</td>
399 <td align='center'>$song[5]</td>
400 <td align='center'>$song[4]</td>
401 <td align='center'>$song[6]</td>
402 <td align='center'>$song[7]</td>
403 <td align='center'>$minutes:$seconds</td></tr>
413 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire playlist'});
415 my @playlist = `mpc playlist 2>/dev/null`;
418 <table width='95%' cellspacing='0'>
419 <tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'current playlist'}</b></td></tr>
420 <tr><td align='center' colspan='2' ><textarea cols='100' rows='10' name='playlist' style='font-size:11px;width:650px;' readonly='readonly'>
423 foreach (@playlist){$_=~s/&/&\;/g;;print $_;}
425 </textarea></td></tr><tr>
427 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
428 <input type='hidden' name='ACTION' value='emptyplaylist' />
429 <input type='image' alt='$Lang::tr{'clear playlist'}' title='$Lang::tr{'clear playlist'}' src='/images/user-trash.png' />
433 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
434 <input type='hidden' name='ACTION' value='playlist' />
435 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
443 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire webradio'});
445 open(DATEI
, "<${General::swroot}/mpfire/webradio") || die "Could not open playlist";
446 my @webradio = <DATEI
>;
450 <table width='95%' cellspacing='0'>
451 <tr bgcolor='$color{'color20'}'><td colspan='9' align='left'><b>$Lang::tr{'webradio playlist'}</b></td></tr>
452 <tr><td align='left'>Stream</td><td colspan='2'></td></tr>
457 my @stream = split(/\|/,$_);
460 if ($lines % 2) {print "<tr bgcolor='$color{'color22'}'>";} else {print "<tr>";}
462 <td align='left'><a href="$stream[2]" target="_blank">$stream[1]</a></td>
463 <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' align='middle' /></form></td>
469 if ($lines % 2) {print "<tr bgcolor='$color{'color22'}'>";} else {print "<tr>";}
471 <td align='center' colspan='2'><form method='post' action='$ENV{'SCRIPT_NAME'}'><br />http://<input type=text name='FILE' value='www.meineradiourl:1234' size='75' />
472 <input type='hidden' name='ACTION' value='playweb' /><input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' align='top' /></form></td>
479 &Header
::closebigbox
();
480 &Header
::closepage
();