Changeset 228 for trunk/cgi-bin/main.cgi
- Timestamp:
- 04/15/05 16:31:44 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r227 r228 1106 1106 my $blockoptions = "<select name=alloctype><option". 1107 1107 (($data[2] eq 'me') ? ' selected' : '') ." value='me'>Dialup netblock</option>\n<option". 1108 (($data[2] eq 'de') ? ' selected' : '') ." value='de'>Dynamic DSL netblock</option>\n<option". (($data[2] eq 'dc') ? ' selected' : '') ." value='dc'>Dynamic cable netblock</option>\n<option".1109 (($data[2] eq 'ce') ? ' selected' : '') ." value='ce'>Dynamic cable netblock</option>\n<option". (($data[2] eq 'dc') ? ' selected' : '') ." value='dc'>Dynamic cable netblock</option>\n<option".1110 (($data[2] eq 'we') ? ' selected' : '') ." value='we'>Dynamic wireless netblock</option>\n<option". (($data[2] eq 'dc') ? ' selected' : '') ." value='dc'>Dynamic cable netblock</option>\n<option".1108 (($data[2] eq 'de') ? ' selected' : '') ." value='de'>Dynamic DSL netblock</option>\n<option". 1109 (($data[2] eq 'ce') ? ' selected' : '') ." value='ce'>Dynamic cable netblock</option>\n<option". 1110 (($data[2] eq 'we') ? ' selected' : '') ." value='we'>Dynamic wireless netblock</option>\n<option". 1111 1111 (($data[2] eq 'cn') ? ' selected' : '') ." value='cn'>Customer netblock</option>\n<option". 1112 1112 (($data[2] eq 'en') ? ' selected' : '') ." value='en'>End-use netblock</option>\n<option". … … 1136 1136 1137 1137 # Make sure incoming data is in correct format - custID among other things. 1138 validateInput;1138 return if !validateInput; 1139 1139 1140 1140 # SQL transaction wrapper … … 1144 1144 if (my $pooltype = ($webvar{alloctype} =~ /^(.)i$/) ) { 1145 1145 $sql = "update poolips set custid='$webvar{custid}',notes='$webvar{notes}',". 1146 "circuitid='$webvar{circid}',description='$webvar{desc}' ".1146 "circuitid='$webvar{circid}',description='$webvar{desc}',city='$webvar{city}' ". 1147 1147 "where ip='$webvar{block}'"; 1148 1148 } else {
Note:
See TracChangeset
for help on using the changeset viewer.