- Timestamp:
- 11/15/11 17:20:49 (13 years ago)
- Location:
- branches/stable/cgi-bin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/admin.cgi
r445 r506 133 133 # OK, we know what we're allocating. 134 134 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 # } 138 138 139 139 $sth = $ip_dbh->prepare("select def_custid from alloctypes where type='$webvar{alloctype}'"); -
branches/stable/cgi-bin/extras/db2rwhois.pl
r445 r506 74 74 "not (cidr <<= '10.0.0.0/8') and ". 75 75 "not (type = 'wr') and ". 76 " masklen(cidr) <=30and ".76 "((masklen(cidr) <=30 and family(cidr)=4) or (masklen(cidr) <=56 and family(cidr)=6)) and ". 77 77 "cidr <<= ?"); 78 78 -
branches/stable/cgi-bin/main.cgi
r445 r506 437 437 # Prefix subblocks with "Sub " 438 438 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>), 440 440 $data[1], $disp_alloctypes{$data[2]}, $data[3], 441 441 ($data[4] eq 'y' ? ($ncust == 0 ? 'Yes<small>*</small>' : 'Yes') : 'No'), $data[5]); … … 996 996 # Two cases: block is a netblock, or block is a static IP from a pool 997 997 # 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}) { 999 999 $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata,oldcustid from poolips where ip='$webvar{block}'"; 1000 1000 } else {
Note:
See TracChangeset
for help on using the changeset viewer.