Subversion Repositories Applications.projet

Rev

Rev 417 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

include_once 'ezmlm-php-2.0/ezmlm.php' ;


// Parametrage de la liste
$info = new ezmlm_threads();
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
$info->forcehref = $url;
$info->listdir = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
$info->listname = $liste;
$info->listdomain = $domaine ;

ob_start() ;
if (!$info->listmessages()) {
    if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
}
$html = ob_get_contents() ;
ob_end_clean() ;

include_once 'XML/Util.php' ;

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

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

$xml .= '<![CDATA[ '.$html.']]>';

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