Welcome, Guest. Please login or register.
Did you miss your activation email?
Wednesday 20 November 2024, 09:37:23 am

Login with username, password and session length

Get the new Updates directly from Endian  HERE
14258 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 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to apply patch?  (Read 6344 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.063 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com