Ignore:
Timestamp:
11/16/11 16:28:37 (13 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Prep-for-release cleanup of buglets found making sure the demo
install works

  • Clean up instructions for creating the database. Apparently the PL/pgSQL "language" module required for the last-modified triggers can't be installed by a regular user, and isn't available by default. O_o
  • Fix a missed $IPDB::webpath-in-single-quotes
  • Add a quick hack to allow automagical allocation from private net ranges. See #38.
  • Partially convert some critical bits to use bound parameters in SQL for new allocations. See #34, mostly cleaned up already on /trunk or /branches/htmlform
  • Set $privdata = internally so that an allocation via admin tools doesn't error out
File:
1 edited

Legend:

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

    r507 r508  
    446446    # If the allocation is a pool, allow listing of the IPs in the pool.
    447447    if ($data[2] =~ /^.[pd]$/) {
    448       $row[0] .= ' &nbsp; <a href="$IPDB::webpath/cgi-bin/main.cgi?action=listpool'.
     448      $row[0] .= qq( &nbsp; <a href="$IPDB::webpath/cgi-bin/main.cgi?action=listpool).
    449449        "&pool=$data[0]\">List IPs</a>";
    450450    }
     
    583583
    584584    $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    }
    585590
    586591    # This is a little dangerous, as it's *theoretically* possible to
     
    614619    close HTML;
    615620    $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    }
    616626    my $masterlist = "<select name=allocfrom><option selected>-</option>\n";
    617627    foreach my $master (@masterblocks) {
Note: See TracChangeset for help on using the changeset viewer.