Subversion Repositories Applications.projet

Rev

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

Rev Author Line No. Line
208 neiluj 1
<?php
431 mathias 2
 
208 neiluj 3
include_once 'ezmlm-php-2.0/ezmlm.php' ;
4
 
5
 
6
// Parametrage de la liste
7
$info = new ezmlm_threads();
8
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
9
$info->forcehref = $url;
408 raphael 10
$info->listdir = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
208 neiluj 11
$info->listname = $liste;
12
$info->listdomain = $domaine ;
13
 
431 mathias 14
ob_start() ;
15
if (!$info->listmessages()) {
16
    if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
17
}
18
$html = ob_get_contents() ;
19
ob_end_clean() ;
208 neiluj 20
 
431 mathias 21
include_once 'XML/Util.php' ;
410 raphael 22
 
317 alexandre_ 23
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
208 neiluj 24
 
431 mathias 25
$xml .= XML_Util::createStartElement ('ezmlm_calendrier_messages', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
317 alexandre_ 26
 
431 mathias 27
$xml .= '<![CDATA[ '.$html.']]>';
317 alexandre_ 28
 
431 mathias 29
$xml .= XML_Util::createEndElement('ezmlm_calendrier_messages') ;
208 neiluj 30
header ('Content-type: text/xml');
31
echo $xml ;
431 mathias 32
?>