Changeset 508 for branches/stable/cgi-bin/main.cgi
- Timestamp:
- 11/16/11 16:28:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/main.cgi
r507 r508 446 446 # If the allocation is a pool, allow listing of the IPs in the pool. 447 447 if ($data[2] =~ /^.[pd]$/) { 448 $row[0] .= ' <a href="$IPDB::webpath/cgi-bin/main.cgi?action=listpool'.448 $row[0] .= qq( <a href="$IPDB::webpath/cgi-bin/main.cgi?action=listpool). 449 449 "&pool=$data[0]\">List IPs</a>"; 450 450 } … … 583 583 584 584 $html =~ s|\$\$WEBPATH\$\$|$IPDB::webpath|g; 585 if ($IPDB::allowprivrange eq 'y' or $IPDB::allowprivrange eq 'on') { 586 $html =~ s/\$\$ALLOWPRIV\$\$/checked=checked/; 587 } else { 588 $html =~ s/\$\$ALLOWPRIV\$\$//; 589 } 585 590 586 591 # This is a little dangerous, as it's *theoretically* possible to … … 614 619 close HTML; 615 620 $html =~ s|\$\$WEBPATH\$\$|$IPDB::webpath|g; 621 if ($IPDB::allowprivrange eq 'y' or $IPDB::allowprivrange eq 'on') { 622 $html =~ s/\$\$ALLOWPRIV\$\$/checked=checked/; 623 } else { 624 $html =~ s/\$\$ALLOWPRIV\$\$//; 625 } 616 626 my $masterlist = "<select name=allocfrom><option selected>-</option>\n"; 617 627 foreach my $master (@masterblocks) {
Note:
See TracChangeset
for help on using the changeset viewer.