Changeset 67 for trunk/dnsbl/delist-ip
- Timestamp:
- 01/09/18 18:12:13 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dnsbl/delist-ip
r40 r67 3 3 ## 4 4 # $Id$ 5 # Copyright 2011, 2012 Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2011, 2012, 2018 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 23 23 use DBI; 24 24 25 use DNSBL ;25 use DNSBL 2.2; 26 26 27 27 my $dnsbl = new DNSBL; … … 59 59 my $removeme = $ARGV[0]; 60 60 61 $sth = $dbh->prepare("SELECT ip,count,s4list,added FROM iplist WHERE ip=?");61 $sth = $dbh->prepare("SELECT ip,count,s4list,added,exclude FROM iplist WHERE ip=?"); 62 62 $sth->execute($removeme); 63 my ($ip,$count,$s4list,$added ) = $sth->fetchrow_array;63 my ($ip,$count,$s4list,$added,$exclude) = $sth->fetchrow_array; 64 64 65 65 die "IP $removeme not found. Exiting.\n" if !$ip; … … 69 69 local $dbh->{RaiseError} = 1; 70 70 eval { 71 $sth = $dbh->prepare("INSERT INTO waslisted (ip,count,s4list,origadded ) VALUES (?,?,?,?)");72 $sth->execute($ip,$count,$s4list,$added );71 $sth = $dbh->prepare("INSERT INTO waslisted (ip,count,s4list,origadded,exclude) VALUES (?,?,?,?,?)"); 72 $sth->execute($ip,$count,$s4list,$added,$exclude); 73 73 $sth = $dbh->prepare("DELETE FROM iplist WHERE ip=?"); 74 74 $sth->execute($ip);
Note:
See TracChangeset
for help on using the changeset viewer.