Changeset 189 for trunk/cgi-bin/IPDB.pm
- Timestamp:
- 03/08/05 17:37:46 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r187 r189 332 332 $sth->execute; 333 333 334 } else { # done with alloctype == r r334 } else { # done with alloctype == rm 335 335 336 336 # Insert the new freeblocks entries … … 339 339 $sth = $dbh->prepare("insert into freeblocks (cidr,maskbits,city,routed)". 340 340 " values (?, ?, (select city from routed where cidr >>= '$cidr'),'". 341 (($type =~ /^(.)r$/) ? '$1': 'y')."')");341 (($type =~ /^(.)r$/) ? "$1" : 'y')."')"); 342 342 foreach my $block (@newfreeblocks) { 343 343 $sth->execute("$block", $block->masklen); … … 370 370 } 371 371 372 } # done with netblock alloctype != r r372 } # done with netblock alloctype != rm 373 373 374 374 $dbh->commit; … … 577 577 " values ('$cidr',".$cidr->masklen. 578 578 ",(select city from routed where cidr >>= '$cidr'),'". 579 (($type =~ /^(.)r$/) ? '$1': 'y')."')");579 (($type =~ /^(.)r$/) ? "$1" : 'y')."')"); 580 580 } 581 581 $sth->execute;
Note:
See TracChangeset
for help on using the changeset viewer.