X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FLib.pm;h=aee4743082b3f8b53d4f14cbdf5098e9b20ee30b;hp=6a9ad1b622367ddb09f3261bd11a7a8b570f53bc;hb=ce708288691ba7dd95a8dac7a468bc0e4c1d6588;hpb=2c14784ad71874ec850d189060fe63d6eb9eba95 diff --git a/lib/BackupPC/CGI/Lib.pm b/lib/BackupPC/CGI/Lib.pm index 6a9ad1b..aee4743 100644 --- a/lib/BackupPC/CGI/Lib.pm +++ b/lib/BackupPC/CGI/Lib.pm @@ -29,7 +29,7 @@ # #======================================================================== # -# Version 2.1.0_CVS, released 8 Feb 2004. +# Version 2.1.0beta0, released 20 Mar 2004. # # See http://backuppc.sourceforge.net. # @@ -387,7 +387,7 @@ sub ConfirmIPAddress sub Header { - my($title, $content, $noBrowse) = @_; + my($title, $content, $noBrowse, $contentSub, $contentPost) = @_; my @adminLinks = ( { link => "", name => $Lang->{Status}, priv => 1}, @@ -449,24 +449,21 @@ EOF NavLink("?action=view&type=config&host=${EscURI($host)}", $Lang->{Config_file}, " class=\"navbar\""); } - print < -
-$content -


-
-\n"; + } + print("
\n$content\n"); + if ( defined($contentSub) && ref($contentSub) eq "CODE" ) { + while ( (my $s = &$contentSub()) ne "" ) { + print($s); + } + } + print($contentPost) if ( defined($contentPost) ); + print <