Changeset 252 for branches


Ignore:
Timestamp:
05/30/05 11:30:46 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Fixed bug where attempting to allocate a static IP from the
admin tools failed with the wrong error message before it
even let you enter customer info - a section was missing
for static IPs.
Fixed display bug on checking for invalid/unknown actions.

File:
1 edited

Legend:

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

    r249 r252  
    141141    printAndExit("Can't allocate from outside a free block!!\n")
    142142        if !$data[0];
     143  } elsif ($webvar{alloctype} =~ /^(.)i$/) {
     144    $sth = $ip_dbh->prepare("select cidr from allocations where cidr >>='$cidr' and (type like '_d' or type like '_p')");
     145    $sth->execute;
     146    @data = $sth->fetchrow_array;
     147# User deserves errors if user can't be bothered to find the pool and a free IP first.
     148    printAndExit("Can't allocate static IP from outside a pool!!\n")
     149        if !$data[0];
    143150  } else {
    144151    $sth = $ip_dbh->prepare("select cidr from freeblocks where cidr >>='$cidr' and not (routed='n')");
Note: See TracChangeset for help on using the changeset viewer.