$query = "select distinct vote_source from votingapi_vote where content_id in (102192, 105623, 100650, 101209, 100703, 100718, 102957, 100965, 101087, 103363, 101223, 103689, 104168, 104563, 107548, 106815, 107225, 101754, 101923, 102052, 100802, 101223, 102318, 100733, 102027, 103420) and checked = 0 limit 25";
$query_result = db_query($query);
$spamcount = 0;
while ($v = db_fetch_object($query_result)):
$spam = simplexml_load_file('http://www.stopforumspam.com/api?ip='.$v->vote_source);
if ($spam->appears == 'yes'):
?>
$query = "delete from votingapi_vote where vote_source = '$v->vote_source'";
//print $query.'
';
db_query($query);
else:
?>
$query = "update votingapi_vote set checked = 1 where vote_source = '$v->vote_source'";
db_query($query);
endif;
endwhile;
?>
$finalists = array(102192, 105623, 100650, 101209, 100703, 100718, 102957, 100965, 101087, 103363, 101223, 103689, 104168, 104563, 107548, 106815, 107225, 101754, 101923, 102052, 100802, 101223, 102318, 100733, 102027, 103420);
foreach($finalists as $f):
$query = "SELECT
SUBSTRING_INDEX(vote_source, '.', 2) AS vote_source,
COUNT(*) AS c
FROM
votingapi_vote
WHERE
content_id = $f
GROUP BY
SUBSTRING_INDEX(vote_source, '.', 2)
ORDER BY
c DESC";
//$block["content"] = $query;
//break;
$query_result = db_query($query);
$count = 0;
while ($n = db_fetch_object($query_result)):
if ($n->c > 12):
$norm = "delete from votingapi_vote where vote_source like '$n->vote_source%' and content_id = $f limit ".($n->c - 12);
//print $norm.'
';
db_query($norm);
endif;
$count += ($n->c > 12) ? 12 : $n->c;
endwhile;
$count -= $spamcount;
$nd = node_load($f);
?>
endforeach;
?>
I bought my Dura-Ace groupset to go on a new frame in December 2020. I was surprised when I checked the code to find it was one of the affected...
Could it be that an industry * with vast wealth and long cultivated influence, which is now seen as providing something both practically and...
Presumably a) expense b) for something that (mostly) works against your customers' convenience? And the usual "but emergencies - what about when...
Remembrance event driving incident sees woman reported (paywall)...
Still no.
I was going to suggest the Fairlight Strael too, and went to check if it came in on budget. While there, I finally ordered the frameset I've been...
"No darling, I said a cactus bike holder, not a bike cactus holder."...
I have visited Guernsey and my wife goes there a few times a year for work. This act of premeditated violence shocks me. There are quite a lot of...
You could well be right. Personally, I think Avonvale Rd is just a disaster for having two way traffic. So many drivers think the traffic calming...
Although Muller Rd isn't great to cycle on (the north end, anyhow), it's certainly not the worst. I'm definitely in the "brave and bold cyclist" at...