Changeset 675 for trunk/cgi-bin/main.cgi
- Timestamp:
- 01/15/15 17:52:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r674 r675 313 313 my $block = new NetAddr::IP $webvar{block}; 314 314 315 my $rdns= getBlockRDNS($ip_dbh, id => $webvar{parent}, type => $webvar{fbtype}, user => $authuser);315 my ($rdns,$cached) = getBlockRDNS($ip_dbh, id => $webvar{parent}, type => $webvar{fbtype}, user => $authuser); 316 316 $page->param(rdns => $rdns) if $rdns; 317 317 $page->param(parent => $webvar{parent}); 318 318 $page->param(fbid => $webvar{fbid}); 319 # visual flag that we're working IPDB-local, not off more authoritative data in dnsadmin 320 $page->param(cached => $cached); 319 321 320 322 $webvar{fbtype} = '' if !$webvar{fbtype}; … … 687 689 $blockinfo->{type} =~ s/\s//; 688 690 691 my $cached; 689 692 # Get rDNS info; duplicates a bit of getBlockData but also does the RPC call if possible 690 $blockinfo->{rdns} = getBlockRDNS($ip_dbh, id => $webvar{id}, type => $blockinfo->{type}, user => $authuser); 693 ($blockinfo->{rdns},$cached) = getBlockRDNS($ip_dbh, id => $webvar{id}, type => $blockinfo->{type}, user => $authuser); 694 # visual flag that we're working IPDB-local, not off more authoritative data in dnsadmin 695 $page->param(cached => $cached); 696 697 my $cidr = new NetAddr::IP $blockinfo->{block}; 698 # Limit the per-IP rDNS list based on CIDR length; larger ones just take up too much space. 699 # Also, don't show on IP pools; the individual IPs will have a space for rDNS 700 # Don't show on single IPs; these use the "pattern" field 701 if ($IPDBacl{$authuser} =~ /c/ 702 && $cidr->masklen != $cidr->bits 703 && ($cidr->bits - $cidr->masklen) <= $IPDB::maxrevlist 704 && $webvar{alloctype} !~ /^.[dpi]/ 705 # do we want to allow v6 at all? 706 #&& ! $cidr->{isv6} 707 ) { 708 $page->param(r_iplist => getRDNSbyIP($ip_dbh, id => $webvar{id}, type => $blockinfo->{type}, 709 range => $blockinfo->{block}, user => $authuser) ); 710 } 691 711 692 712 $page->param(block => $blockinfo->{block});
Note:
See TracChangeset
for help on using the changeset viewer.