Changeset 140 for branches/stable
- Timestamp:
- 01/27/05 17:37:31 (20 years ago)
- Location:
- branches/stable
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/assign.html
r98 r140 8 8 $$ALLCITIES$$ 9 9 </select> 10 <a href="javascript:popNotes('/ip/newcity.html')">Add new location</a> 10 11 </td> 11 12 </tr> -
branches/stable/cgi-bin/main.cgi
r136 r140 988 988 return; 989 989 } 990 991 # Alloctype check. 990 992 chomp $webvar{alloctype}; 993 if (!grep /$webvar{alloctype}/, keys %disp_alloctypes) { 994 # Danger! Danger! alloctype should ALWAYS be set by a dropdown. Anyone 995 # managing to call things in such a way as to cause this deserves a cryptic error. 996 printError("Invalid alloctype"); 997 return; 998 } 999 1000 # CustID check 991 1001 # We have different handling for customer allocations and "internal" or "our" allocations 992 if ($webvar{alloctype} =~ /^(c i|di|cn|mi|wi)$/) {1002 if ($webvar{alloctype} =~ /^(cn|.i)$/) { 993 1003 if (!$webvar{custid}) { 994 1004 printError("Please enter a customer ID."); … … 1014 1024 } 1015 1025 # print "<!-- [ In validateInput(). Insert customer ID cross-check here. ] -->\n"; 1016 } els if ($webvar{alloctype} =~ /^([cdsmw]p|si|dn|dy|dc|dw|ee|rr|in)$/){1026 } else { 1017 1027 # All non-customer allocations MUST be entered with "our" customer ID. 1018 1028 # I have Defined this as 6750400 for consistency. … … 1021 1031 $webvar{custid} = "6750400"; 1022 1032 } 1023 } else {1024 # Danger! Danger! alloctype should ALWAYS be set by a dropdown. Anyone1025 # managing to call things in such a way as to cause this deserves a cryptic error.1026 printError("Invalid alloctype");1027 return;1028 1033 } 1029 1034 -
branches/stable/changes.html
r91 r140 12 12 <tr><td class="heading" colspan=2>Changes to the IPDB</td><tr> 13 13 14 <tr class="color2"> 15 <td valign=top>01/27/2005</td> 16 <td>New cities/locations can now be added to the database here. 17 </td></tr> 14 18 <tr class="color1"> 15 19 <td valign=top>11/30/2004</td>
Note:
See TracChangeset
for help on using the changeset viewer.