\n"; echo "\n"; echo "Register New Domains\n"; echo "\n"; include("utils.php"); include("adns.php"); function MakeTLDCombo($s) { if (!strlen($s)) $strout = "\n"; else $strout = "\n"; if ($s == "AMERICA") $strout = $strout ."\n"; else $strout = $strout . "\n"; //if ($s == "BIZ") // $strout = $strout ."\n"; //else // $strout = $strout . "\n"; if ($s == "COM2") $strout = $strout ."\n"; else $strout = $strout . "\n"; // Nope - dont have reserved internals in yet - no new EARTH doms for now //if ($s == "EARTH") // $strout = $strout ."\n"; //else // $strout = $strout . "\n"; if ($s == "ETC") $strout = $strout ."\n"; else $strout = $strout . "\n"; if ($s == "NOT") $strout = $strout ."\n"; else $strout = $strout . "\n"; if ($s == "ONLINE") $strout = $strout ."\n"; else $strout = $strout . "\n"; if ($s == "USA") $strout = $strout ."\n"; else $strout = $strout . "\n"; if ($s == "Z") $strout = $strout ."\n"; else $strout = $strout . "\n"; return $strout; } function RegisterProcessInitial() { // Validate all DNS Servers $strERRMSG = ""; if (validate_fqdn($_POST["txtNSHOST1"])) $strERRMSG = $strERRMSG . "The value you gave for DNS Server Hostname 1 is an invalid host name.
\n"; if (validate_ipaddr($_POST["txtNSIP1"]) ) $strERRMSG = $strERRMSG . "The value you gave for DNS Server IP Address 1 is an invalid IP Address.
\n"; if (validate_fqdn($_POST["txtNSHOST2"])) $strERRMSG = $strERRMSG . "The value you gave for DNS Server Hostname 2 is an invalid host name.
\n"; if (validate_ipaddr($_POST["txtNSIP2"]) ) $strERRMSG = $strERRMSG . "The value you gave for DNS Server IP Address 2 is an invalid IP Address.
\n"; $aryservs["NS1H"] = $_POST["txtNSHOST1"]; $aryservs["NS1A"] = $_POST["txtNSIP1"]; $aryservs["NS2H"] = $_POST["txtNSHOST2"]; $aryservs["NS2A"] = $_POST["txtNSIP2"]; $servcount = 2; for ($i=3; $i<=13; $i++) if (strlen($_POST["txtNSHOST".$i])) { if (validate_fqdn($_POST["txtNSHOST".$i])) $strERRMSG = $strERRMSG . "The value you gave for DNS Server Hostname ".$i." is an invalid host name.
\n"; if (validate_ipaddr($_POST["txtNSIP".$i]) ) $strERRMSG = $strERRMSG . "The value you gave for DNS Server IP Address ".$i." is an invalid IP Address.
\n"; $servcount = $i; $idx = "NS".$i."H"; $aryservs[$idx] = $_POST["txtNSHOST".$i]; $idx = "NS".$i."A"; $aryservs[$idx] = $_POST["txtNSIP".$i]; } // Validate all domains $dom1 = $_POST["txtDOMAIN1"]. "." . $_POST["cboTLD1"]; if (validate_sld($dom1)) $strERRMSG = $strERRMSG . "The first domain that you entered is invalid.
\n"; if (strlen($_POST["txtDOMAIN2"])) { $dom2 = $_POST["txtDOMAIN2"]. "." .$_POST["cboTLD2"]; if (validate_sld($dom2)) $strERRMSG = $strERRMSG . "The second domain that you entered is invalid.
\n"; } if (strlen($_POST["txtDOMAIN3"])) { $dom3 = $_POST["txtDOMAIN3"]. "." .$_POST["cboTLD3"]; if (validate_sld($dom3)) $strERRMSG = $strERRMSG . "The third domain that you entered is invalid.
\n"; } if (strlen($_POST["txtDOMAIN4"])) { $dom4 = $_POST["txtDOMAIN4"]. "." .$_POST["cboTLD4"]; if (validate_sld($dom4)) $strERRMSG = $strERRMSG . "The fourth domain that you entered is invalid.
\n"; } if (strlen($_POST["txtDOMAIN5"])) { $dom5 = $_POST["txtDOMAIN5"]. "." .$_POST["cboTLD5"]; if (validate_sld($dom5)) $strERRMSG = $strERRMSG . "The fifth domain that you entered is invalid.
\n"; } // If good dns servers AND Domains then if (!strlen($strERRMSG)) { // -- Attempt to lock all domains $cntSuccess = 0; for ($i=1; $i<=5; $i++) if (strlen($_POST["txtDOMAIN".$i])) { $aryrtn = XML_LOCK($_POST["txtDOMAIN".$i].".".$_POST["cboTLD".$i]); if ($aryrtn["RCODE"] == 200) { $cntSuccess++; $arylocks[$i] = $aryrtn["SERIAL"]; } else $arylocks[$i] = -1; } if ($cntSuccess != 0) { // Fetch next group id and save locks in db $rtid = adns_getNextRTID(); $_SESSION["RTID"] = $rtid; for ($i=1; $i<=5; $i++) if ($arylocks[$i] != -1) { $dom = $_POST["txtDOMAIN".$i].".".$_POST["cboTLD".$i]; adns_saveRTRecord($_SESSION["WNUID"], $dom, $aryservs, $servcount, $arylocks[$i], $rtid); } // -- Launch to the reg_verify.php with ?LGID=LockGroupID $strERRMSG = "OK"; } else // Else - tell user no doms he selected are available $strERRMSG = "None of the domains that you selected are available. Please make other selections.
\n"; return $strERRMSG; } else return $strERRMSG; } echo "\n"; echo "\n"; session_start(); echo "\n"; if (!isset($_SESSION["WNUID"])) backtologin("register.php"); else { if ($_REQUEST["txtDOSAVE"] == "Y") { $rcmsg = RegisterProcessInitial(); if ($rcmsg == "OK") { echo "\n"; } } $arywn["RCODE"] = ""; $trys = 0; while ($arywn["RCODE"] != 200 && ($trys < 1)) { $trys = $trys + 1; $arywn = XML_GETOWNER($_SESSION["WNUID"], $_SESSION["WNPW"]); if ($arywn["RCODE"] != 200) sleep(1); } $_SESSION["TITLE"] = $arywn["TITLE"]; echo "
\n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
 Register New Domains
\n"; echo "
\n"; echo "
\n"; if ($rcmsg != "OK") { echo "\n"; echo $rcmsg . "\n"; echo "

\n"; } echo "

On this page, you can register up to 5 domains.\n"; echo "The process has several steps:

\n"; echo "
    \n"; echo "
  1. Enter your domains and name-servers below
  2. \n"; echo "
  3. We will show you which ones are available -\n"; echo " select from the available list and select registration terms
  4. \n"; echo "
  5. Pay for your domains on the PayPal website.
  6. \n"; echo "
  7. Receive a confirmation from us for registered\n"; echo " domains
  8. \n"; echo "
\n"; echo "
\n"; echo " \n"; echo "

\n"; echo " Account Title: " . $arywn["TITLE"] . "\n"; $_SESSION["WNTITLE"] = $arywn["TITLE"]; echo " \n"; echo "
Account Number: " . $_SESSION["WNUID"] ."

\n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo "

Domain Name

\n"; echo "
\n"; echo "

Domain Instructions

\n"; echo "
    \n"; echo "
  • Enter only the left portion of\n"; echo " the domain in the box  and select the extension from the\n"; echo " box. For instance: for ABC.BIZ, enter ABC in \n"; echo " the box and select BIZ from the drop list

    \n"; echo "
  • \n"; echo "
  • DO NOT put a WWW in front of your\n"; echo " domain name. 
  • \n"; echo "
\n"; echo "
\n"; echo " \n"; echo " .\n"; echo " \n"; echo "
\n"; echo " \n"; echo " .\n"; echo " \n"; echo "
\n"; echo " \n"; echo " .\n"; echo " \n"; echo "
\n"; echo " \n"; echo " .\n"; echo " \n"; echo "
\n"; echo " \n"; echo " .\n"; echo " \n"; echo "
\n"; echo " \n"; echo "
\n"; echo "

Name Server Selection

\n"; echo "

Please enter your nameserver host\n"; echo " names and IP addresses here. You need at least two different name servers. If\n"; echo " you don't have this information now, you need to get it from your ISP before\n"; echo " proceeding.

\n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo "

\n"; echo " Server #\n"; echo "

\n"; echo "
\n"; echo "

\n"; echo " Name Server Host Name\n"; echo "

\n"; echo "
\n"; echo "

\n"; echo " Name Server IP Address\n"; echo "

\n"; echo "
\n"; echo "

1\n"; echo "

\n"; echo "

\n"; echo "

\n"; echo "

\n"; echo "
\n"; echo "

2\n"; echo "

\n"; echo "

\n"; echo "

\n"; echo "
\n"; echo "

\n"; echo "
\n"; echo " 3\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 4\n"; echo " \n"; echo " \n"; echo "
\n"; echo " 5\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 6\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 7\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 8\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 9\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 10\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 11\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 12\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " 13\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo "
\n"; echo "

\n"; echo " Please read the Registration Terms and Conditions now. You can do so by pressing the button\n"; echo " below without losing this page. By continuing the registration process, you\n"; echo " agree to be bound by these Terms with respect to these domain registrations.\n"; echo "

\n"; echo "

\n"; echo "

IMPORTANT NOTICE

\n"; echo "

You are\n"; echo " registering domains in THE INCLUSIVE NAMESPACE. These domains are not part of\n"; echo " the ICANN / US Government System and will therefore have less visibility.\n"; echo " Click the button below if you don't understand what this means. By completing\n"; echo " the registration process, you are acknowledging that you understand this fact.\n"; echo " You can click the button below without losing this window.\n"; echo "

\n"; echo "

\n"; echo "

\n"; echo " Click the NEXT button below\n"; echo " to go on to the next step. We will check your selected domains and let you\n"; echo " know which ones are available.  You will also be able to select your\n"; echo " registration term for each domain.\n"; echo "

\n"; echo "

\n"; echo "      

\n"; echo "
\n"; echo "

\n"; echo "Return to Account Menu

\n"; echo "\n"; } // End If not logged in echo "\n"; ?>