";
} else {
fclose($fp);
$found = $found."
$ip";
// now we found one, we can insert it into a database
// see www.ground418.org/outils/files/SQL_Suite.tar for the includes.
// table -> t1: col1 = found address, col2 = port, col3 = when it was looked, col4 = who fount it
//include 'SQL_Class.php';
//include 'SQL_Statement.php';
//$dbh = new SQL_Class();
//$stmt = $dbh->execute("SELECT COUNT(*) FROM t1 WHERE col1 = '".$ip."' AND col2 = '".$p."'");
//$cnt = $stmt->sql_result();
//if ($cnt == 1)
// $stmt = $dbh->execute("UPDATE t1 SET col2=NOW(), col3='".$h."' WHERE col1='".$ip."' AND col2 = '".$p."'");
//else
// $stmt = $dbh->execute("INSERT INTO t1 SET col1='".$ip."', col3=NOW(), col4='".$h."'");
// Or you can simply throw it in the ground418 database, if it's a 1080 port.
if ($p = 1080) {
$fp =@ fopen ("http://www.ground418.org/textes/proxies/add.php?ip=".$ip, "rb");
@fclose($fp);
}
echo"";
}
?>