<?php /* * @ PHP 5.6 * @ Decoder version : 1.0.0.1 * @ Release on : 24.03.2018 * @ Website : http://EasyToYou.eu */ require "init.php"; require ROOTDIR . DIRECTORY_SEPARATOR . "includes" . DIRECTORY_SEPARATOR . "clientareafunctions.php"; $domain = WHMCS\Input\Sanitize::decode(App::getFromRequest("domain")); $ext = App::getFromRequest("ext"); $sld = App::getFromRequest("sld"); $tld = App::getFromRequest("tld"); $tlds = App::getFromRequest("search_tlds"); $captcha = new WHMCS\Utility\Captcha(); $validate = new WHMCS\Validate(); $captcha->validateAppropriateCaptcha(WHMCS\Utility\Captcha::FORM_DOMAIN_CHECKER, $validate); if ($validate->hasErrors()) { WHMCS\Session::set("captchaData", array("invalidCaptcha" => true, "invalidCaptchaError" => $validate->getErrors()[0])); WHMCS\Session::set("CaptchaComplete", false); } else { WHMCS\Session::set("captchaData", array("invalidCaptcha" => false, "invalidCaptchaError" => false)); WHMCS\Session::set("CaptchaComplete", true); } if (in_array($domain, array(Lang::trans("domaincheckerdomainexample")))) { $domain = ""; } if ($ext && $domain) { if (substr($ext, 0, 1) != ".") { $ext = "." . $ext; } $domain .= $ext; } if (!$domain && $sld && $tld) { if (substr($tld, 0, 1) != ".") { $tld = "." . $tld; } $domain = $sld . $tld; } if (is_array($tlds) && 0 < count($tlds)) { $tldToAppend = $tlds[0]; if (substr($tldToAppend, 0, 1) != ".") { $tldToAppend = "." . $tldToAppend; } if ($domain) { $domain = $domain . $tldToAppend; } else { if ($sld) { $domain = $sld . $tldToAppend; } } } $domainRequestSuffix = $domain ? "&query=" . urlencode($domain) : ""; if (App::getFromRequest("transfer")) { App::redirect("cart.php", "a=add&domain=transfer" . $domainRequestSuffix); } if (App::getFromRequest("hosting")) { App::redirect("cart.php", substr($domainRequestSuffix, 1)); } App::redirect("cart.php", "a=add&domain=register" . $domainRequestSuffix); ?>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter