Changeset 565 for trunk


Ignore:
Timestamp:
12/19/12 16:40:38 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Work in progress, see #5:
Narrow the focus in ipParent() to make sure we only return a
netblock that's an IP pool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r564 r565  
    665665
    666666  my $pinfo = $dbh->selectrow_hashref("SELECT cidr,custid,type,city,description FROM allocations".
    667         " WHERE cidr >>= ?", undef, ($block) );
     667        " WHERE cidr >>= ? AND (type LIKE '_p' OR type LIKE '_d')", undef, ($block) );
    668668  return $pinfo;
    669669} # end ipParent()
Note: See TracChangeset for help on using the changeset viewer.