Changeset 252 for branches/stable
- Timestamp:
- 05/30/05 11:30:46 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/admin.cgi
r249 r252 141 141 printAndExit("Can't allocate from outside a free block!!\n") 142 142 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]; 143 150 } else { 144 151 $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.