Changeset 300
- Timestamp:
- 11/16/05 18:01:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r299 r300 742 742 " chose a smaller blocksize."; 743 743 } 744 if ( $webvar{allocfrom} ne '-') {744 if (defined $webvar{allocfrom} && $webvar{allocfrom} ne '-') { 745 745 $sql = "select cidr from freeblocks where city='$city' and maskbits<=$webvar{maskbits}". 746 746 " and cidr <<= '$webvar{allocfrom}' and routed='". … … 847 847 if ($code eq 'OK') { 848 848 if ($webvar{alloctype} =~ /^.i$/) { 849 $msg =~ s|/32||; 849 850 print qq(<div class="center"><div class="heading">The IP $msg has been allocated to customer $webvar{custid}</div>). 850 851 ($webvar{alloctype} eq 'di' ? … … 918 919 } else { 919 920 $flag = 'n'; 921 if ($webvar{alloctype} =~ /[wp][cr]|[ds][pi]/) { 922 # Set this forcibly rather than messing around elsewhere. Yes, this *is* a hack. PTHBTT!! 923 $webvar{pop} = 'Sudbury'; 924 } 920 925 if ($webvar{pop} =~ /^-$/) { 921 926 $flag = 'to route the block from/through';
Note:
See TracChangeset
for help on using the changeset viewer.