]>
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"
47 "http://www.w3.org/TR/html4/loose.dtd">
48 <meta http-equiv='refresh' content='5'>
49 <head><title>Song</title></head>
51 <table width='95%' cellspacing='0' align='center'>
52 <tr bgcolor='$color{'color20'}'><td align='center'><font color='red' face='Verdana' size='2'>-= $song =-</font></td></tr>
59 &Header
::showhttpheaders
();
61 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
();}
63 $mpfiresettings{'PAGE'} = "1";
65 open(DATEI
, "<${General::swroot}/mpfire/db/mpd.db") || die "No Database found";
69 my @artist; my @album; my @genre; my @year; my $linecount = 0; my %songs;
70 my $key;my $file;my $Time;my $Artist;my $Title;my $Album;my $Track;my $Date;my $Genre;
73 if ( $_ =~ /mtime: / ){
74 $songs{$key}="$file|$Time|$Artist|$Title|$Album|$Track|$Date|$Genre";
75 push(@artist,$Artist);push(@album,$Album);push(@year,$Date);push(@genre,$Genre);
76 $key="";$file="";$Time="";$Artist="";$Title="";$Album="";$Track="";$Date="";$Genre="";
78 elsif ( $_ =~ /key: / ){my @temp = split(/: /,$_);$key=$temp[1];}
79 elsif ( $_ =~ /file: / ){my @temp = split(/: /,$_);$file=$temp[1];}
80 elsif ( $_ =~ /Time: / ){my @temp = split(/: /,$_);$Time=$temp[1];}
81 elsif ( $_ =~ /Artist: / ){my @temp = split(/: /,$_);$Artist=$temp[1];}
82 elsif ( $_ =~ /Title: / ){my @temp = split(/: /,$_);$Title=$temp[1];}
83 elsif ( $_ =~ /Album: / ){my @temp = split(/: /,$_);$Album=$temp[1];}
84 elsif ( $_ =~ /Track: / ){my @temp = split(/: /,$_);$Track=$temp[1];}
85 elsif ( $_ =~ /Date: / ){my @temp = split(/: /,$_);$Date=$temp[1];}
86 elsif ( $_ =~ /Genre: / ){my @temp = split(/: /,$_);$Genre=$temp[1];}
90 my %hash = map{ $_, 1 }@artist;
91 @artist = sort keys %hash;
92 my %hash = map{ $_, 1 }@album;
93 @album = sort keys %hash;
94 my %hash = map{ $_, 1 }@year;
95 @year = sort keys %hash;
96 my %hash = map{ $_, 1 }@genre;
97 @genre = sort keys %hash;
99 my $artistcount = $#artist+1;
100 my $albumcount = $#album+1;
101 my $yearcount = $#year+1;
102 my $genrecount = $#genre+1;
104 &Header
::getcgihash
(\
%mpfiresettings);
105 &Header
::openpage
($Lang::tr
{'mpfire'}, 1,);
106 &Header
::openbigbox
('100%', 'left', '', $errormessage);
108 ############################################################################################################################
109 ######################################## Scanne Verzeichnisse nach Mp3 Dateien #############################################
111 if ( $mpfiresettings{'ACTION'} eq "scan" )
113 delete $mpfiresettings{'__CGI__'};delete $mpfiresettings{'x'};delete $mpfiresettings{'y'};delete $mpfiresettings{'PAGE'};
114 &General
::writehash
("${General::swroot}/mpfire/settings", \
%mpfiresettings);
115 open(DATEI
, "<${General::swroot}/mpfire/mpd.conf") || die "Datei nicht gefunden";
116 my @Zeilen = <DATEI
>;
118 open(DATEI
, ">${General::swroot}/mpfire/mpd.conf") || die "Datei nicht gefunden";
120 if ( $_ =~ /music_directory/){print DATEI
"music_directory \"".$mpfiresettings{'MUSICDIR'}."\"\n";}
121 else {print DATEI
$_;}
125 $message=system("/usr/local/bin/mpfirectrl scan 2>/dev/null");
128 elsif ( $mpfiresettings{'ACTION'} eq ">" ){$message=system("/usr/local/bin/mpfirectrl","play","\"$mpfiresettings{'FILE'}\"","2>/dev/null");}
129 elsif ( $mpfiresettings{'ACTION'} eq "x" ){$message=system("/usr/local/bin/mpfirectrl stop 2>/dev/null");}
130 elsif ( $mpfiresettings{'ACTION'} eq "|>" ){$message=system("/usr/local/bin/mpfirectrl toggle 2>/dev/null");}
131 elsif ( $mpfiresettings{'ACTION'} eq "<<" ){$message=system("/usr/local/bin/mpfirectrl prev 2>/dev/null");}
132 elsif ( $mpfiresettings{'ACTION'} eq ">>" ){$message=system("/usr/local/bin/mpfirectrl next 2>/dev/null");}
133 elsif ( $mpfiresettings{'ACTION'} eq "+" ){$message=system("/usr/local/bin/mpfirectrl volup 5 2>/dev/null");}
134 elsif ( $mpfiresettings{'ACTION'} eq "-" ){$message=system("/usr/local/bin/mpfirectrl voldown 5 2>/dev/null");}
135 elsif ( $mpfiresettings{'ACTION'} eq "++" ){$message=system("/usr/local/bin/mpfirectrl volup 10 2>/dev/null");}
136 elsif ( $mpfiresettings{'ACTION'} eq "--" ){$message=system("/usr/local/bin/mpfirectrl voldown 10 2>/dev/null");}
137 elsif ( $mpfiresettings{'ACTION'} eq "playweb" ){$message=system("/usr/local/bin/mpfirectrl","playweb","\"$mpfiresettings{'FILE'}\"","2>/dev/null");}
138 elsif ( $mpfiresettings{'ACTION'} eq "playlist" ){$message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");}
139 elsif ( $mpfiresettings{'ACTION'} eq "emptyplaylist" ){$message=system("/usr/local/bin/mpfirectrl clearplaylist 2>/dev/null");}
140 elsif ( $mpfiresettings{'ACTION'} eq "addtoplaylist" ){$message=system("/usr/local/bin/mpfirectrl","playadd","\"$mpfiresettings{'FILE'}\"","2>/dev/null");}
141 elsif ( $mpfiresettings{'ACTION'} eq "playall" ){
142 my @temp = ""; my @song = "";
144 foreach (keys(%songs)){
145 @song = split(/\|/,$songs{$_});push(@temp,$song[0])
147 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
151 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
153 elsif ( $mpfiresettings{'ACTION'} eq "playalbum" )
155 my @temp = ""; my @song = ""; my @select = split(/\|/,$mpfiresettings{'album'});
157 foreach (keys(%songs)){
158 @song = split(/\|/,$songs{$_});$song[4] =~ s/\W/ /g;
162 if ( $song[4] =~ /$_/ ){push(@temp,$song[0]);}
166 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
169 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
171 elsif ( $mpfiresettings{'ACTION'} eq "playartist" )
173 my @temp = ""; my @song = ""; my @select = split(/\|/,$mpfiresettings{'artist'});
175 foreach (keys(%songs)){
176 @song = split(/\|/,$songs{$_});$song[2] =~ s/\W/ /g;
180 if ( $song[2] =~ /$_/ ){push(@temp,$song[0]);}
184 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
187 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
189 elsif ( $mpfiresettings{'ACTION'} eq "playyear" )
191 my @temp = ""; my @song = ""; my @select = split(/\|/,$mpfiresettings{'year'});
193 foreach (keys(%songs)){
194 @song = split(/\|/,$songs{$_});$song[6] =~ s/\W/ /g;
198 if ( $song[6] =~ /$_/ ){push(@temp,$song[0]);}
202 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
205 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
207 elsif ( $mpfiresettings{'ACTION'} eq "playgenre" )
209 my @temp = ""; my @song = ""; my @select = split(/\|/,$mpfiresettings{'genre'});
211 foreach (keys(%songs)){
212 @song = split(/\|/,$songs{$_});$song[7] =~ s/\W/ /g;
216 if ( $song[7] =~ /$_/ ){push(@temp,$song[0]);}
220 open(DATEI
, ">${General::swroot}/mpfire/playlist.m3u") || die "Could not add playlist";
223 $message=system("/usr/local/bin/mpfirectrl playlist 2>/dev/null");
225 elsif ( $mpfiresettings{'SHOWLIST'} ){delete $mpfiresettings{'__CGI__'};delete $mpfiresettings{'x'};delete $mpfiresettings{'y'};delete $mpfiresettings{'PAGE'};&General
::writehash
("${General::swroot}/mpfire/settings", \
%mpfiresettings);refreshpage
();}
227 ############################################################################################################################
228 ################################### Aufbau der HTML Seite fr globale Sambaeinstellungen ####################################
230 $mpfiresettings{'MUSICDIR'} = "/";
232 &General
::readhash
("${General::swroot}/mpfire/settings", \
%mpfiresettings);
234 ############################################################################################################################
235 ########################################### rekursiv nach neuen Mp3s Scannen ##############################################ä
237 if ( $message ne '0' ) { print "<font color='red'>An Error occured while launching the command</font>"; }
238 elsif ( $message ne "" && $message ne '0' ) { print "<font color='red'>$message</font>"; }
240 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire scanning'});
243 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
244 <table width='95%' cellspacing='0'>
245 <tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'Scan for Files'}</b></td></tr>
246 <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>
247 <tr><td align='center' colspan='2'><input type='hidden' name='ACTION' value='scan' />
248 <input type='image' alt='$Lang::tr{'Scan for Files'}' title='$Lang::tr{'Scan for Files'}' src='/images/edit-find.png' /></td></tr>
255 my $Volume = `/usr/local/bin/mpfirectrl volume 2>/dev/null`;
256 $Volume=~s/<break>/<br \/>/g
;
257 my $stats = `mpc stats | tail -4 2>/dev/null`;
258 $stats=~s/\\/<br \/>/g
260 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire controls'});
262 <iframe height='35' width='100%' src='/cgi-bin/mpfire.cgi?title' scrolling='no' frameborder='no' marginheight='0'></iframe>
263 <table width='95%' cellspacing='0'>
266 my $countsongs=`/usr/local/bin/mpfirectrl stats 2>/dev/null`;
267 print "<tr><td colspan='5' align='center'><b>".$countsongs."</b></td></tr>";
270 <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>
271 <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>
272 <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>
273 <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>
274 <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>
278 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>";}
279 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>";}
281 <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>
282 <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>
283 <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>
284 <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>
286 <tr><td colspan='5' align='center'>$Volume</td></tr>
287 <tr><td colspan='5' align='center'><br />$stats</td></tr>
293 &Header
::openbox
('100%', 'center', $Lang::tr
{'quick playlist'});
295 print "<table width='95%' cellspacing='0'>";
296 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>";}
297 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>";}
299 <tr><td align='center'>
300 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
301 <select name='artist' size='8' multiple='multiple' style='width:300px;'>
304 foreach (@artist){if ( $_ ne '' ){print "<option>$_</option>";}}
307 <input type='hidden' name='ACTION' value='playartist' />
308 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
311 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
312 <select name='album' size='8' multiple='multiple' style='width:300px;'>
315 foreach (@album){if ( $_ ne '' ){print "<option>$_</option>";}}
318 <input type='hidden' name='ACTION' value='playalbum' />
319 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
324 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>";}
325 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>";}
327 <tr><td align='center'>
328 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
329 <select name='year' size='8' multiple='multiple' style='width:300px;'>
332 foreach (@year){if ( $_ ne '' ){print "<option>$_</option>";}}
335 <input type='hidden' name='ACTION' value='playyear' />
336 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
339 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
340 <select name='genre' size='8' multiple='multiple' style='width:300px;'>
343 foreach (@genre){if ( $_ ne '' ){print "<option>$_</option>";}}
346 <input type='hidden' name='ACTION' value='playgenre' />
347 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
354 if ( $mpfiresettings{'SHOWLIST'} eq "on" ){
356 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire songs'});
358 <a name="$Lang::tr{'mpfire songs'}"</a>
359 <table width='95%' cellspacing='5'>
360 <tr bgcolor='$color{'color20'}'><td colspan='9' align='left'><b>$Lang::tr{'Existing Files'}</b></td></tr>
361 <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/>
364 my $pages =(int(keys(%songs)/100)+1);
365 for(my $i = 1; $i <= $pages; $i++) {
366 print "<input type='submit' name='PAGE' value='$i' />";
367 if (!($i % 205)){print"<br/>";}
371 <tr><td align='center'></td>
372 <td align='center'><b>$Lang::tr{'artist'}<br/>$Lang::tr{'title'}</b></td>
373 <td align='center'><b>$Lang::tr{'number'}</b></td>
374 <td align='center'><b>$Lang::tr{'album'}</b></td>
375 <td align='center'><b>$Lang::tr{'year'}</b></td>
376 <td align='center'><b>$Lang::tr{'genre'}</b></td>
377 <td align='center'><b>$Lang::tr{'length'}</b></td></tr>
380 my $lines=0;my $i=0;my $begin;my $end;
381 if ( $mpfiresettings{'PAGE'} eq 'all' ){
386 $begin=(($mpfiresettings{'PAGE'}-1) * 100);
387 $end=(($mpfiresettings{'PAGE'} * 100)-1);
389 foreach (keys(%songs)){
390 if (!($i >= $begin && $i <= $end)){
391 # print $begin."->".$i."<-".$end."\n";
393 my @song = split(/\|/,$songs{$_});
394 my $minutes = sprintf ("%.0f", $song[1] / 60 );
395 my $seconds = $song[1] % 60;
397 if ($lines % 2) {print "<tr bgcolor='$color{'color20'}'>";} else {print "<tr bgcolor='$color{'color22'}'>";}
399 <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>
400 <td align='center'>$song[2]<br/>$song[3]</td>
401 <td align='center'>$song[5]</td>
402 <td align='center'>$song[4]</td>
403 <td align='center'>$song[6]</td>
404 <td align='center'>$song[7]</td>
405 <td align='center'>$minutes:$seconds</td></tr>
415 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire playlist'});
417 my @playlist = `mpc playlist 2>/dev/null`;
420 <table width='95%' cellspacing='0'>
421 <tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'current playlist'}</b></td></tr>
422 <tr><td align='center' colspan='2' ><textarea cols='100' rows='10' name='playlist' style='font-size:11px;width:650px;' readonly='readonly'>
425 foreach (@playlist){$_=~s/&/&\;/g;;print $_;}
427 </textarea></td></tr><tr>
429 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
430 <input type='hidden' name='ACTION' value='emptyplaylist' />
431 <input type='image' alt='$Lang::tr{'clear playlist'}' title='$Lang::tr{'clear playlist'}' src='/images/user-trash.png' />
435 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
436 <input type='hidden' name='ACTION' value='playlist' />
437 <input type='image' alt='$Lang::tr{'play'}' title='$Lang::tr{'play'}' src='/images/media-playback-start.png' />
445 &Header
::openbox
('100%', 'center', $Lang::tr
{'mpfire webradio'});
447 open(DATEI
, "<${General::swroot}/mpfire/webradio") || die "Could not open playlist";
448 my @webradio = <DATEI
>;
452 <table width='95%' cellspacing='0'>
453 <tr bgcolor='$color{'color20'}'><td colspan='9' align='left'><b>$Lang::tr{'webradio playlist'}</b></td></tr>
454 <tr><td align='left'>Stream</td><td colspan='2'></td></tr>
459 my @stream = split(/\|/,$_);
462 if ($lines % 2) {print "<tr bgcolor='$color{'color22'}'>";} else {print "<tr>";}
464 <td align='left'><a href="$stream[2]" target="_blank">$stream[1]</a></td>
465 <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>
471 if ($lines % 2) {print "<tr bgcolor='$color{'color22'}'>";} else {print "<tr>";}
473 <td align='left'><form method='post' action='$ENV{'SCRIPT_NAME'}'>http://<input type=text name='FILE' value='www.meineradiourl:1234' size='75' /></form></td>
474 <td align='center'><form method='post' action='$ENV{'SCRIPT_NAME'}'><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>
481 &Header
::closebigbox
();
482 &Header
::closepage
();