projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
less output
[BackupPC.git]
/
lib
/
BackupPC
/
CGI
/
Browse.pm
diff --git
a/lib/BackupPC/CGI/Browse.pm
b/lib/BackupPC/CGI/Browse.pm
index
e327b05
..
b0703ca
100644
(file)
--- a/
lib/BackupPC/CGI/Browse.pm
+++ b/
lib/BackupPC/CGI/Browse.pm
@@
-10,7
+10,7
@@
# Craig Barratt <cbarratt@users.sourceforge.net>
#
# COPYRIGHT
# Craig Barratt <cbarratt@users.sourceforge.net>
#
# COPYRIGHT
-# Copyright (C) 2003 Craig Barratt
+# Copyright (C) 2003
-2009
Craig Barratt
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@
-28,7
+28,7
@@
#
#========================================================================
#
#
#========================================================================
#
-# Version 3.
0.0beta1, released 30 Jul 2006
.
+# Version 3.
2.0, released 31 Jul 2010
.
#
# See http://backuppc.sourceforge.net.
#
#
# See http://backuppc.sourceforge.net.
#
@@
-37,7
+37,7
@@
package BackupPC::CGI::Browse;
use strict;
package BackupPC::CGI::Browse;
use strict;
-use Encode;
+use Encode
qw/decode_utf8/
;
use BackupPC::CGI::Lib qw(:all);
use BackupPC::View;
use BackupPC::Attrib qw(:all);
use BackupPC::CGI::Lib qw(:all);
use BackupPC::View;
use BackupPC::Attrib qw(:all);
@@
-65,7
+65,7
@@
sub action
#
# default to the newest backup
#
#
# default to the newest backup
#
- if ( !defined($In{num}) && defined(@Backups) ) {
+ if ( !defined($In{num}) && defined(@Backups)
&& @Backups > 0
) {
$i = @Backups - 1;
$num = $Backups[$i]{num};
}
$i = @Backups - 1;
$num = $Backups[$i]{num};
}
@@
-80,7
+80,7
@@
sub action
my $backupTime = timeStamp2($Backups[$i]{startTime});
my $backupAge = sprintf("%.1f", (time - $Backups[$i]{startTime})
/ (24 * 3600));
my $backupTime = timeStamp2($Backups[$i]{startTime});
my $backupAge = sprintf("%.1f", (time - $Backups[$i]{startTime})
/ (24 * 3600));
- my $view = BackupPC::View->new($bpc, $host, \@Backups);
+ my $view = BackupPC::View->new($bpc, $host, \@Backups
, {nlink => 1}
);
if ( $dir eq "" || $dir eq "." || $dir eq ".." ) {
$attr = $view->dirAttrib($num, "", "");
if ( $dir eq "" || $dir eq "." || $dir eq ".." ) {
$attr = $view->dirAttrib($num, "", "");
@@
-204,7
+204,7
@@
EOF
$a->{type});
my $modeStr = sprintf("0%o", $a->{mode} & 07777);
$iconStr = <<EOF;
$a->{type});
my $modeStr = sprintf("0%o", $a->{mode} & 07777);
$iconStr = <<EOF;
-<img src="$Conf{CgiImageDirURL}/icon-$typeStr.
gif" align="center
">
+<img src="$Conf{CgiImageDirURL}/icon-$typeStr.
png" valign="top
">
EOF
$attrStr .= <<EOF;
<td align="center" class="fviewborder">$typeStr</td>
EOF
$attrStr .= <<EOF;
<td align="center" class="fviewborder">$typeStr</td>
@@
-301,7
+301,8
@@
EOF
}
$filledBackup .= eval("qq{$Lang->{Visit_this_directory_in_backup}}");
}
}
$filledBackup .= eval("qq{$Lang->{Visit_this_directory_in_backup}}");
}
- $dir = decode_utf8($dir);
+ $dir = decode_utf8($dir);
+ $share = decode_utf8($share);
my $content = eval("qq{$Lang->{Backup_browse_for__host}}");
Header(eval("qq{$Lang->{Browse_backup__num_for__host}}"), $content);
Trailer();
my $content = eval("qq{$Lang->{Backup_browse_for__host}}");
Header(eval("qq{$Lang->{Browse_backup__num_for__host}}"), $content);
Trailer();