controls // function output_navbar($regstep, $errormessage) { $maxpage = 5; ?>
 Step /  
 Purchase 
// function output_continue_button($regstep) { $maxpage = 5; // !!! - make this global if ( ($regstep < 1) || ( $regstep > $maxpage ) ) { return; } ?>   Continue -> function output_confirmation($regobj) { global $boysession; global $DOMAIN_TERMS; ?>

You have successfully registered the above domain names from Nameboy.com, in partnership with Enom. You will recieve an email shortly containing this information. Please print this page for your records.

Your credit card will be billed.

\n"; foreach($regobj->RegisteredNames as $domaintld => $value) { if ($value == "1") { echo "\n"; $total += $price; } else { echo "\n"; echo "\n"; ?>
Domain Name Term Price

$domaintld$term Years"; list($domain, $tld) = split ("\.", $domaintld); $term = $boysession->regdomains->get_term($domaintld); $price = $DOMAIN_TERMS[$tld][$term]; echo "\$$price
Registration Failed\$0"; } } echo "

Total Charges To Your Card:\$$total
reginfo->UserVars['RegistrantEmailAddress'] . "&transtype=sale&merchantID=7162\" width=\"1\" height=\"1\" />\n"); fclose($fp); ?>
Registered on: PST
Registrant Name: UserVars['RegistrantFirstName']?> UserVars['RegistrantLastName']?>
Registrant Address: UserVars['RegistrantAddress1'] . "
\n"; if ($regobj->UserVars['RegistrantAddress2']) { echo $regobj->UserVars['RegistrantAddress2'] . "
\n"; } echo $regobj->UserVars['RegistrantCity'] . ", "; echo $regobj->UserVars['RegistrantStateProvince'] . " "; echo $regobj->UserVars['RegistrantPostalCode'] . "
\n"; ?>
User Email Address: UserVars['RegistrantEmailAddress']?>
Domain Password: UserVars['Domainpassword']?>
Credit Card Used: UserVars['CardType']?> ending in UserVars['CreditCardNumber'], -4, 4); ?>
Order ID: Values['OrderID']?>
Domain Manager Link: http://access.enom.com/

Got Hosting?

Nameboy recommends a couple of quality hosting providers:

Globat for fully featured budget hosting, starting at $5.95/mo. Perl 5, PHP 4, unlimited MySQL Databases, Your own CGI-BIN, eCommerce Ready (SSL available), Control Panel for Advanced Access, FTP and POP3 Access, 24/7 Toll Free Phone & Chat Support, 30 Day Money Back Guarantee - Check out Globat Hosting

Concentric - Hosting Services that help small, growing and large businesses create, support and manage an Internet presence - from simple Web sites to complex managed server environments with hosted corporate applications. Check out Concentric / XO Hosting.

searchid&page=$boysession->page&" . SID . "\">Back to Search Results"; echo ""; } // this email_promos() was created on 23 May 2005 to send the InMotion Hosting promotional email. // Jeff Hunt function email_promos($regobj) { $headers .= "From: Nameboy Customer Support \n"; $headers .= "X-Priority: 1\n"; $headers .= "Return-Path: \n"; $promo_filename = "/home/httpd/html/imhpromo/index.html"; $fp = fopen($promo_filename, "r"); $buf = fread($fp, filesize($promo_filename)); fclose($fp); @mail($regobj->User['RegistrantEmailAddress'], "A message from nameboy.com", $buf, $headers); // mail sent! unset($headers, $promo_filename, $buf, $fp); } function email_confirmation($regobj) { // send the email $headers .= "From: Nameboy Customer Support \n"; $headers .= "X-Priority: 1\n"; // Urgent message! $headers .= "Return-Path: \n"; // Return path for errors $message .= "Domain Registration Confirmation\n\n"; $message .= "You have successfully registered domain names from Nameboy.com, in partnership with Enom.\n\n"; $message .= "This is your email confirmation of your registration.\n Your credit card has been billed. \n\nPlease print this page for your records.\n\n"; $message .= "Domain Name(s) registered: \n"; foreach($regobj->RegisteredNames as $key=>$value) { if ($value=="1") { // echo "

  • Registration of $key successful.
    "; $message .= "\t$key\n"; } } $message .= "Registered on: \t" . date("F j, Y, g:i a") . " PST\n\n"; $message .= "Registrant Name: \t" . $regobj->UserVars['RegistrantFirstName'] . " " .$regobj->UserVars['RegistrantLastName'] . "\n"; $message .= "Registrant Address:\n"; $message .= $regobj->UserVars['RegistrantAddress1'] . "\n"; if ($regobj->UserVars['RegistrantAddress2']) { $message .= $regobj->UserVars['RegistrantAddress2'] . "\n"; } $message .= $regobj->UserVars['RegistrantCity'] . ", "; $message .= $regobj->UserVars['RegistrantStateProvince'] . " "; $message .= $regobj->UserVars['RegistrantPostalCode'] . "\n\n"; $message .= "User Email Address: \t" . $regobj->UserVars['RegistrantEmailAddress'] . "\n"; $message .= "Domain Password: \t" .$regobj->UserVars['Domainpassword'] . "\n\n"; $message .= "Credit Card Used: \t" .$regobj->UserVars['CardType'] . " ending in " . substr($regobj->UserVars['CreditCardNumber'], -4, 4) . "\n"; $message .= "Order ID: \t" .$regobj->Values['OrderID'] . "\n\n"; $message .= "Domain Manager Link: http://access.enom.com\n\n"; $message .= "Thank you for registering with nameboy.com.\n\n"; if(!mail($regobj->UserVars['RegistrantEmailAddress'], "Registration Confirmation", $message, $headers)) { echo "EMAIL CONFIRMATION SEND FAILED.\n"; } } function update_cart_registered ($obj) { // move domains to 'names I own' in bucket $arr = $obj->bucket->available; foreach($obj->reginfo->RegisteredNames as $key=>$value) { if ($value=="1") { // echo "removing $key from cart
    "; // name was registered for($i=0;$ibucket->owned, $key); break; } } $obj->bucket->available = $arr; } // val = 1 } // foreach registeredname return $obj; } function update_db_registered ($regobj, $boycookie_id = -1, $transactionamount = 0) { // the registrations table is used by our referrer-checking system if ( $boycookie_id != -1 ) { $tmpid = isset($boycookie_id) ? $boycookie_id : "NULL"; $qs = "INSERT INTO registrations VALUES($tmpid, NULL, $transactionamount);"; if ( ! mysql_query($qs) ) { @error_log(__FILE__ . ": MySQL query: '$qs' Result: " . mysql_error(), 0); } } //update the zone files AND the enom_registrations table. foreach($regobj->RegisteredNames as $key=>$value) { if ($value=="1") { // echo "
  • Registration of $key successful.
    "; list($Sld, $Tld) = split("\.", $key); // update database $qs = "insert into enom_registrations values ('" . $Sld. "', '" . $Tld . "', "; $qs .= "NULL, '"; $qs .= $boysession->login . "', 0,"; // $qs .= $regobj->UserVars['NumYears'] . ", '"; $qs .= "'" . $regobj->UserVars['RegistrantFirstName'] . "', '" . $regobj->UserVars['RegistrantLastName'] . "', '"; $qs .= $regobj->UserVars['RegistrantAddress1'] . "', '" . $regobj->UserVars['RegistrantAddress2'] . "', '"; $qs .= $regobj->UserVars['RegistrantCity'] . "', '" . $regobj->UserVars['RegistrantStateProvince'] . "', '"; $qs .= $regobj->UserVars['RegistrantPostalCode'] . "', '" . $regobj->UserVars['RegistrantCountry'] . "', '"; $qs .= $regobj->UserVars['RegistrantPhone'] . "', '" . $regobj->UserVars['RegistrantFax'] . "', '"; $qs .= $regobj->UserVars['RegistrantJobTitle'] . "', '" . $regobj->UserVars['RegistrantOrganizationName'] . "', '"; $qs .= $regobj->UserVars['RegistrantEmailAddress'] . "', '" . $regobj->UserVars['CardType'] . "', '"; $qs .= $regobj->UserVars['CCName'] . "', '" . $regobj->UserVars['ChargeAmount'] . "', '"; $qs .= $regobj->UserVars['CreditCardNumber'] . "', '" . $regobj->UserVars['CreditCardExpMonth'] . "', '"; $qs .= $regobj->UserVars['CreditCardExpYear'] . "', " . $regobj->Values['OrderID'] . ", '"; $qs .= $regobj->UserVars['Domainpassword'] . "'"; $qs .= ");"; // echo $qs; $qr = mysql_query($qs); if ( ! $qr ) { @error_log(__FILE__ . ": MySQL query: $qs Result: " . mysql_error(), 0); } $qs = "insert into " . $Tld . "_zone values ('" . $Sld . "');"; $qr = mysql_query($qs); if ( ! $qr ) { @error_log(__FILE__ . ": MySQL query: $qs Result: " . mysql_error(), 0); } } else { // echo "
  • Registration of $key failed: $value
    "; } } if ( $regobj->UserVars['Coupon'] != "" ) { $qs = "UPDATE coupons SET used='yes' WHERE email='" . $regobj->UserVars['Coupon'] . "';"; if ( ! mysql_query($qs) ) { @error_log(__FILE__ . ": MySQL query: $qs Result: " . mysql_error(), 0); } unset($regobj->UserVars['Coupon']); } } // update_db_registered function register_log($componentname, $logstr) { $datestr = date("d/M/Y:H:i:s", time()); @error_log("$boycookie $datestr $componentname: $logstr\n", 3, "/home/httpd/log/register.log"); } ?>