Subversion Repositories Applications.projet

Rev

Rev 249 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

$repertoire = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
exec ('ezmlm-list '.$repertoire, $output, $ret) ;

include_once 'XML/Util.php' ;

$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;

$xml .= XML_Util::createStartElement ('ezmlm_liste_abonnes', array('domaine' => $domaine, 'liste' => $liste)) ;

foreach ($output as $mail) $xml .= XML_Util::createTag('email', '', $mail) ;

$xml .= XML_Util::createEndElement('ezmlm_liste_abonnes') ;
header ('Content-type: text/xml');
echo $xml ;
?>