$DOMAIN_TERMS = array (
"com" => array (1=>15, 2=>28, 3=>39, 5=>60, 10=>110),
"net" => array (1=>15, 2=>28, 3=>39, 5=>60, 10=>110),
"org" => array (1=>15, 2=>28, 3=>39, 5=>60, 10=>110),
"us" => array (1=>15, 2=>28, 3=>39, 5=>60, 10=>110),
"tv" => array (1=>50, 2=>100, 3=>150, 5=>250, 10=>500),
"cc" => array (1=>35, 2=>70, 3=>105, 5=>175, 10=>350),
"biz" => array (2=>38, 3=>57, 5=>95, 10=>190),
"info" => array (2=>38, 3=>57, 5=>95, 10=>190)
);
// these are the product numbers for the registration for the credit cards.
$SKU_TABLE = array (
"com" => array (1=>101, 2=>102, 3=>103, 5=>105, 10=>110),
"net" => array (1=>201, 2=>202, 3=>203, 5=>205, 10=>210),
"org" => array (1=>301, 2=>302, 3=>303, 5=>305, 10=>310),
"tv" => array (1=>401, 2=>402, 3=>403, 5=>405, 10=>410),
"cc" => array (1=>501, 2=>502, 3=>503, 5=>505, 10=>510),
"biz" => array (1=>601, 2=>602, 3=>603, 5=>605, 10=>610),
"info" => array (2=>702, 3=>703, 5=>705, 10=>710),
"us" => array (1=>801, 2=>802, 3=>803, 5=>805, 10=>810)
);
if ($regstep == 1) {
// These go into the session, so they only need to happen once
?>
} // regstep=1 init stuff
?>
if ($regstep == 1) {
// congrats if direct
if ($source == "direct") {
?> | Congratulations! =$Sld?>.=$Tld?> is available. |
} // congrats
?>
Domain Name Registration
To edit this list, choose 'Domain Cart' on the left and remove names
|
Tip: Did you know that Google ranks depend on the number of years you register? Longer registration is cheaper and gets your site ranked higher!
|
function create_register_select_html($varname, $tld, $numyears) {
global $DOMAIN_TERMS;
$html = "";
return $html;
}
$domains = filter_by_tld($boysession->bucket->available, "(com|net|org|biz|info|tv|cc|us)");
if (sizeof($domains) > 1) { $s = "s"; }
foreach ($domains as $value) {
list($domain, $tld) = split ("\.", $value);
echo "| $value | ";
echo "";
$varname = "NumYears[" . $value . "]";
echo create_register_select_html($varname, $tld ,"");
echo " | \n";
}
?>
 |
Domain Password
Choose a password that you will remember to access your domain name=$s?> later.
|
| Domain Password |
|
 |
Name Server Information
Warning: You must use the name of the DNS server, not the IP address. If you're unsure, we suggest you use Enom's servers.
|
 |
| Use Default Name Servers (recommended) |
reginfo->UserVars['UseDNS']))
{
echo "checked";
}
else if($boysession->reginfo->UserVars['UseDNS'] == "enom") echo "checked";
?> />
|
Your Own Name Servers |
reginfo->UserVars['UseDNS']) && $boysession->reginfo->UserVars['UseDNS'] == "")
{
print " checked ";
}
?>
/>
|
|
|
|
 |
} // regstep == 1
//
// Registrant Information
// (page 2)
//
if ($regstep == 2) {
// maybe display coupon acceptance
if (($Coupon) && ($boysession->reginfo->UserVars['Coupon'])) {
echo "| Your coupon was accepted. You will save \$4 per year. | \n";
} // coupon
// If we're logged in, default the email address
if ( isset($boysession->login) && ($boysession->login != "") &&
( $boysession->reginfo->UserVars['RegistrantEmailAddress'] == "") ) {
$form_registrantemail = $boysession->login;
}
else {
$form_registrantemail = $boysession->reginfo->UserVars['RegistrantEmailAddress'];
}
?>
Registrant Information
|
| Registrant First Name | |
| Registrant Last Name | |
| Registrant Job Title | |
| Registrant Organization Name | |
| Registrant Address 1 | |
| Registrant Address 2 | |
| Registrant City | |
| Registrant State / Province |
| | Registrant Postal Code | |
| Registrant Country | |
| Registrant Email Address | |
| Registrant Phone | |
| Registrant Fax | |
 |
}
//
// Technical Contact Information
// (page 3)
//
if ($regstep == 3) {
?>
Technical Contact Information (Optional)
|
if((strstr($HTTP_USER_AGENT,"Mozilla/4")) && ( ! strstr($HTTP_USER_AGENT,"compatible"))) {
// netscape; do nuthin
}
else {
?>
| Use Registrant Information |
}
?>
| Technical Contact First Name | |
| Technical Contact Last Name | |
| Technical Contact Job Title | |
| Technical Contact Organization Name | |
| Technical Contact Address1 | |
| Technical Contact Address2 | |
| Technical Contact City | |
| Technical Contact State / Province |
|
| Technical Contact Postal Code | |
| Technical Contact Country | |
| Technical Contact Email Address | |
| Technical Contact Phone | |
| Technical Contact Fax | |
 |
}
//
// Administrative Contact Information
// (page 4)
//
if ($regstep == 4) {
?>
Administrative Contact Information (Optional)
|
if((strstr($HTTP_USER_AGENT,"Mozilla/4")) && ( ! strstr($HTTP_USER_AGENT,"compatible"))) {
// netscape; do nuthin
}
else {
?>
| Use Registrant Information |
}
?>
| Administrative Contact First Name | |
| Administrative Contact Last Name | |
| Administrative Contact Job Title | |
| Administrative Contact Organization Name | |
| Administrative Contact Address1 | |
| Administrative Contact Address2 | |
| Administrative Contact City | |
| Administrative Contact State / Province |
|
| Administrative Contact Postal Code | |
| Administrative Contact Country | |
| Administrative Contact Email Address | |
| Administrative Contact Phone | |
| Administrative Contact Fax | |
 |
}
//
// Credit Card Information
// (page 5)
//
if ($regstep == 5) {
?>
Registration Summary
|
|
Domain Name | Term | Price
|
echo "
| \n";
foreach($boysession->regdomains->get_domains() as $domaintld => $term)
{
echo "| $domaintld | $term Years | ";
list($domain, $tld) = split ("\.", $domaintld);
$price = $DOMAIN_TERMS[$tld][$term];
echo "\$$price | \n";
$total += $price;
}
echo "
| \n";
echo "| Total: | \$$total | \n";
?>
|
|
|
Credit Card Information
Use Registrant Info
|
Credit Card Type
Mastercard, Visa or American Express
|
|
|
Credit Card Number
|
|
|
Credit Card Exp Month
|
|
|
Credit Card Exp Year
|
|
First Name On Card
Your first name as it appears on card
|
|
Last Name On Card
Your last name as it appears on card
|
|
Billing Address for Card
Billing Street Address
|
|
Billing Address 2 for Card
Optional
|
|
| Billing City for Card |
|
| Billing State for Card |
|
| Billing Postal Code for Card |
|
| Billing Country for Card |
|
CVV Number
Visa, MC: Three-digit code found on the back of the card near signature stripe. AmEx: Four-digit code found on front of card. More Info.
|
|
| Charge Amount |
$=$total?> |
} // regstep==5
// Output the "Continue" button
output_continue_button($regstep);
?>
|
if ((!$falsepos) && ($regstep != 6)) {
output_navbar($regstep, $error_occurred);
} // nav bar
?>
|