3 $trust_unknown_referers = 1;
4 require './itsecur-lib.pl';
5 &can_use_error("logs");
8 $SIG{'HUP'} = sub { print "got HUP!\n"; };
9 $log = $config{'log'} || &get_log_file();
10 print "Content-type: text/plain\n\n";
12 # Get all the firewall log lines
15 push(@log, $_) if (&is_log_line($_));
16 shift(@log) if (@log > 20);
19 # Show the last 20, and keep tailing
24 print $line if ($line && &is_log_line($line));