-SELECT-\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 LoadDoms() { $aryDOMS["RCODE"] = ""; $trys = 0; while (($aryDOMS["RCODE"] != 200) && ($trys < 1)) { $trys++; $aryDOMS = XML_DOMAINS($_SESSION["WNUID"], $_SESSION["WNPW"]); if ($aryDOMS["RCODE"] != 200) sleep(1); } if ($aryDOMS["RCODE"] != 200) { $aryRDOMS["NUM"] = 0; // echo "Bad rc from XML_DOMAINS
\n"; return $aryRDOMS; } $aryRDOMS["RCODE"] = 200; $i = 0; for ($j=1; $j<=$aryDOMS["NUM"]; $j++) { // echo "WHATTLD(".$aryDOMS["DOMAIN".$j] .") is ". whattld($aryDOMS["DOMAIN".$i]) ."
\n"; if ((whattld($aryDOMS["DOMAIN".$j]) == "BIZ") && ($aryDOMS["DOMAINDELETED".$j] != "Y")) { $i++; $aryRDOMS["DOMAIN".$i] = $aryDOMS["DOMAIN".$j]; } } $aryRDOMS["NUM"] = $i; return $aryRDOMS; } function SwapProcessInitial() { // Validate all DNS Servers $strERRMSG = ""; // Validate all domains for ($i=1; $i<=$_POST["txtNUM"]; $i++) if ($_POST["chkSWAP".$i] == "ON") { $dom = $_POST["txtDOMAIN".$i] . "." . $_POST["cboTLD".$i]; if (validate_sld($dom)) $strERRMSG = $strERRMSG . $dom . " is an invalid domain.
\n"; } // If good dns servers AND Domains then if (!strlen($strERRMSG)) { // -- Attempt to lock all domains $cntsuccess = 0; for ($i=1; $i<=$_POST["txtNUM"]; $i++) { $dom = $_POST["txtDOMAIN".$i] . "." . $_POST["cboTLD".$i]; if (strlen($_POST["txtDOMAIN".$i]) && ($_POST["chkSWAP".$i] == "ON")) { $aryrtn = XML_LOCK($dom); if ($aryrtn["RCODE"] == 200) { $cntsuccess++; $arylocks[$cntsuccess] = $aryrtn["SERIAL"]; $arylockdoms[$cntsuccess] = $dom; $aryswapdoms[$cntsuccess] = $_POST["txtSWAP".$i]; } else { $arylocks[$cntsuccess] = -1; $arylockdoms[$cntsuccess] = $dom; $aryswapdoms[$cntsuccess] = $_POST["txtSWAP".$i]; } } } if ($cntsuccess != 0) { // Fetch next group id and save locks in db $rtid = adns_getNextRTID(); $_SESSION["RTID"] = $rtid; for ($i=1; $i<=$cntsuccess; $i++) if ($arylocks[$i] != -1) { adns_saveSwapRTRecord($_SESSION["WNUID"], $arylockdoms[$i], $aryswapdoms[$i], $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"; echo "\n"; echo "Swap Your .BIZ Domain\n"; echo "\n"; echo "\n"; $strmsg = ""; session_start(); if (!isset($_SESSION["WNUID"])) backtologin("swap.php"); else { if ($_REQUEST["txtDOSAVE"] == "Y") { $rcmsg = SwapProcessInitial(); 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); } $aryDOMS = LoadDoms(); echo "\n"; echo "\n"; $_SESSION["TITLE"] = $arywn["TITLE"]; if ($rcmsg != "OK") { echo "\n"; echo $rcmsg . "\n"; echo "

\n"; } echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
adns.jpg (2888 bytes)Swap your .BIZ Domain
\n"; echo "
\n"; echo "

\n"; echo "Below is a list of all of your .BIZ domains that have not already been exchanged for another domain.\n"; echo "You can swap out any of these domains for a domain in another of our TLDs for only $6.99 for the \n"; echo "first year. When you complete this process, the .BIZ domain will BE DELETED and your new domain\n"; echo "will be created.

\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"; if (!$aryDOMS["NUM"]) { echo "You don't have any BIZ domains that haven't been swapped out.\n"; echo "\n"; } else { echo " \n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; for ($i=1; $i<=$aryDOMS["NUM"]; $i++) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; } echo "
\n"; echo " BIZ Domain\n"; echo " \n"; echo " Swap?\n"; echo " \n"; echo " Select New Domain\n"; echo "
\n"; echo " \n"; echo " " . $aryDOMS["DOMAIN".$i] ."\n"; echo "\n"; echo " \n"; echo "\n"; echo " \n"; echo " \n"; echo "
\n"; echo "
\n"; echo "

\n"; echo "\n"; echo "When entering a new domain name, do not enter WWW in front of the domain name. For \n"; echo "instance, if your new domain selection is MYDOMAIN.USA, enter the word MYDOMAIN\n"; echo "in the box and select USA from the drop-down list

\n"; echo "

\n"; echo "NOTICE: For each BIZ domain that you select above, that BIZ domain WILL BE DELETED\n"; echo "and you will receive the new domain in its place.

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

\n"; } // If There are some non-deleted BIZ domains. echo "
\n"; echo "\n"; echo "\n"; } // If logged in ?>