Merge pull request #342 from Koumbit/339_bind_conf_with_multiple_domains
Filter generated bind configuration by current domain
This commit is contained in:
commit
72d0a8e47e
|
@ -228,7 +228,8 @@ class m_bind {
|
|||
sd.type=dt.name
|
||||
AND sd.enable IN ('ENABLE', 'ENABLED')
|
||||
AND sd.web_action NOT IN ('DELETE')
|
||||
ORDER BY ENTRY ;");
|
||||
AND sd.domaine = ?
|
||||
ORDER BY ENTRY ;", array($domain));
|
||||
$t="";
|
||||
while ($db->next_record()) {
|
||||
$t.= $db->f('ENTRY')."\n";
|
||||
|
|
|
@ -560,7 +560,7 @@ class m_dom {
|
|||
$has_https_option = intval($has_https_option);
|
||||
$create_tmpdir = intval($create_tmpdir);
|
||||
$create_targetdir = intval($create_targetdir);
|
||||
$db->query("UPDATE domaines_type SET description= ?, target= ?, entry= ?, compatibility= ?, enable= e, need_dns= ?, only_dns= ?, advanced= ?,create_tmpdir= ?,create_targetdir= ?, has_https_option=? where name= ?;", array($description, $target, $entry, $compatibility, $enable, $need_dns, $only_dns, $advanced, $create_tmpdir, $create_targetdir, $has_https_option, $name));
|
||||
$db->query("UPDATE domaines_type SET description= ?, target= ?, entry= ?, compatibility= ?, enable= ?, need_dns= ?, only_dns= ?, advanced= ?,create_tmpdir= ?,create_targetdir= ?, has_https_option=? where name= ?;", array($description, $target, $entry, $compatibility, $enable, $need_dns, $only_dns, $advanced, $create_tmpdir, $create_targetdir, $has_https_option, $name));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue