Changeset 506 for branches/stable/cgi-bin/main.cgi
- Timestamp:
- 11/15/11 17:20:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.