X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FSummary.pm;h=fd2444cee335060cae18e270eea5402b94093bfd;hp=50e730b380c32da02625331b6c81b4de6c0b7579;hb=8f5625f9cdf47f8e04be654c4954838b2df3e26d;hpb=a7e968ce327855f2ba2624ca8517069a936c9b5b diff --git a/lib/BackupPC/CGI/Summary.pm b/lib/BackupPC/CGI/Summary.pm index 50e730b..fd2444c 100644 --- a/lib/BackupPC/CGI/Summary.pm +++ b/lib/BackupPC/CGI/Summary.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 2.1.0_CVS, released 3 Jul 2003. +# Version 2.1.0beta0, released 20 Mar 2004. # # See http://backuppc.sourceforge.net. # @@ -48,21 +48,17 @@ sub action GetStatusInfo("hosts"); my $Privileged = CheckPermission(); - foreach my $host ( GetUserHosts() ) { ## give access to users hosts only - ## foreach my $host ( sort(keys(%Status)) ) { + foreach my $host ( GetUserHosts(1) ) { my($fullDur, $incrCnt, $incrAge, $fullSize, $fullRate, $reasonHilite); my($shortErr); my @Backups = $bpc->BackupInfoRead($host); my $fullCnt = $incrCnt = 0; my $fullAge = $incrAge = -1; - if ( defined(my $error = $bpc->ConfigRead($host)) ) { - print("dump failed: Can't read PC's config file: $error\n"); - exit(1); - } + $bpc->ConfigRead($host); %Conf = $bpc->Conf(); - if ($Conf{XferMethod} eq "archive" ) { + if ( $Conf{XferMethod} eq "archive" ) { next; }