- Timestamp:
- 07/19/18 17:03:38 (6 years ago)
- Location:
- trunk/dnsbl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dnsbl/DNSBL.pm
r67 r69 184 184 "WHERE b.block >>= ? ". 185 185 "GROUP BY b.block,b.level,b.listme,o.listme ORDER BY b.block"); 186 $sthmoron = $dbh->prepare("SELECT ip,s4list, white FROM iplist WHERE parent = ?");186 $sthmoron = $dbh->prepare("SELECT ip,s4list,exclude FROM iplist WHERE parent = ?"); 187 187 } 188 188 … … 217 217 $sth = $dbh->prepare("INSERT INTO iplist (ip,parent,exclude) VALUES ". 218 218 "(?,(SELECT block FROM blocks WHERE block >> ? ORDER BY level DESC LIMIT 1),?)"); 219 $sth->execute($rep,$rep, $exclude) or die "couldn't add entry for $rep: ".$dbh->errstr."\n";219 $sth->execute($rep,$rep,($exclude ? 'y' : 'n')) or die "couldn't add entry for $rep: ".$dbh->errstr."\n"; 220 220 } elsif ($rows == 1) { 221 221 $sth = $dbh->prepare("UPDATE iplist SET count=count+1,". -
trunk/dnsbl/browse.cgi
r67 r69 25 25 use CGI::Simple; 26 26 use HTML::Template; 27 28 # push "the directory the script is in" into @INC 29 use FindBin; 30 use lib "$FindBin::RealBin/"; 27 31 28 32 use DNSBL 2.2; -
trunk/dnsbl/dnsbl.cgi
r67 r69 27 27 use Net::DNS; 28 28 29 # push "the directory the script is in" into @INC 30 use FindBin; 31 use lib "$FindBin::RealBin/"; 32 29 33 use DNSBL 2.2; 30 34 use DNSBLweb; … … 189 193 } 190 194 if (!$dnsbl->blockexists($webvar{$blockn})) { 191 my $ret = $dnsbl->addblock($webvar{$blockn}, $orgid, $i, $webvar{$excln} );195 my $ret = $dnsbl->addblock($webvar{$blockn}, $orgid, $i, $webvar{$excln}, $webvar{$commentn}); 192 196 $err .= "error adding $webvar{$blockn}: $ret<br>\n" if $ret; 193 197 $page->param($blockn => $webvar{$blockn}); -
trunk/dnsbl/export-dnsbl
r67 r69 22 22 use warnings; 23 23 use DBI; 24 25 # push "the directory the script is in" into @INC 26 use FindBin; 27 use lib "$FindBin::RealBin/"; 24 28 25 29 use DNSBL 2.2;
Note:
See TracChangeset
for help on using the changeset viewer.