X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcgi%2Fcount.cgi;h=03993d2f2b837acba57a3731a516a4a335cd6286;hb=07dd400db79b4f8aad1924f0d60449a95d8604f5;hp=0e00e467b50ca3e994b6c3007238503b3b97a7f5;hpb=85b9f44b4df76909e7c95c6325ba403d1eec5f05;p=feisty_meow.git diff --git a/scripts/cgi/count.cgi b/scripts/cgi/count.cgi index 0e00e467..03993d2f 100755 --- a/scripts/cgi/count.cgi +++ b/scripts/cgi/count.cgi @@ -39,18 +39,11 @@ if ($server =~ /^www\./) { # translate some domains into other domains to avoid maintaining multiple # hit count lists for the same sites that have different names. -if ($server =~ /^gruntose\.org/) { - $server =~ s/^gruntose\.org/gruntose.com/; -} -if ($server =~ /^gruntose\.net/) { - $server =~ s/^gruntose\.net/gruntose.com/; -} -if ($server =~ /^cromp\.net/) { - $server =~ s/^cromp\.net/cromp.org/; -} -if ($server =~ /^hoople\.net/) { - $server =~ s/^hoople\.net/hoople.org/; -} +#if ($server =~ /^gruntose\.org/) { +# $server =~ s/^gruntose\.org/gruntose.com/; +#} + +#hmmm: what about koeritz.com / koeritz.org? # # increment count of hit document, but not if I'm the @@ -70,7 +63,7 @@ $counts{$server.$doc}++; # seek(COUNTS, 0, 0); -foreach $file (keys %counts) { +foreach $file (sort {lc $a cmp lc $b} keys %counts) { print COUNTS $counts{$file}, ":", $file, "\n"; }