X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FLOGlist.pm;h=18cbdcddb1b470bbd7001aabc7c9633fb8e26114;hp=8e55b468016c4c11d472646f8d760cfa46b22993;hb=5b3e6091d542c2e7445d5dd511cdf6e20aec8b8d;hpb=329e870f56fb6572fa697998d33676588034c149 diff --git a/lib/BackupPC/CGI/LOGlist.pm b/lib/BackupPC/CGI/LOGlist.pm index 8e55b46..18cbdcd 100644 --- a/lib/BackupPC/CGI/LOGlist.pm +++ b/lib/BackupPC/CGI/LOGlist.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 2.1.0_CVS, released 3 Jul 2003. +# Version 3.0.0alpha, released 23 Jan 2006. # # See http://backuppc.sourceforge.net. # @@ -53,7 +53,7 @@ sub action $url0 = "&host=${EscURI($host)}"; $hdr = "for host $host"; } else { - $root = "$TopDir/log/LOG"; + $root = "$LogDir/LOG"; $url0 = ""; $hdr = ""; } @@ -74,8 +74,9 @@ sub action $mtimeStr EOF } - Header($Lang->{BackupPC__Log_File_History}); - print (eval("qq{$Lang->{Log_File_History__hdr}}")); + my $content = eval("qq{$Lang->{Log_File_History__hdr}}"); + Header($Lang->{BackupPC__Log_File_History}, + $content, !-f "$TopDir/pc/$host/backups"); Trailer(); }