Update version_compare function; fix syntax-error in bind-config generation, thx to monumentum

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-04-19 13:55:38 +02:00
parent 1ae7876e44
commit 7adc2dd35c
4 changed files with 94 additions and 112 deletions

View File

@@ -117,15 +117,11 @@ class bind
$bindconf_file.= ' file "' . makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']) . '";' . "\n";
$bindconf_file.= ' allow-query { any; };' . "\n";
if(count($this->nameservers) > 0)
{
if (count($this->nameservers) > 0) {
$bindconf_file.= ' allow-transfer {' . "\n";
for ($i = 0;$i < count($this->nameservers);$i++)
{
$bindconf_file.= ' ' . $this->nameservers[$i]['ip'] . ';' . "\n";
foreach ($this->nameservers as $ns) {
$bindconf_file.= ' ' . $ns['ip'] . ';' . "\n";
}
$bindconf_file.= ' };' . "\n";
}
// AXFR server #100