From d089ce654c296c9ca887449040942aaaacfc3d95 Mon Sep 17 00:00:00 2001 From: maniacikarus Date: Sun, 14 Oct 2007 15:17:50 +0000 Subject: [PATCH] MPFire CGI Update Fehlende Datei in die Backup Include eingefuegt git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@972 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- config/backup/include | 1 + html/cgi-bin/mpfire.cgi | 27 +++++++++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/config/backup/include b/config/backup/include index f92f6e72a..d7f12759c 100644 --- a/config/backup/include +++ b/config/backup/include @@ -15,6 +15,7 @@ /var/ipfire/dhcp/* /var/ipfire/main/* /var/ipfire/outgoing/rules +/var/ipfire/outgoing/p2protocols /var/ipfire/ovpn /var/ipfire/ppp /var/ipfire/proxy diff --git a/html/cgi-bin/mpfire.cgi b/html/cgi-bin/mpfire.cgi index 704adfccf..8c2cee361 100644 --- a/html/cgi-bin/mpfire.cgi +++ b/html/cgi-bin/mpfire.cgi @@ -41,13 +41,12 @@ my $errormessage = ""; if ( $ENV{'QUERY_STRING'} =~ /title/){ my $song = `/usr/local/bin/mpfirectrl song 2>/dev/null`; if ( $song eq "" ){$song = "None";} -if ( length($song) > 100 ) {$song = substr($song,0,100)."...";} &Header::showhttpheaders(); -print""; +print""; print < - -
-= $song =-
+ + +
-= $song =-
END ; } @@ -257,7 +256,7 @@ $stats=~s/\\/
/g print < - + END ; my $countsongs=`/usr/local/bin/mpfirectrl stats 2>/dev/null`; @@ -451,15 +450,27 @@ print <Stream END ; +my $lines=0; foreach (@webradio){ my @stream = split(/\|/,$_); - print <$stream[1] + $lines++; + if ($lines % 2) {print "";} else {print "";} +print <$stream[1]
END ; } + $lines++; + if ($lines % 2) {print "";} else {print "";} +print < + http:// + + +END +; print ""; &Header::closebox();