Bug sur la génération des MX

This commit is contained in:
Alan Garcia 2011-03-28 12:28:37 +00:00
parent e44b5a153d
commit 886f8b9d9b
4 changed files with 33 additions and 21 deletions

View File

@ -73,6 +73,8 @@ class m_dom {
var $type_ipv6 = "IPV6";
var $type_cname = "CNAME";
var $type_txt = "TXT";
var $type_mx = "MX";
var $type_mx2 = "MX2";
var $action_insert = "0";
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, '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 :
// Lancement de add_dom sur les classes domain_sensitive :
// Declenchons les autres classes.

View File

@ -81,6 +81,9 @@ NS2_HOSTNAME=""
# Mail server hostname
DEFAULT_MX=""
# Secondary mail server hostname
DEFAULT_SECONDARY_MX=""
# Note: MySQL username/password configuration now stored in /etc/alternc/my.cnf
# quels clients mysql sont permis (%, localhost, etc)

2
debian/po/fr.po vendored
View File

@ -19,10 +19,10 @@ msgstr ""
"PO-Revision-Date: 2006-04-26 11:16+0200\n"
"Last-Translator: Benjamin Sonntag <benjamin@sonntag.fr>\n"
"Language-Team: Team AlternC <team@alternc.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-15\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#. Type: boolean
#. Description

View File

@ -16,4 +16,3 @@ $TTL 1D
IN NS %%ns1%%.
IN NS %%ns2%%.
IN MX 5 %%mx%%.