Changeset 189 for trunk/cgi-bin/main.cgi
- Timestamp:
- 03/08/05 17:37:46 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r187 r189 890 890 $sql = "select cidr from freeblocks where city='$city' and maskbits<=$webvar{maskbits}". 891 891 " and cidr <<= '$webvar{allocfrom}' and routed='". 892 (($webvar{alloctype} =~ /^(.)r$/) ? '$1' : 'y')."' order by cidr,maskbits desc";892 (($webvar{alloctype} =~ /^(.)r$/) ? "$1" : 'y')."' order by maskbits desc,cidr"; 893 893 } else { 894 894 $sql = "select cidr from freeblocks where city='$city' and maskbits<=$webvar{maskbits}". 895 " and routed='".(($webvar{alloctype} =~ /^(.)r$/) ? '$1': 'y').896 "' order by cidr,maskbits desc";895 " and routed='".(($webvar{alloctype} =~ /^(.)r$/) ? "$1" : 'y'). 896 "' order by maskbits desc,cidr"; 897 897 } 898 898 } … … 976 976 } else { 977 977 print qq(<div class="center"><div class="heading">The block $webvar{fullcidr} was ). 978 "sucessfully added as type '$webvar{alloctype}' ". 979 "($disp_alloctypes{$webvar{alloctype}})</div></div>"; 978 "sucessfully added as: $disp_alloctypes{$webvar{alloctype}}</div></div>"; 980 979 } 981 980 syslog "notice", "$authuser allocated '$webvar{fullcidr}' to '$webvar{custid}' as ". … … 984 983 syslog "err", "Allocation of '$webvar{fullcidr}' to '$webvar{custid}' as ". 985 984 "'$webvar{alloctype}' by $authuser failed: '$msg'"; 986 printError("Allocation of $webvar{fullcidr} as $disp_alloctypes{$webvar{alloctype}}".985 printError("Allocation of $webvar{fullcidr} as '$disp_alloctypes{$webvar{alloctype}}'". 987 986 " failed:<br>\n$msg\n"); 988 987 } … … 1232 1231 $desc = "N/A"; 1233 1232 $notes = "N/A"; 1234 } elsif ($webvar{alloctype} =~ /^.i$/) { # done with alloctype= rr1233 } elsif ($webvar{alloctype} =~ /^.i$/) { # done with alloctype=[rm]m 1235 1234 1236 1235 # Unassigning a static IP
Note:
See TracChangeset
for help on using the changeset viewer.