From: soufiane Date: Tue, 30 Jul 2024 13:32:45 +0000 (+0200) Subject: wait #7008 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8d72260fe076601aa0e931af00b5817c4a90841e;p=cubist_net.git wait #7008 --- diff --git a/src/Transfer/Local.php b/src/Transfer/Local.php index ea88960..0169b95 100644 --- a/src/Transfer/Local.php +++ b/src/Transfer/Local.php @@ -76,29 +76,6 @@ class Local extends Driver } public function checkConnexion($data = []) { - if(isset($data['protocol']) && isset($data['subdomains'])) { - $hosting = $data['protocol'] === 'hosting' ? 'hosting.fluidbook.com' : 'hosting2.fluidbook.com'; - $ipHosting = dns_get_record($hosting, DNS_A)[0]['ip']; - - $subdomains = explode("\r\n", $data['subdomains']); - $subdomainsIntruder = []; - - if ($subdomains) { - foreach ($subdomains as $subdomain) { - $ipSubdomain = dns_get_record($subdomain, DNS_A)[0]['ip']; - $ipSubdomain = trim(str_replace('\n', '', shell_exec('dig +short @1.1.1.1 ' . $subdomain . ' | tail -1'))); - if ($ipSubdomain !== $ipHosting) { - $subdomainsIntruder[] = $subdomain; - } - } - } - - if ($subdomainsIntruder) { - $subdomainsList = implode(", ", $subdomainsIntruder); - return ['subdomains' => $subdomainsList, 'host' => $hosting]; - } - } - if(file_exists($this->getRootPath().'status')) { return true; } else {