mirror of https://github.com/BOINC/boinc.git
Common code for checks used in both the tracker and the scrape mechanism.
svn path=/trunk/boinc/; revision=12885
This commit is contained in:
parent
035a91efbb
commit
d87fa93503
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue