diff options
author | ivan <ivan> | 2009-09-25 10:14:30 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-09-25 10:14:30 +0000 |
commit | 81e426fe755eaea508041bc2d7b25ac44c777434 (patch) | |
tree | 95a9a5fe952a77274f40e660400415e6b2db2997 /fs_selfservice/FS-SelfService | |
parent | 25b0525eb1f0d018b893a7bdc96b92a8f446020f (diff) |
nomadix, RT#5876
Diffstat (limited to 'fs_selfservice/FS-SelfService')
-rwxr-xr-x | fs_selfservice/FS-SelfService/cgi/signup.cgi | 1 | ||||
-rwxr-xr-x | fs_selfservice/FS-SelfService/cgi/signup.html | 17 |
2 files changed, 16 insertions, 2 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/signup.cgi b/fs_selfservice/FS-SelfService/cgi/signup.cgi index 12452e686..fb4a7c551 100755 --- a/fs_selfservice/FS-SelfService/cgi/signup.cgi +++ b/fs_selfservice/FS-SelfService/cgi/signup.cgi @@ -229,6 +229,7 @@ if ( $magic eq 'process' || $action eq 'process_signup' ) { invoicing_list referral_custnum promo_code reg_code pkgpart refnum agentnum username sec_phrase _password popnum + mac_addr countrycode phonenum sip_password pin ), grep { /^snarf_/ } $cgi->param diff --git a/fs_selfservice/FS-SelfService/cgi/signup.html b/fs_selfservice/FS-SelfService/cgi/signup.html index ae7b2226a..3f8e4a3f7 100755 --- a/fs_selfservice/FS-SelfService/cgi/signup.html +++ b/fs_selfservice/FS-SelfService/cgi/signup.html @@ -38,7 +38,7 @@ %> <%= - $OUT = join("\n", map { qq|<input type="hidden" name="$_" />| } qw / promo_code reg_code pkgpart username _password _password2 sec_phrase popnum countrycode phonenum sip_password pin / ); + $OUT = join("\n", map { qq|<input type="hidden" name="$_" />| } qw / promo_code reg_code pkgpart username _password _password2 sec_phrase popnum mac_addr countrycode phonenum sip_password pin / ); %> Where did you hear about our service? <SELECT NAME="refnum"> @@ -46,7 +46,7 @@ Where did you hear about our service? <SELECT NAME="refnum"> $OUT .= '<OPTION VALUE="">' unless $refnum; foreach my $part_referral ( @part_referral ) { $OUT .= '<OPTION VALUE="'. $part_referral->{'refnum'}. '"'; - $OUT .= ' SELECTED' if $part_referral->{'refnum'} eq $refnum; + $OUT .= ' SELECTED' if $part_referral->{'refnum'} == $refnum; $OUT .= '>'. $part_referral->{'referral'}; } %> @@ -316,6 +316,18 @@ SECPHRASE $OUT .= '<INPUT TYPE="hidden" NAME="sec_phrase" VALUE="">'; } + if ( $nomadix ) { + + warn $mac_addr; + $mac_addr ||= $MA; + warn $mac_addr; + + $OUT .= <<NOMADIX; + <INPUT TYPE="hidden" NAME="mac_addr" VALUE="$mac_addr"> +NOMADIX + + } + } if ( @svc_acct_pop ) { @@ -380,6 +392,7 @@ function fixup_form() { var signup_elements = new Array ( 'promo_code', 'reg_code', 'pkgpart', 'username', '_password', '_password2', 'sec_phrase', 'popnum', + 'mac_addr', 'countrycode', 'phonenum', 'sip_password', 'pin' ); |