replaced print with echo
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
faff70eb07
commit
8b6d939123
|
@ -477,7 +477,6 @@ class BindAPI
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
echo 'Server error' . PHP_EOL;
|
echo 'Server error' . PHP_EOL;
|
||||||
print_r(value: $result);
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -778,7 +777,7 @@ class BindAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->config['verbose']) {
|
if ($this->config['verbose']) {
|
||||||
print(COLOR_YELLOW . str_pad(string: $server->getName(), length: $maxName));
|
echo COLOR_YELLOW . str_pad(string: $server->getName(), length: $maxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
$a = $server->getA() ?? '';
|
$a = $server->getA() ?? '';
|
||||||
|
@ -1316,7 +1315,7 @@ class BindAPI
|
||||||
{
|
{
|
||||||
$nameservers = $this->nameserverRepository->findAll();
|
$nameservers = $this->nameserverRepository->findAll();
|
||||||
|
|
||||||
echo COLOR_DEFAULT . 'You need to add these lines to ' . COLOR_YELLOW . '/etc/bind/local.bindapi.options' . COLOR_DEFAULT . ' and make sure' . PHP_EOL;
|
echo COLOR_DEFAULT . 'You need to add these lines to ' . COLOR_YELLOW . '/etc/bind/local.bindapi.options' . COLOR_DEFAULT . ' on every panel and make sure' . PHP_EOL;
|
||||||
echo 'that ' . COLOR_YELLOW . 'include "/etc/bind/local.bindapi.options";' . COLOR_DEFAULT . ' exists in ' . COLOR_YELLOW . '/etc/bind/named.conf.options' . COLOR_DEFAULT . '.' . PHP_EOL;
|
echo 'that ' . COLOR_YELLOW . 'include "/etc/bind/local.bindapi.options";' . COLOR_DEFAULT . ' exists in ' . COLOR_YELLOW . '/etc/bind/named.conf.options' . COLOR_DEFAULT . '.' . PHP_EOL;
|
||||||
$ip = [];
|
$ip = [];
|
||||||
foreach ($nameservers as $nameserver) {
|
foreach ($nameservers as $nameserver) {
|
||||||
|
@ -1336,6 +1335,8 @@ class BindAPI
|
||||||
echo "\t$currentIp;" . PHP_EOL;
|
echo "\t$currentIp;" . PHP_EOL;
|
||||||
echo '};' . PHP_EOL;
|
echo '};' . PHP_EOL;
|
||||||
echo PHP_EOL . 'After the modification feel free to run ' . COLOR_YELLOW . 'named-checkconf' . COLOR_DEFAULT . ' to ensure there were no errors.' . PHP_EOL;
|
echo PHP_EOL . 'After the modification feel free to run ' . COLOR_YELLOW . 'named-checkconf' . COLOR_DEFAULT . ' to ensure there were no errors.' . PHP_EOL;
|
||||||
|
echo PHP_EOL . 'Run ' . COLOR_YELLOW . 'rndc reload' . COLOR_DEFAULT . ' to activate the changes' . PHP_EOL;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue