diff --git a/itsecur-firewall/list_report.cgi b/itsecur-firewall/list_report.cgi index f815c3549..e5de62abf 100755 --- a/itsecur-firewall/list_report.cgi +++ b/itsecur-firewall/list_report.cgi @@ -8,7 +8,8 @@ use POSIX; print "Refresh: $config{'refresh'}\r\n" if ($config{'refresh'}); &header($text{'report_title'}, ""); -print "
";
- printf "%s\n",
- $prog, $s - $config{'perpage'},
- "
";
- }
- print "",&text('report_pos', $s+1, $e+1,
- scalar(@logs)),"\n";
+ print &ui_link($prog."start=0",
+ "
" );
+ print &ui_link($prog."start=".($s - $config{'perpage'}),
+ "
" );
+ }
+ print "".&text('report_pos', $s+1, $e+1, scalar(@logs))."\n";
if ($e < @logs-1) {
- printf "%s\n",
- $prog, $s + $config{'perpage'},
- "
";
- printf "%s\n",
- $prog, int((@logs-1)/$config{'perpage'})*$config{'perpage'},
- "
";
+ print &ui_link($prog."start=".($s + $config{'perpage'}),
+ "
" );
+ print &ui_link($prog."start=".(int((@logs-1)/$config{'perpage'})*$config{'perpage'}),
+ "
" );
}
print "\n";
}
@@ -172,35 +158,33 @@ if (@logs) {
$e = @logs - 1;
}
- print "| $text{'report_action'} | ", - "$text{'report_rule2'} | ", - "$text{'report_date'} | ", - "$text{'report_time'} | ", - "$text{'report_src'} | ", - "$text{'report_dst'} | ", - "$text{'report_dst_iface'} | ", - "$text{'report_proto'} | ", - "$text{'report_src_port'} | ", - "$text{'report_dst_port'} | ", - "
| ",$text{'rule_'.$l->{'action'}}," | \n"; - print "",$l->{'rule'} || " "," | \n";
- local @tm = localtime($l->{'time'});
- print "",strftime("%d/%m/%Y", @tm)," | \n"; - print "",strftime("%H:%M:%S", @tm)," | \n"; - print "",$l->{'src'}," | \n"; - print "",$l->{'dst'}," | \n"; - print "",$l->{'dst_iface'} || " "," | \n";
- print "",$l->{'proto'} || " "," | \n";
- print "",$l->{'src_port'} || " "," | \n";
- print "",$l->{'dst_port'} || " "," | \n";
- print "
\n"; @@ -210,36 +194,34 @@ else { } -print "