freeside/fs_signup/FS-SignupClient/cgi regcode.html,NONE,1.1 signup.cgi,1.54,1.55 signup.html,1.14,1.15
ivan
ivan at pouncequick.420.am
Sat Jan 29 04:34:17 PST 2005
Update of /home/cvs/cvsroot/freeside/fs_signup/FS-SignupClient/cgi
In directory pouncequick:/tmp/cvs-serv3172/fs_signup/FS-SignupClient/cgi
Modified Files:
signup.cgi signup.html
Added Files:
regcode.html
Log Message:
registration codes
--- NEW FILE: regcode.html ---
<HTML><HEAD><TITLE>ISP Signup</TITLE></HEAD>
<BODY BGCOLOR="#e8e8e8"><FONT SIZE=7>ISP Signup - registration code</FONT><BR><BR>
<SCRIPT>
function gotoURL(object) {
window.location.href = 'signup.cgi?reg_code=' + object.reg_code.value;
}
</SCRIPT>
<FORM>
Enter registration code <INPUT TYPE="text" NAME="reg_code">
<INPUT type="submit" VALUE="Signup" onClick="gotoURL(this.form)">
</FORM>
</BODY>
</HTML>
Index: signup.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_signup/FS-SignupClient/cgi/signup.cgi,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- signup.cgi 1 Dec 2004 18:38:22 -0000 1.54
+++ signup.cgi 29 Jan 2005 12:34:11 -0000 1.55
@@ -134,7 +134,10 @@
$cgi = new CGI;
-$init_data = signup_info( 'promo_code' => $cgi->param('promo_code') );
+$init_data = signup_info( 'agentnum' => $agentnum,
+ 'promo_code' => scalar($cgi->param('promo_code')),
+ 'reg_code' => uc(scalar($cgi->param('reg_code'))),
+ );
$error = $init_data->{'error'};
$locales = $init_data->{'cust_main_county'};
$packages = $init_data->{'part_pkg'};
@@ -175,7 +178,8 @@
$cgi->param('ship_county') =~ /^([\w ]*)$/
or die "illegal county: ". $cgi->param('ship_county');
$ship_county = $1;
- $cgi->param('ship_country') =~ /^(\w+)$/
+ #$cgi->param('ship_country') =~ /^(\w+)$/
+ $cgi->param('ship_country') =~ /^(\w*)$/
or die "illegal ship_country: ". $cgi->param('ship_country');
$ship_country = $1;
#} else {
@@ -307,7 +311,8 @@
'payname' => $payname,
'invoicing_list' => $invoicing_list,
'referral_custnum' => $referral_custnum,
- 'promo_code' => $cgi->param('promo_code'),
+ 'promo_code' => scalar($cgi->param('promo_code')),
+ 'reg_code' => uc(scalar($cgi->param('reg_code'))),
'pkgpart' => $pkgpart,
'username' => $username,
'sec_phrase' => $sec_phrase,
Index: signup.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_signup/FS-SignupClient/cgi/signup.html,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- signup.html 22 Nov 2004 18:20:21 -0000 1.14
+++ signup.html 29 Jan 2005 12:34:11 -0000 1.15
@@ -167,7 +167,9 @@
</TR></TABLE><font color="#ff0000">*</font> required fields for each billing type
<BR><BR>First package
-<INPUT TYPE="hidden" NAME="promo_code" VALUE="<%= $cgi->param('promo_code') %>"><TABLE BGCOLOR="#c0c0c0" BORDER=0 CELLSPACING=0 WIDTH="100%">
+<INPUT TYPE="hidden" NAME="promo_code" VALUE="<%= $cgi->param('promo_code') %>">
+<INPUT TYPE="hidden" NAME="reg_code" VALUE="<%= uc($cgi->param('reg_code')) %>">
+<TABLE BGCOLOR="#c0c0c0" BORDER=0 CELLSPACING=0 WIDTH="100%">
<TR>
<TD COLSPAN=2><SELECT NAME="pkgpart">
More information about the freeside-commits
mailing list