Ajout du message d'alert de domaine par défaut manquant
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#664d03" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
|
||||||
|
After Width: | Height: | Size: 419 B |
@@ -13,7 +13,7 @@ INSERT INTO postfix_alias_virtuels (destination,courriel,active) VALUES ("tata@e
|
|||||||
INSERT INTO postfix_alias_virtuels (destination,courriel,active) VALUES ("titi@exemple.fr","promos@exemple.fr",1);
|
INSERT INTO postfix_alias_virtuels (destination,courriel,active) VALUES ("titi@exemple.fr","promos@exemple.fr",1);
|
||||||
|
|
||||||
-- Domaines secondaires
|
-- Domaines secondaires
|
||||||
INSERT INTO postfix_domaines (domaine,active,defaut) VALUES ("toto.fr",1,1);
|
INSERT INTO postfix_domaines (domaine,active,defaut) VALUES ("toto.fr",1,0);
|
||||||
INSERT INTO postfix_domaines (domaine,active,defaut) VALUES ("tata.fr",1,0);
|
INSERT INTO postfix_domaines (domaine,active,defaut) VALUES ("tata.fr",1,0);
|
||||||
INSERT INTO postfix_domaines (domaine,active,defaut) VALUES ("titi.fr",0,0);
|
INSERT INTO postfix_domaines (domaine,active,defaut) VALUES ("titi.fr",0,0);
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,18 @@ $liste_domaines = listeDomainesPostfix($pdo);
|
|||||||
<div class="card mt-4">
|
<div class="card mt-4">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">Domaine par défaut</h5>
|
<h5 class="card-title">Domaine par défaut</h5>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$domaine_defaut = retourneDomaineDefautPostfix($pdo);
|
||||||
|
if (empty($domaine_defaut)) {
|
||||||
|
echo <<<_HEREDOC_
|
||||||
|
<div class="alert alert-warning mb-2" role="alert"><img src="/fichiers/svg/alert-triangle-warning.svg"/>
|
||||||
|
Aucun domaine n'est défini par défaut. Ce paramètre permet de pré-selectionner le domaine utilisé par Postfix lors des créations d'alias virtuels.
|
||||||
|
</div>
|
||||||
|
_HEREDOC_;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
<form action="/services/traitements/domaines/changeDomaineDefaut.php" method="post">
|
<form action="/services/traitements/domaines/changeDomaineDefaut.php" method="post">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<select class="form-select" name="choix_domaine_defaut">
|
<select class="form-select" name="choix_domaine_defaut">
|
||||||
|
|||||||
Reference in New Issue
Block a user