106 |
|
|
107 |
# XXX LOG |
# XXX LOG |
108 |
print $r->method," ",$url,"\n"; |
print $r->method," ",$url,"\n"; |
109 |
print Dumper($param),"\n" if ($debug); |
print Dumper($param,$mws->{counter}),"\n" if ($debug); |
110 |
|
|
111 |
# is this static page? |
# is this static page? |
112 |
if ($static_html && -f "$static_html/$url") { |
if ($static_html && -f "$static_html/$url") { |
203 |
|
|
204 |
|
|
205 |
# push counters to template |
# push counters to template |
206 |
foreach my $f (qw(from to cc bcc)) { |
foreach my $f (qw(from to cc bcc folder)) { |
207 |
my $h = $mws->counter($f) || next; |
my $h = $mws->counter($f) || next; |
208 |
my @a; |
my @a; |
209 |
foreach my $k (sort { $h->{$b}->{usage} <=> $h->{$a}->{usage} } keys %$h) { |
foreach my $k (sort { $h->{$b}->{usage} <=> $h->{$a}->{usage} } keys %$h) { |