X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Flogs.cgi%2Flog.dat;h=c0da266f15849efb802071d995b86fe9b435e855;hp=8405c8fbbb140e0b424cbdcf30e74703d9dcc519;hb=0e14ef8a3b7aa5faa6e1febbd240f4e726ec892e;hpb=0eafc0ef131b5873af26a30a30c9d22ca94c512b diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat index 8405c8fbbb..c0da266f15 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -26,10 +26,6 @@ my %mainsettings = (); use POSIX(); -#workaround to suppress a warning when a variable is used only once -my @dummy = ( ${Header::table2colour} ); -undef (@dummy); - my %cgiparams=(); my %logsettings=(); my $errormessage = ''; @@ -64,7 +60,7 @@ my %sections = ( 'ssh' => '(sshd(?:\(.*\))?\[.*\]: )', 'auth' => '(\w+\(pam_unix\)\[.*\]: )', 'kernel' => '(kernel: (?!DROP_))', - 'ipsec' => '(ipsec_[\w_]+: |pluto\[.*\]: |vpnwatch: )', + 'ipsec' => '(ipsec_[\w_]+: |pluto\[.*\]: |charon: |vpnwatch: )', 'openvpn' => '(openvpnserver)\[.*\]: ', 'pakfire' => '(pakfire:) ', 'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:) ' @@ -171,7 +167,7 @@ my $date = $cgiparams{'DAY'} == 0 ? '' : $cgiparams{'DAY'} <= 9 ? "0$cgiparams{ # calculate end of active week (saturday 23H59) my @then = (); @then = localtime(time()); - my $sunday = POSIX::mktime( 0, 0, 0, @then[3], @then[4], @then[5]); + my $sunday = POSIX::mktime( 0, 0, 0, $then[3], $then[4], $then[5]); $sunday += (6-$then[6]) * 86400; # Convert delta in second to full weeks