Changeset 140 for branches/stable/cgi-bin/main.cgi
- Timestamp:
- 01/27/05 17:37:31 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.