Changeset 32 for trunk/dnsbl/browse.cgi
- Timestamp:
- 03/25/11 17:16:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dnsbl/browse.cgi
r25 r32 54 54 my $basesql = "SELECT b.block,o.orgname,b.listme,o.listme,b.comments,o.comments ". 55 55 "FROM blocks b INNER JOIN orgs o ON b.orgid=o.orgid ". 56 "WHERE b. block <<= ";56 "WHERE b.parent = "; 57 57 my $sth0 = $dbh->prepare($basesql."'0/0' AND b.level=0 ORDER BY block"); 58 58 #my $sth0 = $dbh->prepare($basesql."'64/8' AND b.level=0 ORDER BY block"); 59 59 my $sth1 = $dbh->prepare($basesql."? AND b.level=1 ORDER BY block"); 60 60 my $sth2 = $dbh->prepare($basesql."? AND b.level=2 ORDER BY block"); 61 my $sthiplist = $dbh->prepare("select * from iplist where ip <<= ? order by ip");61 my $sthiplist = $dbh->prepare("select * from iplist where parent = ? order by ip"); 62 62 63 63 my %ipseen;
Note:
See TracChangeset
for help on using the changeset viewer.