X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Fbin%2Fdetail.cgi;h=2da6965042e8f06df7bce646446b2658d51ccd71;hb=54fdcfd0cdc71457e3fae07fa28854546cf46e70;hp=12abc731324c64765f32aac5ec8de0aedd6da69e;hpb=e01a0154aa68c56ffa206646041ea7a965ad93cc;p=clearscm.git
diff --git a/maps/bin/detail.cgi b/maps/bin/detail.cgi
index 12abc73..2da6965 100755
--- a/maps/bin/detail.cgi
+++ b/maps/bin/detail.cgi
@@ -11,7 +11,8 @@
#
# (c) Copyright 2000-2006, Andrew@DeFaria.com, all rights reserved.
#
-################################################################################use strict;
+################################################################################
+use strict;
use warnings;
use MIME::Words qw(:all);
@@ -173,17 +174,17 @@ sub PrintTable {
foreach my $sender (ReturnSenders $userid, $type, $next, $lines, $date) {
my @msgs = ReturnMessages $userid, $sender;
my @msgs2 = @msgs;
+ my ($onlist, $seq);
+ my $rule = 'none';
+ my $hit_count = 0;
- my ($onlist, $rule);
- $rule = 'none';
-
- ($onlist, $rule) = OnWhitelist $sender;
+ ($onlist, $rule, $seq, $hit_count) = OnWhitelist $sender, $userid, 0;
unless ($onlist) {
- ($onlist, $rule) = OnBlacklist $sender;
+ ($onlist, $rule, $seq, $hit_count) = OnBlacklist $sender, 0;
unless ($onlist) {
- ($onlist, $rule) = OnNulllist $sender;
+ ($onlist, $rule, $seq, $hit_count) = OnNulllist $sender, 0;
} # unless
} # unless
@@ -194,7 +195,7 @@ sub PrintTable {
if ($rule =~ /(\w+):(\d+)/) {
my $list = $1;
my $sequence = $2 - 1;
- my $link = "$list:$2";
+ my $link = "$list:$2/$hit_count";
$rule =~ s/\w+:\d+/$link/;
} # if
@@ -294,6 +295,7 @@ sub PrintTable {
} # PrintTable
# Main
+my $condition;
my @scripts = ('ListActions.js');
my $heading_date =$date ne '' ? ' on ' . FormatDate ($date) : '';