You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once ($_SERVER["DOCUMENT_ROOT"]."/services/bdd/connexion.php");
|
|
|
|
|
|
|
|
function listeDomainesPostfix($pdo) {
|
|
|
|
try {
|
|
|
|
$req = $pdo->query('SELECT domaine FROM postfix_domaines');
|
|
|
|
$liste_domaines = array();
|
|
|
|
foreach ($req as $domaine_bdd => $domaine) {
|
|
|
|
array_push($liste_domaines,$domaine);
|
|
|
|
}
|
|
|
|
return $liste_domaines;
|
|
|
|
}
|
|
|
|
catch (\Exception $e) {
|
|
|
|
die ("Erreur de requête de selection des domaines pour \"$base\" : ".$e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|