summaryrefslogtreecommitdiff
path: root/fs_selfservice/FS-SelfService
diff options
context:
space:
mode:
authorivan <ivan>2007-03-03 01:29:46 +0000
committerivan <ivan>2007-03-03 01:29:46 +0000
commita9df3b5d93e0f952ba3234778bd3f3b07413b70d (patch)
treedf0ab9ca3737bada9cdb75530f34e88017f91f45 /fs_selfservice/FS-SelfService
parent2c1569aebafcf123ad71785f67d8ec005ffa04b3 (diff)
pass the remote IP address along with signup requests, for some gateways
Diffstat (limited to 'fs_selfservice/FS-SelfService')
-rwxr-xr-xfs_selfservice/FS-SelfService/cgi/signup.cgi34
1 files changed, 18 insertions, 16 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/signup.cgi b/fs_selfservice/FS-SelfService/cgi/signup.cgi
index 1514db52a..227f05f7b 100755
--- a/fs_selfservice/FS-SelfService/cgi/signup.cgi
+++ b/fs_selfservice/FS-SelfService/cgi/signup.cgi
@@ -182,22 +182,24 @@ if ( ( defined($cgi->param('magic')) && $cgi->param('magic') eq 'process' )
unless ( $error ) {
my $rv = new_customer( {
- map { $_ => scalar($cgi->param($_)) }
- qw( last first ss company
- address1 address2 city county state zip country
- daytime night fax
-
- ship_last ship_first ship_company
- ship_address1 ship_address2 ship_city ship_county ship_state
- ship_zip ship_country
- ship_daytime ship_night ship_fax
-
- payby payinfo paycvv paydate payname invoicing_list
- referral_custnum promo_code reg_code
- pkgpart username sec_phrase _password popnum refnum
- agentnum
- ),
- grep { /^snarf_/ } $cgi->param
+ ( map { $_ => scalar($cgi->param($_)) }
+ qw( last first ss company
+ address1 address2 city county state zip country
+ daytime night fax
+
+ ship_last ship_first ship_company
+ ship_address1 ship_address2 ship_city ship_county ship_state
+ ship_zip ship_country
+ ship_daytime ship_night ship_fax
+
+ payby payinfo paycvv paydate payname invoicing_list
+ referral_custnum promo_code reg_code
+ pkgpart username sec_phrase _password popnum refnum
+ agentnum
+ ),
+ grep { /^snarf_/ } $cgi->param
+ ),
+ 'payip' => $cgi->remote_host(),
} );
$error = $rv->{'error'};
}