1336 |
neiluj |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
$repertoire = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
|
|
|
4 |
exec ('ezmlm-list '.$repertoire, $output, $ret) ;
|
|
|
5 |
|
|
|
6 |
include_once 'XML/Util.php' ;
|
|
|
7 |
|
|
|
8 |
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
|
|
|
9 |
|
|
|
10 |
$xml .= XML_Util::createStartElement ('ezmlm_liste_abonnes', array('domaine' => $domaine, 'liste' => $liste)) ;
|
|
|
11 |
|
|
|
12 |
foreach ($output as $mail) $xml .= XML_Util::createTag('email', '', $mail) ;
|
|
|
13 |
|
|
|
14 |
$xml .= XML_Util::createEndElement('ezmlm_liste_abonnes') ;
|
|
|
15 |
header ('Content-type: text/xml');
|
|
|
16 |
echo $xml ;
|
|
|
17 |
?>
|