Common code for checks used in both the tracker and the scrape mechanism.

svn path=/trunk/boinc/; revision=12885
This commit is contained in:
Janus B. Kristensen 2007-06-11 18:27:24 +00:00
parent 035a91efbb
commit d87fa93503
1 changed files with 18 additions and 0 deletions

18
html/bt/inc/checks.php Normal file
View File

@ -0,0 +1,18 @@
<?php
/**
* Checks common to both the tracker and the scraping mechanism.
*/
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
function isIPBanned($ip){
$queryHandle = mysql_query("SELECT * from bittorrent_ipbans where ip=\"".process_user_text($ip)."\" and timestamp > ".time()); echo mysql_error();
if (mysql_num_rows($queryHandle)){
return true;
} else {
return false;
}
}
?>