Changeset 830 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
04/08/16 15:03:39 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Add link(s) into DNSAdmin in per-IP DNS edit segment on allocation edit
page. Also extend for IPv6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r829 r830  
    11001100  if ($blockinfo->{revavail} || $blockinfo->{revpartial}) {
    11011101    $page->param(showrev => ($blockinfo->{revavail} || $blockinfo->{revpartial}) );
     1102    $page->param(v6 => $cidr->{isv6});
     1103    $page->param(dnslink => $IPDB::dnsadmin_url);
     1104
     1105    # get the DNSAdmin zone ID(s) for this allocation.
     1106    # Multiple zones should be rare, but are NOT impossible!
     1107    my $revlist = getRevID($ip_dbh, user => $authuser, cidr => $blockinfo->{block},
     1108        location => $blockinfo->{location});
     1109    $page->param(revlist => $revlist);
     1110
    11021111    my $cached;
    11031112    # Get rDNS info;  duplicates a bit of getBlockData but also does the RPC call if possible
     
    12841293  }
    12851294
     1295  # and now IPv6
     1296##fixme:  how to remove an entry?  maybe treat empty host as "delete meeeee!"?
     1297  if ($webvar{v6list}) {
     1298    my @v6lines = split /\n/, $webvar{v6list};
     1299    foreach (@v6lines) {
     1300      s/^\s+//;
     1301      s/\s+$//;
     1302      next if /^$/;
     1303      my ($ip,$name) = split /,/;
     1304      $iprev{"host_$ip"} = $name;
     1305    }
     1306  }
     1307
    12861308  # Merge with reserved freeblock
    12871309  $updargs{fbmerge} = $webvar{expandme} if $webvar{expandme};
Note: See TracChangeset for help on using the changeset viewer.