Changeset 506 for branches


Ignore:
Timestamp:
11/15/11 17:20:49 (13 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Minor bugfixes for IPv6

Location:
branches/stable/cgi-bin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/admin.cgi

    r445 r506  
    133133  # OK, we know what we're allocating.
    134134
    135   if ($webvar{cidr} !~ /^\s*(\d{1,3}\.){3}\d{1,3}(\/\d{2})?\s*$/) {
    136     printAndExit("Can't allocate something that's not a netblock/ip");
    137   }
     135#  if ($webvar{cidr} !~ /^\s*(\d{1,3}\.){3}\d{1,3}(\/\d{2})?\s*$/) {
     136#    printAndExit("Can't allocate something that's not a netblock/ip");
     137#  }
    138138
    139139  $sth = $ip_dbh->prepare("select def_custid from alloctypes where type='$webvar{alloctype}'");
  • branches/stable/cgi-bin/extras/db2rwhois.pl

    r445 r506  
    7474        "not (cidr <<= '10.0.0.0/8') and ".
    7575        "not (type = 'wr') and ".
    76         "masklen(cidr) <=30 and ".
     76        "((masklen(cidr) <=30 and family(cidr)=4) or (masklen(cidr) <=56 and family(cidr)=6)) and ".
    7777        "cidr <<= ?");
    7878
  • branches/stable/cgi-bin/main.cgi

    r445 r506  
    437437    # Prefix subblocks with "Sub "
    438438    my @row = ( (($data[2] =~ /^.r$/) ? 'Sub ' : '').
    439         qq(<a href="/ip/cgi-bin/main.cgi?action=edit&block=$data[0]">$data[0]</a>),
     439        qq(<a href="/ip/cgi-bin/main.cgi?action=edit&block=$data[0]&reallyblock=1">$data[0]</a>),
    440440        $data[1], $disp_alloctypes{$data[2]}, $data[3],
    441441        ($data[4] eq 'y' ? ($ncust == 0 ? 'Yes<small>*</small>' : 'Yes') : 'No'), $data[5]);
     
    996996  # Two cases:  block is a netblock, or block is a static IP from a pool
    997997  # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data
    998   if ($webvar{block} =~ /\/32$/) {
     998  if ($webvar{block} =~ /\/32$/ && !$webvar{reallyblock}) {
    999999    $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata,oldcustid from poolips where ip='$webvar{block}'";
    10001000  } else {
Note: See TracChangeset for help on using the changeset viewer.