Subversion Repositories Applications.projet

Rev

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

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