$othersuggestions[] = array("domain" => $sld . $lookuptld, "status" => $result['result'], "regoptions" => getTLDPriceList($lookuptld, true)); continue; } continue; } } } } $smartyvalues['othersuggestions'] = $othersuggestions; } } else { $smartyvalues['invalid'] = true; } } else { if ($checktype == "owndomain" || $checktype == "subdomain") { if ($sld && $tld && checkDomainisValid($sld, $tld)) { if (substr($tld, 0, 1) != ".") { $tld = "." . $tld; } if ($CONFIG['AllowDomainsTwice']) { $result = select_query("tblhosting", "COUNT(*)", "domain='" . db_escape_string($sld . $tld) . "' AND (domainstatus!='Terminated' AND domainstatus!='Cancelled' AND domainstatus!='Fraud')"); $data = mysql_fetch_array($result); $domaincheck = $data[0]; if ($domaincheck) { $smartyvalues['alreadyindb'] = true; } } $smartyvalues['checktype'] = $checktype; $smartyvalues['sld'] = $sld; $smartyvalues['tld'] = $tld; } else {
/** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ if (!defined("WHMCS")) { exit("This file cannot be accessed directly"); } if (!function_exists("checkDomainisValid")) { require ROOTDIR . "/includes/domainfunctions.php"; } if (!function_exists("lookupDomain")) { require ROOTDIR . "/includes/whoisfunctions.php"; } $domainparts = explode(".", $domain, 2); $sld = $domainparts[0]; $tld = "." . $domainparts[1]; if (!checkDomainisValid($sld, $tld)) { $apiresults = array("result" => "success", "message" => "Domain not valid"); return false; } $result = lookupDomain($sld, $tld); $whois = $responsetype == "xml" || $responsetype == "json" ? $result['whois'] : urlencode($result['whois']); $result['whois'] = $whois; $apiresults = array("result" => "success", "status" => $result['result'], "whois" => $result['whois']);
if ($domain != $_LANG['domaincheckerdomainexample']) { redir("sld=" . $sld . "&tld=" . $search_tlds[0], "cart.php"); } else { redir("", "cart.php"); } } $smartyvalues['domain'] = $domain; $smartyvalues['sld'] = $sld; $smartyvalues['ext'] = $smartyvalues['tld'] = 0 < count($search_tlds) ? $search_tlds[0] : ""; $smartyvalues['tlds'] = $search_tlds; $smartyvalues['tldslist'] = $tldslist; $smartyvalues['invalidtld'] = $invalidtld; if ($checkdomain) { check_token("WHMCS.domainchecker"); $smartyvalues['lookup'] = true; if (!checkDomainisValid($sld, $search_tlds[0])) { $smartyvalues['invalid'] = true; } else { $count = 0; if (count($search_tlds)) { foreach ($search_tlds as $tld) { $result = lookupDomain($sld, $tld); $_SESSION['domaincheckerwhois'][] = $sld . $tld; if (!$count) { if ($result['result'] == "available") { $smartyvalues['available'] = true; } else { if ($result['result'] == "error") { $smartyvalues['error'] = true; } }