Bug sur la génération des MX
This commit is contained in:
parent
e44b5a153d
commit
886f8b9d9b
|
@ -73,6 +73,8 @@ class m_dom {
|
||||||
var $type_ipv6 = "IPV6";
|
var $type_ipv6 = "IPV6";
|
||||||
var $type_cname = "CNAME";
|
var $type_cname = "CNAME";
|
||||||
var $type_txt = "TXT";
|
var $type_txt = "TXT";
|
||||||
|
var $type_mx = "MX";
|
||||||
|
var $type_mx2 = "MX2";
|
||||||
|
|
||||||
var $action_insert = "0";
|
var $action_insert = "0";
|
||||||
var $action_update= "1";
|
var $action_update= "1";
|
||||||
|
@ -407,6 +409,14 @@ class m_dom {
|
||||||
$this->set_sub_domain($domain, 'www', $this->type_local, '/'. $domshort);
|
$this->set_sub_domain($domain, 'www', $this->type_local, '/'. $domshort);
|
||||||
$this->set_sub_domain($domain, 'mail', $this->type_webmail, '');
|
$this->set_sub_domain($domain, 'mail', $this->type_webmail, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($mx) {
|
||||||
|
$this->set_sub_domain($domain, '', $this->type_mx, $GLOBALS['L_DEFAULT_MX']);
|
||||||
|
if (! empty($GLOBALS['L_DEFAULT_SECONDARY_MX'])) {
|
||||||
|
$this->set_sub_domain($domain, '', $this->type_mx2, $GLOBALS['L_DEFAULT_SECONDARY_MX']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// DEPENDANCE :
|
// DEPENDANCE :
|
||||||
// Lancement de add_dom sur les classes domain_sensitive :
|
// Lancement de add_dom sur les classes domain_sensitive :
|
||||||
// Declenchons les autres classes.
|
// Declenchons les autres classes.
|
||||||
|
|
|
@ -81,6 +81,9 @@ NS2_HOSTNAME=""
|
||||||
# Mail server hostname
|
# Mail server hostname
|
||||||
DEFAULT_MX=""
|
DEFAULT_MX=""
|
||||||
|
|
||||||
|
# Secondary mail server hostname
|
||||||
|
DEFAULT_SECONDARY_MX=""
|
||||||
|
|
||||||
# Note: MySQL username/password configuration now stored in /etc/alternc/my.cnf
|
# Note: MySQL username/password configuration now stored in /etc/alternc/my.cnf
|
||||||
|
|
||||||
# quels clients mysql sont permis (%, localhost, etc)
|
# quels clients mysql sont permis (%, localhost, etc)
|
||||||
|
|
|
@ -19,10 +19,10 @@ msgstr ""
|
||||||
"PO-Revision-Date: 2006-04-26 11:16+0200\n"
|
"PO-Revision-Date: 2006-04-26 11:16+0200\n"
|
||||||
"Last-Translator: Benjamin Sonntag <benjamin@sonntag.fr>\n"
|
"Last-Translator: Benjamin Sonntag <benjamin@sonntag.fr>\n"
|
||||||
"Language-Team: Team AlternC <team@alternc.org>\n"
|
"Language-Team: Team AlternC <team@alternc.org>\n"
|
||||||
"Language: \n"
|
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=ISO-8859-15\n"
|
"Content-Type: text/plain; charset=ISO-8859-15\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Language: \n"
|
||||||
|
|
||||||
#. Type: boolean
|
#. Type: boolean
|
||||||
#. Description
|
#. Description
|
||||||
|
|
|
@ -16,4 +16,3 @@ $TTL 1D
|
||||||
|
|
||||||
IN NS %%ns1%%.
|
IN NS %%ns1%%.
|
||||||
IN NS %%ns2%%.
|
IN NS %%ns2%%.
|
||||||
IN MX 5 %%mx%%.
|
|
||||||
|
|
Loading…
Reference in New Issue