Merge pull request #342 from Koumbit/339_bind_conf_with_multiple_domains

Filter generated bind configuration by current domain
This commit is contained in:
Km 2023-08-30 12:27:44 +02:00 committed by GitHub
commit 72d0a8e47e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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";

View File

@ -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;
}