]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Changed snort last update time to perl function.
authorChristian Schmidt <maniacikarus@ipfire.org>
Mon, 10 Jan 2011 22:04:29 +0000 (23:04 +0100)
committerChristian Schmidt <maniacikarus@ipfire.org>
Mon, 10 Jan 2011 22:04:29 +0000 (23:04 +0100)
html/cgi-bin/ids.cgi

index 8c219ae6ebeec8cf8eccf134d0df8cc9af453310..7567fd06e593bc00e156a51f0ed35e57f226f14d 100644 (file)
@@ -539,7 +539,8 @@ print <<END
 END
 ;
 if ( -e "/var/tmp/snortrules.tar.gz"){
 END
 ;
 if ( -e "/var/tmp/snortrules.tar.gz"){
-       $snortsettings{'INSTALLDATE'} = `ls -la /var/tmp/snortrules.tar.gz  | cut -d" " -f6-8`;
+       my @Info = stat("/var/tmp/snortrules.tar.gz");
+       $snortsettings{'INSTALLDATE'} = localtime($Info[9]);
 }
 print "&nbsp;$Lang::tr{'updates installed'}: $snortsettings{'INSTALLDATE'}</td>";
 
 }
 print "&nbsp;$Lang::tr{'updates installed'}: $snortsettings{'INSTALLDATE'}</td>";