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.
26 lines
565 B
26 lines
565 B
4 years ago
|
<?php
|
||
|
|
||
3 years ago
|
/**
|
||
|
* Page de fonctions permettant la gestion des utilisateurs.
|
||
|
*/
|
||
|
|
||
3 years ago
|
require_once ($_SERVER["DOCUMENT_ROOT"]."/services/fonctions/bdd/connexion.php");
|
||
4 years ago
|
|
||
3 years ago
|
/**
|
||
|
* Fonction listant les utilisateurs.
|
||
|
*/
|
||
4 years ago
|
function listeUtilisateursPostfix($pdo) {
|
||
|
try {
|
||
3 years ago
|
$req = 'SELECT utilisateur FROM postfix_utilisateurs';
|
||
|
$sql=$pdo->prepare($req);
|
||
|
$sql->execute();
|
||
|
|
||
|
$liste_utilisateurs = $sql->fetchAll();
|
||
4 years ago
|
return $liste_utilisateurs;
|
||
|
}
|
||
|
catch (\Exception $e) {
|
||
|
die ("Erreur de requête de selection des utilisateurs pour \"$base\" : ".$e->getMessage());
|
||
|
}
|
||
|
}
|
||
3 years ago
|
|
||
3 years ago
|
?>
|