From 1fb840206c2a95f0adaab15cd1ef35d394676adb Mon Sep 17 00:00:00 2001 From: tracer Date: Sat, 29 Jan 2022 16:20:40 +0100 Subject: [PATCH] removed debug info --- src/Controller/BindAPI.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Controller/BindAPI.php b/src/Controller/BindAPI.php index 0646986..2dffa4c 100755 --- a/src/Controller/BindAPI.php +++ b/src/Controller/BindAPI.php @@ -152,7 +152,6 @@ class BindAPI { $nameServers = $this->nameserverController->findAll(); foreach($nameServers as $nameServer) { - echo COLOR_DEFAULT . ' ' . $nameServer['name']; if (!empty($nameServer['aaaa'])) { $result = $this->checkController->sendCommand(serverName: $nameServer['name'], versionIP: 6, @@ -196,8 +195,6 @@ class BindAPI post: true, body: $body); } - } else { - echo 'error'; } } } @@ -233,15 +230,10 @@ class BindAPI exit(1); } $domains = json_decode(json: $result['data']); - if ($domains['error']) { - echo $domains['data']; - exit(1); - } + $maxDomainName = 0; // TODO this is ugly code - - - + foreach ($domains as $domain) { if (($domain->id_parent_domain == 0 && !str_contains(haystack: $domain->domain, needle: $panel['name'])) && (strlen(string: $domain->domain) > $maxDomainName)) { $maxDomainName = strlen(string: $domain->domain);