Changeset 417 for trunk/cgi-bin/consistency-check.pl
- Timestamp:
- 06/30/10 17:48:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/consistency-check.pl
r402 r417 8 8 # Last update by $Author$ 9 9 ### 10 # Copyright (C) 2004 - Kris Deugau10 # Copyright (C) 2004-2010 - Kris Deugau 11 11 12 12 use DBI; 13 use NetAddr::IP; 14 15 # don't remove! required for GNU/FHS-ish install from tarball 16 ##uselib## 17 13 18 use MyIPDB; 14 use NetAddr::IP;15 19 16 20 print "Content-type: text/plain\n\n"; … … 230 234 print "Checking for customer blocks with 'bad' CustIDs:\n"; 231 235 # Make sure cn-type ("customer netblock") blocks have "real" CustIDs. 232 $sth = $dbh->prepare("select cidr,type,custid from allocations where type='cn' and (custid=' 6750400' or custid='STAFF') order by cidr");236 $sth = $dbh->prepare("select cidr,type,custid from allocations where type='cn' and (custid='$IPDB::defcustid' or custid='STAFF') order by cidr"); 233 237 $sth->execute; 234 238 while (@data = $sth->fetchrow_array) {
Note:
See TracChangeset
for help on using the changeset viewer.