[dw-free] move cgi-bin/lj*.pl files into proper modules (in cgi-bin/LJ)
[commit: http://hg.dwscoalition.org/dw-free/rev/27de3f8ccbcd]
http://bugs.dwscoalition.org/show_bug.cgi?id=1726
Whitespace cleanup.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1726
Whitespace cleanup.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/maint/stats.pl
- cgi-bin/LJ/ConfCheck/General.pm
-------------------------------------------------------------------------------- diff -r f43d8294c7c9 -r 27de3f8ccbcd bin/maint/stats.pl --- a/bin/maint/stats.pl Mon Sep 12 15:32:40 2011 +0800 +++ b/bin/maint/stats.pl Mon Sep 12 15:33:33 2011 +0800 @@ -24,10 +24,10 @@ $maint{'genstats'} = sub { - my @which = @_ || qw(users countries + my @which = @_ || qw(users countries states gender clients pop_interests popfaq); - + # popular faq items LJ::Stats::register_stat ({ 'type' => "global", @@ -176,7 +176,7 @@ $ret{'userinfo'}->{'allow_getljnews'}++ if $rec->{'status'} eq "A" && $rec->{'allow_getljnews'} eq "Y"; } - + # userusage query: gets timeupdate,datereg,nowdate my $sth = $db->prepare ("SELECT DATE_FORMAT(timecreate, '%Y-%m-%d') AS 'datereg', " . @@ -191,7 +191,7 @@ # date registered $ret{'newbyday'}->{$rec->{'datereg'}}++ unless $rec->{'datereg'} eq $rec->{'nowdate'}; - + # total user/activity counts $ret{'userinfo'}->{'total'}++; if (my $time = $rec->{'timeupdate'}) { @@ -450,7 +450,7 @@ return { ( map { $_->[0] => $_->[1] } @$rows ) }; } }); - + LJ::Stats::register_stat ({ 'type' => "global", 'jobname' => "supportrank", diff -r f43d8294c7c9 -r 27de3f8ccbcd cgi-bin/LJ/ConfCheck/General.pm --- a/cgi-bin/LJ/ConfCheck/General.pm Mon Sep 12 15:32:40 2011 +0800 +++ b/cgi-bin/LJ/ConfCheck/General.pm Mon Sep 12 15:33:33 2011 +0800 @@ -393,7 +393,7 @@ type => 'array', des => "Array of database roles to be used for slow support queries, in order of precedence." ); - + add_conf('$TALK_ABORT_REGEXP', type => 'regexp', des => "Regular expression which, when matched on incoming comment bodies, kills the comment." --------------------------------------------------------------------------------