Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/spotweb/spotweb_cat_average | ||
|---|---|---|
| 6 | 6 |
# |
| 7 | 7 |
# Spotweb : http://github.com/spotweb/spotweb |
| 8 | 8 |
# |
| 9 |
# This program is free software: you can redistribute it and/or modify
|
|
| 9 |
# This program is free software: you can redistribute it and/or modify |
|
| 10 | 10 |
# it under the terms of the GNU General Public License as published by |
| 11 | 11 |
# the Free Software Foundation, either version 3 of the License, or |
| 12 | 12 |
# (at your option) any later version. |
| ... | ... | |
| 69 | 69 |
|
| 70 | 70 |
|
| 71 | 71 |
# Output of values. We just call a subroutine here to prevent much duplicate code |
| 72 |
if($COUNTPORN eq 'yes') {
|
|
| 72 |
if($COUNTPORN eq 'yes') {
|
|
| 73 | 73 |
&print_value(0); |
| 74 | 74 |
} |
| 75 |
else {
|
|
| 75 |
else {
|
|
| 76 | 76 |
# 11-04-2011 - New pr0n filters |
| 77 | 77 |
# &print_value(0, " AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%'"); |
| 78 |
&print_value(0, " AND subcatz NOT LIKE '%4%' AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%' AND subcatd NOT LIKE '%72%' AND subcatd NOT LIKE '%73%' AND subcatd NOT LIKE '%74%' AND subcatd NOT LIKE '%75%' AND subcatd NOT LIKE '%76%' AND subcatd NOT LIKE '%77%' AND subcatd NOT LIKE '%78%' AND subcatd NOT LIKE '%79%' AND subcatd NOT LIKE '%80%' AND subcatd NOT LIKE '%81%' AND subcatd NOT LIKE '%82%' AND subcatd NOT LIKE '%83%' AND subcatd NOT LIKE '%84%' AND subcatd NOT LIKE '%85%' AND subcatd NOT LIKE '%86%' AND subcatd NOT LIKE '%87%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%89%'");
|
|
| 78 |
&print_value(0, " AND subcatz NOT LIKE '%4%' AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%' AND subcatd NOT LIKE '%72%' AND subcatd NOT LIKE '%73%' AND subcatd NOT LIKE '%74%' AND subcatd NOT LIKE '%75%' AND subcatd NOT LIKE '%76%' AND subcatd NOT LIKE '%77%' AND subcatd NOT LIKE '%78%' AND subcatd NOT LIKE '%79%' AND subcatd NOT LIKE '%80%' AND subcatd NOT LIKE '%81%' AND subcatd NOT LIKE '%82%' AND subcatd NOT LIKE '%83%' AND subcatd NOT LIKE '%84%' AND subcatd NOT LIKE '%85%' AND subcatd NOT LIKE '%86%' AND subcatd NOT LIKE '%87%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%89%'"); |
|
| 79 | 79 |
} |
| 80 | 80 |
&print_value(1); |
| 81 | 81 |
&print_value(2); |
| ... | ... | |
| 85 | 85 |
# Subroutine to print the values |
| 86 | 86 |
sub print_value {
|
| 87 | 87 |
my $spots = `$MYSQL $MYSQLOPTS -e "SELECT count(*) as spots FROM $DATABASE.spots WHERE stamp > $FROMSTAMP AND category = $_[0]$_[1];"`; |
| 88 |
$spots =~ /(\d+)/;
|
|
| 89 |
print "cat".$_[0].".value ".$1."\n";
|
|
| 88 |
$spots =~ /(\d+)/; |
|
| 89 |
print "cat".$_[0].".value ".$1."\n"; |
|
| 90 | 90 |
} |
Formats disponibles : Unified diff