Subversion Repositories Applications.projet

Rev

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

Rev Author Line No. Line
208 neiluj 1
<?php
359 aperonnet 2
 
208 neiluj 3
include_once 'ezmlm-php-2.0/ezmlm.php' ;
4
 
5
 
6
// Parametrage de la liste
7
$info = new ezmlm_author();
8
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
9
$info->forcehref = $url;
10
$info->listdir = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
11
$info->listname = $liste;
12
$info->listdomain = $domaine ;
13
 
14
ob_start() ;
15
if (!$info->display($actionargs[0])) {
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() ;
20
 
21
include_once 'XML/Util.php' ;
22
 
23
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
24
 
25
$xml .= XML_Util::createStartElement ('ezmlm_messages_auteur', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue )) ;
26
 
27
$xml .= '<![CDATA[ '.$html.']]>';
28
 
29
$xml .= XML_Util::createEndElement('ezmlm_messages_auteur') ;
30
header ('Content-type: text/xml');
31
echo $xml ;
32
?>