diff --git a/bureau/admin/dom_edit.php b/bureau/admin/dom_edit.php
index e434ad4b..02eb5344 100644
--- a/bureau/admin/dom_edit.php
+++ b/bureau/admin/dom_edit.php
@@ -151,12 +151,16 @@ for($i=0;$i<$r["nsub"];$i++) {
$disabled_class=in_array(strtoupper($r['sub'][$i]['enable']),array('DISABLED','DISABLE') )?'sub-disabled':'';
?>
-
+
">
"; } else { ?>
-
-
+
+
|
@@ -215,6 +219,12 @@ $disabled_class=in_array(strtoupper($r['sub'][$i]['enable']),array('DISABLED','D
|
+ $lm) { // $problems can be empty but can't be null/false
+ echo "\n";
+}
+?>
diff --git a/bureau/admin/styles/style.css b/bureau/admin/styles/style.css
index 6bef6e48..07935739 100644
--- a/bureau/admin/styles/style.css
+++ b/bureau/admin/styles/style.css
@@ -344,6 +344,10 @@ img {
.alert-danger a{
color: #6F2B2A;
}
+.alert-danger-tr {
+ background-color: #F2DEDE !important;
+}
+
/* Alert icons */
#content .alert {
diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php
index 9ff765b5..7cfba5bd 100644
--- a/bureau/class/m_dom.php
+++ b/bureau/class/m_dom.php
@@ -1105,7 +1105,8 @@ class m_dom {
$db->next_record();
$r["nsub"]=$db->Record["cnt"];
$db->free();
- $db->query("SELECT sd.*, dt.description AS type_desc, dt.only_dns FROM sub_domaines sd, domaines_type dt WHERE compte='$cuid' AND domaine='$dom' AND UPPER(dt.name)=UPPER(sd.type) ORDER BY sd.sub,sd.type");
+ #$db->query("SELECT sd.*, dt.description AS type_desc, dt.only_dns FROM sub_domaines sd, domaines_type dt WHERE compte='$cuid' AND domaine='$dom' AND UPPER(dt.name)=UPPER(sd.type) ORDER BY sd.sub,sd.type");
+ $db->query("SELECT sd.*, dt.description AS type_desc, dt.only_dns FROM sub_domaines sd LEFT JOIN domaines_type dt on UPPER(dt.name)=UPPER(sd.type) WHERE compte='$cuid' AND domaine='$dom' ORDER BY sd.sub,sd.type ;");
// Pas de webmail, on le cochera si on le trouve.
$r["sub"]=array();
for($i=0;$i<$r["nsub"];$i++) {
@@ -2075,6 +2076,15 @@ function generate_apacheconf($p = null) {
}
}
}
+
+ // Check if we know each type of subdomain
+ // Example: we may not know WEBMAIL if we upgrade from a previous setup
+ foreach ( $da['sub'] as $sub ) {
+ if (is_null($sub['type_desc'])) {
+ $errors[$sub['fqdn']]=sprintf(_("Problem on %s: we do not know domain's type %s."),$sub['fqdn'], $sub['type']);
+ }
+ }
+
// TODO: add a full compatibility check.
return $errors;