Subversion Repositories Applications.projet

Rev

Rev 359 | Rev 408 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 359 Rev 407
1
<?php
1
<?php
2
 
-
 
-
 
2
//error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE ^ E_DEPRECATED);
-
 
3
error_reporting(-1); //E_ALL ^ E_STRICT ^ E_NOTICE ^ E_DEPRECATED);
-
 
4
//error_reporting(0);
3
include_once 'ezmlm-php-2.0/ezmlm.php' ;
5
include_once 'ezmlm-php-2.0/ezmlm.php' ;
4
 
6
 
5
 
7
 
6
// Parametrage de la liste
8
// Parametrage de la liste
7
$info = new ezmlm_threads();
9
$info = new ezmlm_threads();
8
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
10
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
-
 
11
 
-
 
12
extract($_GET, EXTR_OVERWRITE);
-
 
13
 
9
$info->forcehref = $url;
14
$info->forcehref = $url;
10
$info->listdir = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
15
$info->listdir = '/home/raphael/domains/'.$domaine.'/'.$liste ;
11
$info->listname = $liste;
16
$info->listname = $liste;
12
$info->listdomain = $domaine ;
17
$info->listdomain = $domaine ;
13
 
18
 
14
ob_start() ;
19
ob_start() ;
15
if (!$info->listmessages()) {
20
if (!$info->listmessages()) {
16
    if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
21
    if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
-
 
22
 
17
}
23
}
-
 
24
 
18
$html = ob_get_contents() ;
25
$html = ob_get_contents() ;
19
ob_end_clean() ;
26
ob_end_clean() ;
20
 
27
 
21
include_once 'XML/Util.php' ;
28
include_once 'XML/Util.php' ;
22
 
29
 
23
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
30
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
24
 
31
 
25
$xml .= XML_Util::createStartElement ('ezmlm_calendrier_messages', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
32
$xml .= XML_Util::createStartElement ('ezmlm_calendrier_messages', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
26
 
33
 
27
$xml .= '<![CDATA[ '.$html.']]>';
34
$xml .= '<![CDATA[ '.$html.']]>';
28
 
35
 
29
$xml .= XML_Util::createEndElement('ezmlm_calendrier_messages') ;
36
$xml .= XML_Util::createEndElement('ezmlm_calendrier_messages') ;
30
header ('Content-type: text/xml');
37
header ('Content-type: text/xml');
31
echo $xml ;
38
echo $xml ;
32
?>
39
?>