From 98ab7f505a6e98267abf5618d774829f94af2841 Mon Sep 17 00:00:00 2001 From: maniacikarus Date: Sat, 27 Oct 2007 12:51:42 +0000 Subject: [PATCH] Fixed Backup CGI Removed Kaspersky from Update Booster git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1006 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- config/updxlrator/updxlrator | 11 ++++++----- doc/ChangeLog | 28 ++++++++++++++++++++++++++++ html/cgi-bin/backup.cgi | 19 ++++++++++++------- 3 files changed, 46 insertions(+), 12 deletions(-) diff --git a/config/updxlrator/updxlrator b/config/updxlrator/updxlrator index 3edf4a67e7..33f8d89eff 100644 --- a/config/updxlrator/updxlrator +++ b/config/updxlrator/updxlrator @@ -156,13 +156,14 @@ while (<>) { } # ----------------------------------------------------------- - # Section: Kaspersky Downloads + # Section: Kaspersky Downloads + # not working properly # ----------------------------------------------------------- - if ($dsturl =~ m@^http://dnl-.*\.kaspersky-labs\.com\/(diffs|bases|AutoPatches).*$@i) - { - $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Kaspersky"); - } + #if ($dsturl =~ m@^http://dnl-.*\.kaspersky-labs\.com\/(diffs|bases|AutoPatches).*$@i) + #{ + #$from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Kaspersky"); + #} # ----------------------------------------------------------- diff --git a/doc/ChangeLog b/doc/ChangeLog index 5088629dfd..b37e88197c 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,31 @@ +------------------------------------------------------------------------ +r1005 | ms | 2007-10-27 13:02:37 +0400 (Sat, 27 Oct 2007) | 2 lines + +Made the website compatible to XHTML. + +------------------------------------------------------------------------ +r1004 | ms | 2007-10-27 11:48:17 +0400 (Sat, 27 Oct 2007) | 2 lines + +The hplip tool was added for printing with HP. + +------------------------------------------------------------------------ +r1003 | ms | 2007-10-27 02:28:09 +0400 (Sat, 27 Oct 2007) | 2 lines + +You need to change the version in the pakfire.conf, too. + +------------------------------------------------------------------------ +r1002 | ms | 2007-10-27 02:26:23 +0400 (Sat, 27 Oct 2007) | 4 lines + +Added some custom patches for openswan +tagged rc2 +fixed red and cleanfs by arne + +------------------------------------------------------------------------ +r1001 | maniacikarus | 2007-10-26 22:09:41 +0400 (Fri, 26 Oct 2007) | 3 lines + +corrected mpfire stream url +changed some directories for backup + ------------------------------------------------------------------------ r1000 | ms | 2007-10-26 19:14:59 +0400 (Fri, 26 Oct 2007) | 2 lines diff --git a/html/cgi-bin/backup.cgi b/html/cgi-bin/backup.cgi index 2d84b70b68..0e29ace5fd 100644 --- a/html/cgi-bin/backup.cgi +++ b/html/cgi-bin/backup.cgi @@ -182,12 +182,18 @@ END &Header::openbox('100%', 'center', 'addons'); my @addonincluds = `ls /var/ipfire/backup/addons/includes/ 2>/dev/null`; -my %addons = `ls /var/ipfire/backup/addons/backup/ 2>/dev/null`; +my @addons = `ls /var/ipfire/backup/addons/backup/ 2>/dev/null`; +my %addons; + +foreach (@addons){ + my $addon=substr($_,0,length($_)-5); + $addons{$addon}=''; +} print ""; foreach (@addonincluds){ chomp($_); -delete($addons{$_."\.ipf\n"}); +delete $addons{$_}; my $Datei = "/var/ipfire/backup/addons/backup/".$_.".ipf"; my @Info = stat($Datei); my $Size = $Info[7] / 1024; @@ -228,24 +234,23 @@ END } foreach (keys(%addons)){ chomp($_); -my $Datei = "/var/ipfire/backup/addons/backup/".$_; +my $Datei = "/var/ipfire/backup/addons/backup/".$_.".ipf"; my @Info = stat($Datei); my $Size = $Info[7] / 1024; $Size = sprintf("%2d", $Size); -my $addon=substr($_,0,length($_)-4); -print ""; +print ""; print <
- +
-- 2.39.2
$Lang::tr{'backup from'} $addon $Lang::tr{'size'} $Size KB $Lang::tr{'date'} ".localtime($Info[9])."
$Lang::tr{'backup from'} $_ $Lang::tr{'size'} $Size KB $Lang::tr{'date'} ".localtime($Info[9])."
- +