Try this:
admincp.php, find:
#======================================================================
# Peer Guardian Import
#======================================================================#
if($action == "peerg")
{
stdhead();
navmenu();
begin_frame("Peer Guardian Importer", center);
// change the following to your .p2p location
$f = fopen("hxxp://www.ishtar.ca/guarding.p2p", "r");
if (!$f)
die("Cannot download guarding.p2p!");
mysql_query("DELETE FROM bans WHERE comment LIKE 'PeerGuardian: %'") or die(mysql_error());
$n = 0;
$o = 0;
$dt = sqlesc(get_date_time());
while (!feof($f))
{
++$o;
$s = rtrim(fgets($f));
$i = strrpos($s, ":");
if (!$i) continue;
$comment = sqlesc("PeerGuardian: " . substr($s, 0, $i));
$s = substr($s, $i + 1);
$i = strpos($s, "-");
$first = ip2long(substr($s, 0, $i));
$last = ip2long(substr($s, $i + 1));
if ($first == -1 || $last == -1) continue;
mysql_query("INSERT INTO bans (added, addedby, first, last, comment) VALUES($dt, $uid, $first, $last, $comment)") or die(mysql_error());
++$n;
}
$o -= $n;
print("$n ranges imported, $o line(s) was discarded.");
end_frame();
}
Download that .gz file, gunzip it, rename it guarding.p2p, and change the link in the code above, worked in test encironment on TT 2.03 (SVN). 205354 ranges imported, 0 line(s) was discarded. Though the ban system really needs more work for this to actually work :S