$_get_value) {if($_get_name != "ordernumber" && $_get_name != "payment" && $_get_name != "s" && $_get_name != "step" && $_get_name != "lang" && $_get_name != "p" && $_get_name != "msg") $_get_vars .= "&$_get_name=$_get_value"; } $get_vars = "p=".$p.$_get_vars; include "lib/auth.php"; include "lib/lib.php"; $secure_path="https://cnsecure.communilink.net/order/"; $sp=split(":",$HTTP_REFERER); if ($step == "0") { if ($s!="" && check_step0s($s)) { include "lib/step1.php"; } elseif ($plan_type==3) { if ($dfax_user) { if (check_faxuser($dfax_user)){ $errormsg=$err18; // fax email name exist include "lib/step0.php"; }else include "lib/step1.php"; } else include "lib/step1.php"; } elseif ($plan_type==5) { if (!$bdrive_url){ $errormsg=$err19; // fax email name exist include "lib/step0.php"; }else include "lib/step1.php"; } elseif ($plan_type==6) { if (!$other_data){ $errormsg=$err20; // exchange email box exist include "lib/step0.php"; }else include "lib/step1.php"; } elseif ($plan_type == "") { echo $err4; } else { // verify the input data from step 1 $s=''; if ($domainstatus == "Transfer"){ $d1=split("\.",$domainext); $ext=$d1[1];if($d1[2])$ext .=".".$d1[2]; $domain=$d1[0]; } if (check_domain()) { load_server_info(); if(my_in_array($ext,$whois_exts)) $ret = perform_whois($domain,$ext,0); if ($domainstatus == "New") { //if($ret == -1) { do_error(); } $rest = substr($domain, 2, 2); $de=$domain.".".$ext; $de=strtolower($de); if (strlen($domain) <=2) { $errormsg=$err14; // less than 2 characters include "lib/step0.php"; } elseif ($rest=="--") { $errormsg=$err15; // "--" in 3-4 pos, reserved include "lib/step0.php"; } elseif ($ext !="idv.hk" && $service=="21") { $errormsg=$err17; // Domain Registration only for idv.hk include "lib/step0.php"; } elseif (@array_search($de,$reserve_domain,true)) { $errormsg=$err16; // "--" domains name reserved include "lib/step0.php"; } elseif(!$ret) { $errormsg=$err1; // domain taken include "lib/step0.php"; } else { include "lib/step1.php"; } } else { if(!$ret) { if ($service=="12") { $errormsg=$err2; // no transfer parking include "lib/step0.php"; } else { include "lib/step1.php"; } } else { $errormsg=$err3; // cannot transfer new domain include "lib/step0.php"; } } } else { include "lib/step0.php"; } } } elseif ($step == "1") { if (($s!="") && (check_step1s($s))) { include "lib/step2.php"; } else { if ($service == "") { echo $err4; } elseif (!check_step0s($sid)) { echo $err5; } else { include "lib/step2.php"; } } } else if ($step == "2") { // change language if (($s!="") && (check_step2s($s))) { include "lib/step3.php"; } else { //if (($Psalutation == "") || ($Pfirstname == "") || ($Plastname == "") || ($Pemail == "") || ($Pphone == "") || ($Paddress1 == "") || ($Pcountry == "") || ($period == "") || ($hearabout == "")) { if (($Psalutation == "") || ($Pfirstname == "") || ($Plastname == "") || ($Pemail == "") || ($Pphone == "") || ($Paddress1 == "") || ($Pcountry == "") || ($period == "")) { echo $err4; } elseif (!check_step1s($sid)) { echo $err5; } else if (($rcode!="" && $acode!="") || ($acode!="" && $pcode!="") || ($rcode!="" && $pcode!="")) { echo $err6; } else if (($rcode!="") && !(validate_rcode($rcode))) { echo $err7; } else if (($acode!="") && !validate_acode($acode)) { echo $err8; } else { include "lib/step3.php"; } } } else if ($step == "3") { if (($s<>"") && (check_step3s($s))) { if ($payment=="online") { include "lib/step3b.php"; } else if ($payment=="paypal") { include "lib/step3c.php"; } else if ($payment=="alipay") { include "lib/step3d.php"; } else { include "lib/step3a.php"; } } else { if ($payment=="online") { include "lib/step3b.php"; } else if ($payment=="paypal") { include "lib/step3c.php"; } else if ($payment=="alipay") { include "lib/step3d.php"; } else { if ($sid=="") { echo $err9; } else if (!check_step2s($sid)) { echo $err10; } else { include "lib/step3a.php"; } } } } else if (($step == "4")&&($s!="") && (check_step3s($s))) { if ($payment=="paypal" || $payment=="alipay") { // PayPal/Alipay include "lib/step4.php"; } else { if ($orderRef=="") { echo $err12; } else if (repeat_trans($orderRef)){ echo $err13; } else { include "lib/step4.php"; } } } else { include "lib/step0.php"; } //}// end else https include "lib/footer.php"; ?>