Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 16 November 2024, 07:35:26 am

Login with username, password and session length

Download the latest community FREE version  HERE
14255 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  How to apply patch?
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to apply patch?  (Read 6315 times)
vondie
Full Member
***
Offline Offline

Posts: 22


« on: Saturday 09 October 2010, 12:05:13 am »

How to apply the following patch?

----------------------------------------------------------------------
Index: ids.cgi
===================================================================
--- ids.cgi (revision 23991)
+++ ids.cgi (working copy)
@@ -245,14 +245,14 @@
     if (-e $conffile) {
         readhash($conffile, \%timeconf);
     }
- if ($conf->{'TIMEZONE'} =~ /^$/) {
+ if ($timeconf{'TIMEZONE'} =~ /^$/) {
         my %mainhash = ();
         my $mainconf = \%mainhash;
         readhash($mainsettings, $mainconf);
- $conf->{'TIMEZONE'} = $mainconf->{'TIMEZONE'};
- $conf->{'TIMEZONE'} =~ s+/usr/share/zoneinfo/(posix/)?++;
+ $timeconf{'TIMEZONE'} = $mainconf->{'TIMEZONE'};
+ $timeconf{'TIMEZONE'} =~ s+/usr/share/zoneinfo/(posix/)?++;
     }
- my $tz = DateTime::TimeZone->new( name => $conf->{'TIMEZONE'} );
+ my $tz = DateTime::TimeZone->new( name => $timeconf{'TIMEZONE'} );
     $dt->set_time_zone($tz);
     return $dt->strftime("%d.%m.%Y, %H:%M:%S");
 }
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.031 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com