X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FLib.pm;h=683dd5879386d43c20206934ff602f79eddd11c7;hp=f68970056e3259f9b8c5388ff2aff75637ca0e2d;hb=3ae3b7557db4829ebfc6f580ceac30376717db6a;hpb=375af98436b4cea9b325ce2aa00408737ac76bb0 diff --git a/lib/BackupPC/CGI/Lib.pm b/lib/BackupPC/CGI/Lib.pm index f689700..683dd58 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.0_CVS, released 13 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,23 +449,20 @@ 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 <